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

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
#books, #compilers, #math, #semantics

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

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 random
@amoroso@fosstodon.org avatar

Marc Kerbiquet started a new blog to talk about his "[...] experience as a hobbyist on compilers, decompilers and design of programming languages".

https://tibleiz.net

abnv, to FunctionalProgramming
@abnv@fantastic.earth avatar

I learned to escape the imperative programming languages, which in turn got me interested into and . Turns out, most of the real-world compilers are written in C and C++, so here I am back at square one.

After years of avoiding it for decades, I taught myself in the last couple of weeks. So anyway, does anyone want me to write a series of posts about making a interpreter (https://github.com/kanaka/mal) in C++?

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

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.
, , , ,

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
, , , ,

amoroso, to books
@amoroso@fosstodon.org avatar

I'm happy to welcome to Mastodon @AverageDog Nils Holm, author of "Write Your Own Retro Compiler" and other great books on compilers, programming languages, Lisp, and more.

https://t3x.org/index.html

lorddimwit, to random
@lorddimwit@mastodon.social avatar

Hot take (approaching shitpost territory):

Copy (assignment) semantics and/or requiring captured variables be constant/unchanged for function closures will cover 90% of use cases and make call stack management a brazilian times simpler for the compiler/runtime.

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)

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

New server, who dis.

Hi, I'm a CS prof, focusing on , , (https://git.odin.cse.buffalo.edu/Astral), and in ( : https://mimirdb.info and : https://vizierdb.info). I occasionally find time to dabble in wildlife and landscape and . One of these days, I'll get back to doing or . I also frequently.

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 👀

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

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.

0xor0ne, to infosec

Guide for learning internals of compilers, linkers, JITs and assemblers (with focus on software security hardening)

Low-Level Software Security for Compiler Developers:
https://llsoftsec.github.io/llsoftsecbook/

image/jpeg
image/jpeg
image/jpeg

rml, to golang
@rml@functional.cafe avatar

"The thing is that maximal tree-shaking for languages with a thicker run-time has not been a huge priority. Consider Go: according to the wiki, the most trivial program compiled to from Go is 2 megabytes, and adding imports can make this go to 10 megabytes or more. Or look at Pyodide, the Python WebAssembly port: the REPL example downloads about 20 megabytes of data. These are fine sizes for technology demos or, in the limit, very rich applications, but they aren't winners for web development.
[...]
I work on the compiler, which targets with GC. We manage to get down to 70 kB or so right now, in the minimal "main" compilation unit, and are aiming for lower; auxiliary compilation units that import run-time facilities (the current exception handler and so on) from the main module can be sub-kilobyte. Getting here has been tricky though, and I think it would be even trickier for ."

https://wingolog.org/archives/2023/11/24/tree-shaking-the-horticulturally-misguided-algorithm

gpuopen, to graphics
@gpuopen@mastodon.gamedev.place avatar

On vacation 🦃 or working 🧑‍💻 this week?

Either way, if you (or someone you know) would like to get started with programming, the Game Engineering team is excited to share their top tips with you 🌟

https://gpuopen.com/learn/how_do_you_become_a_graphics_programmer/?utm_source=mastodon&utm_medium=social&utm_campaign=beginner

We'd love to add your contributions to make the blog even more valuable!

Feel free to DM us, or reply to this post with your top tip for graphics beginners.

If it's accepted, we'll publish it on the blog and credit your handle (after confirming via DM).

janriemer,

@gpuopen

A Review of Languages - by Alain Galvan

https://alain.xyz/blog/a-review-of-shader-languages

"A review of the state of the art in real time shading languages and in both graphics and compute. What are some of the differences between HLSL, GLSL, MSL, and WGSL?"

All credits to @daridrea for sharing this. Thank you! 😘

Disclaimer: I've no experience in graphics programming, but I find this field very fascinating and want to "dip my toes" into it. Thank you for sharing

pitrh, to llvm
@pitrh@mastodon.social avatar
tallship, to random
@tallship@social.sdf.org avatar
arrdem, to random
@arrdem@macaw.social avatar

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

ChristosArgyrop, to programming
@ChristosArgyrop@mstdn.science avatar

Introduction to and Language Design: Second Edition https://a.co/d/76zrvyy

Most definitely a 5/5!

etchedpixels, to retrocomputing
@etchedpixels@mastodon.social avatar

More compiler debugging and I can now build a Z80 Fuzix kernel and user space that appear to work. Z80 code generation is based on the 8080 generator so the code is still fairly poor. Despite being able to run the compiler in 64K however the output is already often more compact, although much slower, than SDCC optimize for size. Still need to do more work on the linker for the relocatable user space, and then start trying to improve the code generation.

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