Live data from Hacker News

Fabrice Bellard Releases MicroQuickJS

github.com

571–580 of 594 posts

Re: Fabrice Bellard Releases MicroQuickJS

#572
post #67
post #17

Clarification added later : One of my key interests at the moment is finding ways to run untrusted code from users (or generated by LLMs) in a robust sandbox from a Python application. MicroQuickJS looked like a very strong contender on that front, so I fired up Claude Code to try that out and build some prototypes. I had Claude Code for web figure out how to run this in a bunch of different ways this morning - I hav…

Down to -4. Is this generic LLM-dislike, or a reaction to perceived over-self-promotion, or something else? No matter how much you hate LLM stuff I think it's useful to know that there's a working proof of concept of this library compiled to WASM and working as a Python library. I didn't plan to share this on HN but then MicroQuickJS showed up on the homepage so I figured people might find it useful. (If I hadn't dis…

[deleted]

Re: Fabrice Bellard Releases MicroQuickJS

#573
post #17

Clarification added later : One of my key interests at the moment is finding ways to run untrusted code from users (or generated by LLMs) in a robust sandbox from a Python application. MicroQuickJS looked like a very strong contender on that front, so I fired up Claude Code to try that out and build some prototypes. I had Claude Code for web figure out how to run this in a bunch of different ways this morning - I hav…

Curious if you have a specific use case for sandboxed JS that you would share?

I want to build software features where users can configure some additional JavaScript to run in order to customize that software.

One example: given this database table run this JavaScript function against every value in this column to calculate a value to be stored in another column.

Or once a day fetch the JSON from this URL and transform it with this JavaScript and store it here.

Re: Fabrice Bellard Releases MicroQuickJS

#574
post #560

Earlier quoted context omitted.

Which scheme implementation? Guile?

For a functionnal language, TCO is really a must have. How would you do the equivalent of loops without it ?

For a purely functional language. Scheme is not that.

https://www.gnu.org/software/guile/manual/html_node/while-do...

Re: Fabrice Bellard Releases MicroQuickJS

#575

Earlier quoted context omitted.

He is extremely productive in its specialty: the intersection of programming language and system programming. I don't think that makes him superhuman. It's more a model of what a really talented person who applies themselves building things they enjoy building can do. I prefer thinking of it this way: if Bellard can make a small JS engine from scratch by himself, what's really stoping you from knocking down this libr…

> He is extremely productive in its specialty: the intersection of programming language and system programming. Why do you say that specifically is his specialty? He also started QEMU and ffmpeg which are foundational pieces of software for several industries, and his day job is as founder of a company that makes software defined radio test equipment for cellular networks. There isn't one thing I could point at as a…

All of this seems to fit the bill pretty closely to me.

Ffmpeg uses a ton of arcane C and assembly knowledge to make multimedia system manageable and efficient. QEMU uses dynamic binary translation for hardware emulation and virtualization. Amarisoft speciality is basically using software to do things which are usually done by hardware.

The intersection of programming language and system programming seems to me like a pretty fair description of what Fabrice Bellard is extremely good at.

Re: Fabrice Bellard Releases MicroQuickJS

#576
post #525

Earlier quoted context omitted.

All of them.

To elaborate, the scheme spec requires tco.

Which scheme is embeddable and lightweight?

And what does lightweight mean? Does it mean low memory footprint or does it mean few-lines-of-code-to-introduce or does it mean zero-dependencies?

Re: Fabrice Bellard Releases MicroQuickJS

#577
post #560

Earlier quoted context omitted.

Which scheme implementation? Guile?

For a functionnal language, TCO is really a must have. How would you do the equivalent of loops without it ?

I wasn't asking which scheme has TCO.

I was asking which scheme if the 20-50 of them was "lightweight" and embeddable.

Re: Fabrice Bellard Releases MicroQuickJS

#579
post #560

Earlier quoted context omitted.

For a functionnal language, TCO is really a must have. How would you do the equivalent of loops without it ?

For a purely functional language. Scheme is not that. https://www.gnu.org/software/guile/manual/html_node/while-do...

And you are wrong because you can define a loop as iterating recursively over a list with just car and cdr.

Re: Fabrice Bellard Releases MicroQuickJS

#580
post #579

Earlier quoted context omitted.

For a purely functional language. Scheme is not that. https://www.gnu.org/software/guile/manual/html_node/while-do...

And you are wrong because you can define a loop as iterating recursively over a list with just car and cdr.

Can but since other constructs exist that doesn't by itself make TCO "must have"
Post reply on HN