shortridge, to llvm
@shortridge@hachyderm.io avatar

an LLVM to Excel spreadsheet compiler, truly what dreams are made of: https://belkadan.com/blog/2023/12/CellLVM/

it also reminded me of my investment banking days when I would crash Excel with iterative calculations (“brøether clippë may I have the lööps”)

ty for this gift to the world @jrose and P.S. I want to see the CSV alignment chart 👀

#compilers #llvm #excel

lorddimwit, to random
@lorddimwit@mastodon.social avatar

Program: I have this variable.

Compiler: I don't see this variable anywhere in your locals, what is this?

Program: It's upvalue.

Compiler: What's upvalue?

Program: Not much, what's upvalue with you?

Compiler: segmentation fault (core dumped)

AverageDog, to books
@AverageDog@mastodon.social avatar

T3X/0 is a self-hosting compiler for CP/M, DOS, and Unix. It self-compiles in 10mins on a 4MHz Z80. Its implementation is described in my recent book, "Write Your Own Retro Compiler".
Download: http://t3x.org/t3x/0/
Book: http://t3x.org/t3x/0/book.html
, , , ,

AverageDog, to retrocomputing
@AverageDog@mastodon.social avatar

NMH BASIC (http://t3x.org/nmhbasic/) is a tiny BASIC interpreter for the 8086 that I wrote in the mid-1990's. It runs in 12K bytes and includes a minesweeper game that runs on a TTY. Of course a 12K interpreter was an anachronism in the 90's, but it still was a fun project.
, , , ,

amoroso, (edited ) to retrocomputing
@amoroso@fosstodon.org avatar

I found a great winter holidays reading. The book "Write Your Own Retro Compiler" by Nils Holm, which has just been published, describes the development of a self-hosting compiler that targets the Z80 on CP/M.

https://t3x.org/t3x/0/book.html

adrian, to random
@adrian@discuss.systems avatar

I’m getting ready to teach my weird open-source grad course next week: https://www.cs.cornell.edu/courses/cs6120/2023fa/

And it occurs to me to ask: does anybody else want to teach a class like this (i.e., focused on “mid-end” hacking and research)? I built a bunch of special infrastructure and would be delighted to help adapt it for another school/purpose/context/etc. if you want.

abnv, to ProgrammingLanguages
@abnv@fantastic.earth avatar

Finished reading "Type Systems for Memory Safety" https://borretti.me/article/type-systems-memory-safety by Fernando Borretti. It is a comprehensive review of various type system features across different that are used to enforce (varying degrees of) memory safety at compile time.

As expected, it talks a lot about because Rust is probably the most used PL with compile time memory safety, but it features other languages like Ada, Val and Austral as well.

An interesting read if you are interested in .

rml, to scheme
@rml@functional.cafe avatar

"Using the compiled #scheme code is around 470x faster than our current interpreter, at least for this simple arithmetic loop."

The #Unison project on replacing their compiler backend with #Chez scheme
https://www.unison-lang.org/whats-new/jit-announce/

#lisp #compilers

paulbiggar, to nyc
@paulbiggar@hachyderm.io avatar

New server, new #introduction #introductions

Hey folks, I'm a #SoftwareEngineer and #founder from #Dublin, living in #NYC after a decade in #SF.
I work on @darklang, trying to fix everything that's wrong with #coding (and keep everything that's right!). See https://hachyderm.io/@paulbiggar/109383110124404403 for updates.

Previously I made #CircleCI, was at #RecurseCenter, and did a #phd in #Compilers and #StaticAnalysis. Big fan of pastries, chocolate and ice cream, also history.

abnv, to programming
@abnv@fantastic.earth avatar

I wrote the fourth part of my series “Implementing Co, a small programming language with coroutines”. And this time, we add support for channels in Co for inter-coroutine communication. https://abhinavsarkar.net/posts/implementing-co-4/

rml, to random
@rml@functional.cafe avatar

I'm just now catching Andrew Whatson's talk on #PreScheme from #fosdem this year, and I just can't get over the fact that he was able to implement a working, reasonably fast systems programming language with Hindley-Milner type inference in his free time over the course of a few months. And I was in the #GuileSteel irc when the discourse first started, it was probably less than a month before he got it working. I even try it then and it seemed great for something that went up that quick. What other programming languages make rapid prototyping #compilers feasible without relying on massive frameworks like #LLVM or #Truffle/#Graal?

And even then...

https://fosdem.org/2023/schedule/event/prescheme/

#guile #guix

sehnsucht, to C_Programming
@sehnsucht@social.sdf.org avatar

SectorC is a C compiler written in x86-16 assembly that fits within the 512 byte boot sector of an x86 machine. It supports a subset of C that is large enough to write real and interesting programs. It is quite likely the smallest C compiler ever written.

https://xorvoid.com/sectorc.html

timClicks, to badminton
@timClicks@mastodon.nz avatar

A neat book on designing a compiler for Racket scheme starting from raw x86 https://www.students.cs.ubc.ca/~cs-411/2022w2/chp1_book_top.html

arrdem, to random
@arrdem@macaw.social avatar

Anyone know of good blog posts or papers that explain and work with the SKI combinator calculus?

okennedy, to datascience
@okennedy@social.sdf.org avatar

New server, who dis.

Hi, I'm a CS prof, focusing on #Databases, #DataStructures, #Compilers (https://git.odin.cse.buffalo.edu/Astral), and #Reproducibility in #DataScience (#Mimir : https://mimirdb.info and #Vizier : https://vizierdb.info). I occasionally find time to dabble in wildlife and landscape #photography and #homeautomation. One of these days, I'll get back to doing #HEMA or #Fencing. I also #Pun frequently.

#introduction

folkertdev, to rust

My first concrete result of : zlib-rs now runs with the cranelift backend

This required implementing some intrinsics that the cranelift backend didn't yet support

https://github.com/rust-lang/rustc_codegen_cranelift/pull/1491
https://github.com/rust-lang/rustc_codegen_cranelift/pull/1488

With some help from bjorn3 this was reasonably straightforward. I think the PRs are good templates for of someone wanted to work on a real compiler and implement further SIMD functionality. This issue lists some missing intrinsics

https://github.com/rust-lang/rustc_codegen_cranelift/issues/1419

ghecko, to golang

Ohai!
I am a software developer and started my journey almost two decades ago, so I formed some opinions on the way; I might contribute to some discussions.
I like talking about programming languages; expect posts about , , , , , and
As a German I lived in for years before moving to . Expect comments about expat life, Spain and maybe some pictures.
Also, , , , and . 🦎

bobulous, to rust
@bobulous@fosstodon.org avatar

Phew, had me worried for a minute. I'm writing a simple XML 1.0 parser in just for practice, and on feeding it a 4.4MB XML file it took 56.5s to read it. I've done nothing to optimise it yet, but even so that sounded dire.

Then I remembered to use "release" mode, and the time dropped to 3.9s. Whatever the compiler is doing behind the scenes, I'll take that 14x speed boost, thank you.

calebjasik, to llvm
@calebjasik@mas.to avatar
jbzfn, to ReverseEngineering
@jbzfn@mastodon.social avatar

📚 Reverse Engineering 101: How to Dissect and Master Any Platform
— LaurieWired

https://www.youtube.com/watch?v=RnL5HQfq4Ik

#c

rml, (edited ) to Magic
@rml@functional.cafe avatar

A little over a year ago, originally due to an interest in the deeper history of #compilers, I started diving deep into the #Talmud, studying #Aramaic, #gematria, and doing #DafYomi etc in what has become my deepest engagement with the rabbinic corpus yet -- the Talmud isn't a compiler but rather an extensible interpreter, compiled by compilers over the course of many centuries (build times have gotten significantly faster, my G-d), with novel extensions in the form of rabbinic commentary, glossia and the like being added nearly every century by publishers competing to compile the most elegant editions (Vilna Shaws being paradigmatic). And through studying Talmud and the greater body of rabbinic literature I've found myself encountering #magic/sorcery occasionally, and I just gotta say -- the #SICP metaphor of programming as pure magic, with the #hacker as a sorcerer, goes insanely deep when you start to dig into it.

#scheme #lisp #judaism

amoroso, to Lisp
@amoroso@fosstodon.org avatar

This is interesting but not new. Max Bernstein published two blog post series on implementing Lisp, one on writing an interpreter in OCaml and the other on a compiler in C.

https://bernsteinbear.com/blog/lisp

#lisp #scheme #compilers

AverageDog, to books
@AverageDog@mastodon.social avatar

Now that I hold a copy of the book in my hands, I start to like it. Still no idea why I wrote it, though. Two copies sold so far in case you wonder if it was for the money. :)
http://t3x.org/t3x/0/formal.html
, , ,

jbzfn, to programming
@jbzfn@mastodon.social avatar

⏳ Am I too old to create a popular programming language?

"Is it too late to create a popular programming language after age 40? Let's find out!"

https://pldb.io/posts/age.html

dneto, to llvm
@dneto@mastodon.gamedev.place avatar

So the thing about LLVM IR is, in reality it's a family of accidental and informally defined dialects. Every LLVM-based compiler for a particular machine target refines the input module down to its own idiosyncratic dialect.

Consequently there's way more latitude for confusion and bugs than you'd initially guess.

Try using an i65 type in an x86 backend. When I did that years ago it sailed right through and generated nonsense code.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines