News for hackers. Stuff that matters.
Re:Obfuscated Tiny C Compiler by rsiqueira on Monday February 15, 2021 @07:50AM (#26142229)
He also created QuickJS, that's javascript server side, like NodeJS but much faster to start programs. Just type "qjs your-script.js". I use it in my server because of its low overhead to start and run my microservices. https://bellard.org/quickjs/
Re:Obfuscated Tiny C Compiler by the_duke on Monday February 15, 2021 @08:02AM (#26142315)
And qemu... and ffmpeg.

The productivity of Bellard is truly admirable.

Re:Obfuscated Tiny C Compiler by mometsi on Monday February 15, 2021 @11:21AM (#26144119)
And around a week ago, his text compressor topped the enwik9 (Hutter Prize) benchmark. Not prize-eligible though-- that would require a single core, non-GPU build to run in <100h. His nncp 2.1 benchmark took 140h to run on a GTX 3090.

https://bellard.org/nncp/

http://www.mattmahoney.net/dc/text.html

Re:Obfuscated Tiny C Compiler by yudlejoza on Monday February 15, 2021 @01:49PM (#26145783)
I'm happy for him.

I also wonder his employer might be the nicest do-whatever-you-want-in-your-free-time employer on earth.

Not only that, I wonder what kind of day-job roles he has since I assume there is significant cognitive load in his personal projects (we still think he's a human not a superhuman right?).

For context, my last employer was "Oh you're doing something in your free time? let me utterly destroy you." (and they did).

Re:Obfuscated Tiny C Compiler by soegaard on Monday February 15, 2021 @02:02PM (#26145915)
No worries on that front: https://www.amarisoft.com/about-us/
Re:Obfuscated Tiny C Compiler by yudlejoza on Monday February 15, 2021 @02:06PM (#26145964)
Founded in 2012. That's like yesterday. 80% of his stuff was done by then.

edit: Even then, now he probably has the world's nicest co-founder instead. Who does cognitively demanding open source software projects made available for free online, while running a startup?

Re:Obfuscated Tiny C Compiler by 1996 on Monday February 15, 2021 @03:03PM (#26146618)
> For context, my last employer was "Oh you're doing something in your free time? let me utterly destroy you." (and they did).

How could they? And what was their motivation for doing this?

An employee doing something in their free time is a rare and valuable asset.

Re:Obfuscated Tiny C Compiler by yudlejoza on Monday February 15, 2021 @03:37PM (#26147006)
Boy I got news for you.

They also had a policy that everyone should spend at least 4 hours every week (outside of the 40 hour work-week) doing some personal project, or learning. The more the better. (it was a recommendation, not a requirement, and there was no monitoring).

Well what I had in mind was a bit more ambitious than four hours. It did not infringe on their bottom-line (I wasn't using their tech or competing with my day-job; it was completely unrelated). But for me they were like "Oh, no, no ... we were just kidding. We really didn't mean that you should do something in your free time".

The encouragement to do something in free-time is a lie! ... they know most of the engineers don't do that. But if someone actually does something, then the lie gets exposed.

Try it yourself. Take them up on their offer and see what happens.

Re:Obfuscated Tiny C Compiler by 1996 on Monday February 15, 2021 @06:00PM (#26148760)
I don't work anymore, but I'm curious of what happened.

You said they destroyed you.

Did they fire you for working on your project?

Were you harassed? (tall poppy syndrome?)

Re:Obfuscated Tiny C Compiler by yudlejoza on Monday February 15, 2021 @06:30PM (#26149088)
I'm not going to open a can of worms here but lemme suffice by saying this:

With success comes maturity, and a startup turns into a corrupt, org-chart, white-elephant company. 90% of the employees end up being cronies that are pushing paper. The remaining 10% are the real engine of the company (cz the revenue stream has to be maintained somehow and real work still needs to be done). But those 10% need to be kept under the thumb at all cost, made to feel they're not good enough no matter what they do; otherwise they might start questioning wtf's going on in the rest of the company. Let's just say that I was one of those 10%. They did whatever they had to do to make an example out of me. I got my freedom, but I actually feel worse for the other hard-workers who were left behind.

Re:Obfuscated Tiny C Compiler by ducktective on Tuesday February 16, 2021 @02:45AM (#26151788)
Is this SV? What was the field of that startup?
Re:Obfuscated Tiny C Compiler by fullstop on Monday February 15, 2021 @10:29AM (#26143595)
He worked on ffmpeg under a pseudonym. He may very well be secretly involved in other projects.
Re:Obfuscated Tiny C Compiler by jsmith45 on Monday February 15, 2021 @11:10AM (#26144020)
Worked on might be an understatement, given that he was the initial ffmpeg developer, and thus founded that project.
Re:Obfuscated Tiny C Compiler by astrange on Monday February 15, 2021 @01:52PM (#26145816)
There have been many more ffmpeg developers since then. I think it was originally a mpeg1/2/4 codec only, which is something one person can do. Although hardly anyone has done it with acceptable performance like he did, usually they like to get abstract and object-oriented for no actual benefit.
Re:Obfuscated Tiny C Compiler by jtxx on Monday February 15, 2021 @11:07AM (#26143982)
damn that’s ballin, I didn’t even know people did that with code
Re:Obfuscated Tiny C Compiler by masklinn on Monday February 15, 2021 @11:04AM (#26143955)
jslinux as well, it's more of a cool demo than anything useful but the "cool" factor is super high. And led to tinyemu (which underlies the current jslinux implementation). The current version can run Windows NT inside QEMU inside JSLinux. In your browser.
Re:Obfuscated Tiny C Compiler by kizer on Monday February 15, 2021 @08:12AM (#26142383)
Bellard is one of those 1%’ers.
Re:Obfuscated Tiny C Compiler by acmj on Monday February 15, 2021 @08:34AM (#26142562)
Only 1%? At least one per million, if not per billion (depending on how you count the denominator).
Re:Obfuscated Tiny C Compiler by twic on Monday February 15, 2021 @10:14AM (#26143438)
He's not just 10x, he's 0x10x.
Re:Obfuscated Tiny C Compiler by kizer on Monday February 15, 2021 @11:47AM (#26144368)
You’re right. Let’s say he’s a 1%’er under a linear view of a logarithmic ranking of all programmers.
Re:Obfuscated Tiny C Compiler by boogies on Monday February 15, 2021 @02:19PM (#26146104)
~0.00001‰
Re:Obfuscated Tiny C Compiler by montroser on Monday February 15, 2021 @11:35AM (#26144265)
I wonder if he's lonely, with not too many people in the world who can communicate, operate, execute at his level...
Re:Obfuscated Tiny C Compiler by carapace on Monday February 15, 2021 @12:36PM (#26144927)
That reminds me, Edward Teller said "von Neumann would carry on a conversation with my 3-year-old son, and the two of them would talk as equals, and I sometimes wondered if he used the same principle when he talked to the rest of us."
Re:Obfuscated Tiny C Compiler by dingdingdang on Monday February 15, 2021 @01:54PM (#26145831)
QuickJS Main Features:

* Small and easily embeddable: just a few C files, no external dependency, 210 KiB of x86 code for a simple hello world program.

* Fast interpreter with very low startup time: runs the 75000 tests of the ECMAScript Test Suite in about 100 seconds on a single core of a desktop PC. The complete life cycle of a runtime instance completes in less than 300 microseconds.

* Almost complete ES2020 support including modules, asynchronous generators and full Annex B support (legacy web compatibility).

* Passes nearly 100% of the ECMAScript Test Suite tests when selecting the ES2020 features. A summary is available at Test262 Report.

* Can compile Javascript sources to executables with no external dependency.

Re:Obfuscated Tiny C Compiler by codazoda on Monday February 15, 2021 @12:07PM (#26144600)
I hadn't seen QuickJS before and it looks amazing. It's a small, fast implementation of JS plus wrappers for the C standard library. That standard library includes output, reading and writing files, and a lot more. It's both an interpreter and a compiler. So you can build small console apps in JS.
Re:Obfuscated Tiny C Compiler by mhd on Monday February 15, 2021 @11:00AM (#26143920)
Do you run your microservices as CGIs or from inetd? Or why does the start overhead matter that much?