News for hackers. Stuff that matters.

9d

Re:Why doesn't Rust care more about compiler performance? on Thursday June 12, 2025 @02:44PM (#44261446)
Just curious, are you still able to get instant feedback and development conveniences on that 30 minute compile time project, like up to date autocomplete and type hints and real-time errors/warnings while developing before compiling?
No I mean what if we updated the wasm spec to allow it?
Re:Service Workers are too hard to clean-up (2023) on Tuesday June 10, 2025 @08:38AM (#44236086)
The one point here that's relevant to me is that if you use a service worker and then redesign your web app so that it's no longer needed, now you need to host code that removes the service worker, and you can never remove that new code, because there may be users with the sw installed who don't revisit for years.

Service workers should have an auto expiration. Maybe a month or so.

I understand, but what I mean is, what if there is no more opportunity for the light to emit heat, because the surrounding environment is already saturated with so much heat that it can't accept more? Is this a possible way to prevent the light from emitting heat and therefore prevent the light from decreasing its luminousness? There must be a way!
Why not just give apps chunks of non-contiguous memory and let them deal with that fact? Then like realloc, the memory they need stretched may just be moved first.
> Hire or sponsor?

The point here is that sponsoring me would be hiring me collectively.

> Is any of them available?

No. I'm not good at making games. But I'm good at making APIs.

I was told it was plasma. Who is wrong, them or you? Either way, I can't trust one of you...
To be honest, I don't know what Docker or any of these things are. I just wanted to sound smart so I could fit in and people would like me.
Re:How do you prototype a nice language? on Monday June 09, 2025 @07:13PM (#44230648)
> the Gleam language, which is written in Rust and has first-party LSP support

How have I never heard of this language before?

https://gleam.run/

Re:Domains I Love on Monday June 09, 2025 @06:49PM (#44230439)
Oh oh! Include 90s.dev! Such a perfect domain name, a built in pun. What a waste.
That's a good point I didn't think about.

I guess it's like v8 compared to quickjs.

Anyway all this talk about wasm makes me want to write a scriptable Rust app!

At what point will this Russian doll set of virtualization reach an end?

Let's run linux inside a container inside docker inside macos inside an ec2 macos instance inside a aws internal linux host inside a windows pc inside the dreaming mind of a child.

And inside that linux maybe run qemu with munal os [https://github.com/Askannz/munal-os]

No, I do not accept this. There must be a way. What if the mirror box has a high enough heat? Would it work then? The box could be made of a heat resistant material, like fiberglass.
I had no idea what fuel is until this discussion.

What's the rationale? Just preventing infinite loops from hanging the host?

If the inefficiency is the counter, what if you just calculated an instruction offset - start < threshold every once in a while?

This probably makes no sense, ignore it, I'm way in over my head.

[1] https://github.com/bytecodealliance/wasmtime/issues/4109

[2] https://github.com/bytecodealliance/wasmtime/blob/main/examp...

Could you elaborate?
ChromeOS only uses V8 by happenstance, being an OS that's just a browser.

Android could have used anything and it would have been successful, even C++.

These were both successful purely because they're cheap, not because technology.

But if this benchmark is right, then wasmtime is 5x faster than wasmi for it:

https://github.com/khvzak/script-bench-rs

I started on a Rust app that uses SDL3 and lets you script it via embedded V8[1]. But I'm very seriously tempted to fork it and embed wasmtime or wasmi and let you script it in anything, and include a few wasm compilers into the app for convenience so you just give it a file and it does the rest. Mainly because of the speed of wasmtime and wasmi compared to alternatives[2]. But my biggest concern is that this isn't adding any real convenience. You still have to set up whole code environments, which defeats the purpose of scripting it. Still, it's such a neat idea that I don't want to not do it, and I just might.

[1] https://sdegutis.github.io/blog/dear-everyone-hire-me-to-mak...

[2] https://github.com/khvzak/script-bench-rs

> Great question!

Thanks! I have lots more too. Are there directions in space? What kind of matter is fire made of? If you shine a laser into a box with one-way mirrors on the inside, will it reflect forever? Do ants feel like they're going in regular motion and we're just going in slow motion? Why do people mainly marry and make friends with people who look extraordinarily similar to themselves? How do futures work in Rust? Why is the C standard still behind a paywall? Let me know if you need any more great questions.

Yeah but--
Dang, I'm far behind then, I haven't even downloaded QBE[1] yet!

[2] https://c9x.me/compile/

Not sure why you were downvoted. I think you're probably right about a lot of that. I do know that it's certainly the case for me. I have a lot of talent, but I can't harness it unless I find a project I truly believe in. But who's to say which projects are worthwhile, which projects genuinely help humanity? Not everything we do and breathe needs to be activism against injustice all the time. Take pico8 as an example. That has rejuvenated the joy and wonder of countless aging programmers, and probably taught many young people how to make games. Is that not inherently a good thing? And it made money doing it, should it not?
Mostly I meant WASM as a platform (waap?) which seems so futuristic to me. I hope one day all OSes can natively run WASM code, though I'm not sold on WASI since then we're back to square one with security it seems.
Re:Apple introduces a universal design across platforms on Monday June 09, 2025 @03:30PM (#44228407)
It's the candy look from the early 2000s, from Mac OS X 10.1, turned up to 11.

Did Apple learn nothing from Windwos Vista and Compiz?

Yeah it's one of those projects were I'm so impressed that I'm saying nothing because there's nothing to say, it's just really impressive. I'm not sure what will come of this project, but it has a lot of potential to at least inspire other projects or spark important discussions around its innovations.
Not OP, but I'm confused how this would be helpful. You're saying for example, he can use this function to create a coroutine out of a function, begin it, and if the function fails by e.g. running out of memory, you can give the module more memory and then resume the coroutine? If so, how is that different than what naturally happens? Does wasm not have try/catch? Also, wouldn't the module then need to back up manually and retry the malloc after it failed? I'm so lost.
What the DLL, Dmitry. Don't be a buzzkill.
Re:Tim Bray's AI Angst on Monday June 09, 2025 @02:48PM (#44227857)
> Too many people create new tools, tech, etc. without really stopping to take a moment and think or have a discussion on what the absolute worst case applications of their creation will be

"Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should." -Jeffrey L. Goldblum when ILM showed him an early screening of Jurassic Park.

> In many such cases the creators sleep easy at night with the justification that it's not THEIR fault people are misusing their platforms, they provided a neutral tool and are absolved of all responsibility.

The age old question of gun control.

Older »