32
submitted 1 month ago by [email protected] to c/[email protected]

Video is nearly 3 years old now, but I think it's worth watching. Her presentation starts at around 2:30.

Basically, she explains how Redbean, a tiny (~450kb) and very fast C http server, works and how the same executable can be used to deploy it on most operating systems (she starts explaining that around 14:30)

Justine is also the mind behind Sector LISP, Lambda Calculus in 383 bytes, considerable optimizations to LLamaAI, plus several other things.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 3 points 1 month ago

Huh. In was just playing around with some samples from her page, and can't get them to run on either AMD64 or ARM. What's worst is that on my AMD machine I have Wine installed, and trying to run it fires up Wine (where it does eventually execute). You're supposed to also be able to sh it, and if I do that they just fail. On an ARM, they just fail. I was unable to get any of the samples from he page to run.

I haven't tried compiling my own program, but if the download samples don't run (for me), it doesn't give me confidence in the solution.

[-] FooBarrington 1 points 1 month ago

I just tried the current redbean build on Linux AMD64, and everything worked as expected (both launching directly, and through sh). Which examples did you specifically try? Which sh version do you use (I have 5.2.26(1)-release (x86_64-redhat-linux-gnu))?

The cosmopolitan README has a section on the WINE thing, if you want to try and get it running.

[-] [email protected] 1 points 3 weeks ago

I tried all of the examples from her page about αcτµαlly pδrταblε εxεcµταblε. It looks like the page was written in 2020, so I'm assuming the binaries were compiled then, but that shouldn't matter; I have Go binaries I built in 2021 that still run, and I have no doubt that it I could find an even older binary, they'd run too.

[-] FooBarrington 2 points 3 weeks ago

Those were their first tests, of course there is a high chance they won't run on all system configurations (especially since things like WINE comparability were likely detailed later). You should try artifacts built with the current version of the format (3 IIRC) if you want to give it a fair shot.

[-] [email protected] 1 points 3 weeks ago

Good to know, thanks.

this post was submitted on 13 May 2024
32 points (90.0% liked)

Programming

16045 readers
238 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS