Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Demolishun34961198dLike anything you want. Languages are chosen by technical constraints. Not dubious opinions of suckyness. Javascript is mostly the only game in town for web. That is changing though.
-
Liebranca882198d0. Get flat assembler.
1. Binary mode.
2. Use macros to output JavaScript.
3. Profit. -
jestdotty5286198danything that compiles to wasm I guess
that might be more pain than JavaScript tho -
Demolishun34961198d@jestdotty I lost interest in wasm when I saw there was no threading. Or threading had poor support.
-
devRancid637198dA lot of things have been fixed over the years, haters are still stuck with a es5/jQuery mindset
Just use TypeScript and modern practices and it's fine -
lorentz15277197d@Demolishun Cross-thread communication has no place in any sandbox, because CPU manufacturers fucked us so hard that not only is Assembly unsafe but any abstraction that recognizes the passing of time in any way inherits the plague.
-
lorentz15277197dI wonder if a language could be designed that's built from the ground up to be unusable for a cache timing attack. It might consist of small blocks of code of defined runtime which pretend to be instantaneous, separated by waits which are unpredictable and long.
-
PaperTrail10743197d@Demolishun > "I lost interest in wasm when I saw there was no threading"
Have you checked out the WASM+threading in .net 8?
Curious, what kind of web app are you writing that needs multi-threading capability? -
Demolishun34961197d@PaperTrail I wanted to compile a Qt C++ app that uses threading. Support was not good for threading. So I lost interest.
-
lorentz15277197d@Demolishun WASM isn't an emulator, it's a platform. For now it's best for greenfield projects, but even when it matures it would still provide unique implementations of things like threading with unique restrictions, so you will never be able to just run a desktop app, like currently you can't just run a Windows app on Linux.
-
PaperTrail10743197d@lorentz < "WASM isn't an emulator, it's a platform"
We're going full steam into Blazor (WASM) for internal (web) migrations (Angular, React, and SharePoint). Right now, couldn't be happier.
TL;DR, my immediate mgr is a C# threading guru and pulled off some impressive async/await magic I'd put up against nearly any React/Angular/etc equivalent implementations. -
lorentz15277197d@PaperTrail Blazor has a green thread implementation I think, which should be identical for almost all purposes except some performance characteristics.
-
lorentz15277197d@PaperTrail C# can have nice things because it's an interpreted language with a massive runtime. I guess you could add it to C++ by injecting a yield operation before recursive calls and loop repeats, but the whole language and how its developers think about performance is pretty incompatible with wild shenanigans like that.
-
lorentz15277197dyou would obviously need a virtual stack, but most languages already use one alongside the native stack when compiling to Webassembly because stackbound references aren't a thing.
Related Rants
What can I use instead of JavaScript? From what I’m reading this language seems like self harm, and I’m not a masochist.
rant
help
javascript bad