4 ms·
Back when C# came out, I thought for sure someone would make a processor that would natively execute .Net bytecode. Glad to see it finally happened for some la
by rkagerer 2y ago
Back when C# came out, I thought for sure someone would make a processor that would natively execute .Net bytecode. Glad to see it finally happened for some language.
- jiehong 2y agoJava got that with smart cards for example. Cute oddities of the past
- monocasa 2y agoJavaCard was just implemented as just a regular interpreter last time I checked.
- whoomp12342 2y agoI'd be surprised if azure app services didn't do this already.
- actionfromafar 2y agoWouldn't that be a real scoop?
- john-h-k 2y agoI’d be willing to bet my net worth that they don’t
- whoomp12342 2y agothen why does azure app services have you pick the .net version?!
- john-h-k 2y agoI can't tell if this is joke but will assume not. It's because the .net version is needed for some reason. There are not processors that run .net bytecode, primarily because they would be slower and worse (and again, don't exist)
- bongodongobob 2y agoAzure runs on Linux if I'm not mistaken.
- ggiesen 2y agoNope.
- bongodongobob 2y agoCan you tell me how I'm misunderstanding this? https://en.m.wikipedia.org/wiki/Azure_Linux?utm_source=chatgpt.com https://en.m.wikipedia.org/wiki/Azure_Linux?utm_source=chatg...
- kcb 2y agoFor Java, this was around for a bit https://en.wikipedia.org/wiki/Jazelle https://en.wikipedia.org/wiki/Jazelle.
- monocasa 2y agoEven better was a complete system rather than a mode for arm processors that ran a subset of the common jvm opcodes. https://en.wikipedia.org/wiki/PicoJava https://en.wikipedia.org/wiki/PicoJava
- varispeed 2y agoDidn't some phones have hardware Java execution or does my memory fail me?
- Sesse__ 2y agoIt's called Jazelle.
- lodovic 2y agoSun tried to build one too, they called it the JavaChip iirc. It was meant for JavaStations, kiosk machines, and mobile phones but it never took off. https://en.wikipedia.org/wiki/Java_processor https://en.wikipedia.org/wiki/Java_processor
- f1shy 2y agoNo. There where Motorola phones with Motorola processors with Java Co-Processor. Not Jazelle.
- f1shy 2y agoYes. I known at least one Motorola phone which had a co-processor for Java (not Jazelle)
- ComputerGuru 2y agoI want to say there was a product that did this circa 2006-2008 but all I’m finding is the .NET Micro Framework and its modern successor the .NET nano Framework. I’ve been using .NET since 2001 so maybe I have it confused with something else, but at the same time a lot of the web from that era is just gone, so it’s possible something like this did exist but didn’t gain any traction and is now lost to the ether.
- supportengineer 2y agoDoes anyone remember the JavaOne ring giveaway? https://news.ycombinator.com/item?id=8598037 https://news.ycombinator.com/item?id=8598037
- zahlman 2y agoIn university, for my undergrad thesis, I wanted to do this for a Befunge variant (choosing the character set to simplify instruction decoding). My supervisor insisted on something more practical, though. :(
- zahlman 2y agoI probably should have added a link: https://esolangs.org/wiki/Befunge https://esolangs.org/wiki/Befunge The main thing that appealed to me about this idea is that it would require a two-dimensional program counter. As I recall from the original specification, skipping through blank space is supposed to take O(1) time, but I didn't plan on implementing that. I did, however, imagine a machine with 256x256 bytes of memory, where some 80x25 (or 24?) region was reserved as directly memory-mapped to a character display (and protected at boot by surrounding it with jump instructions).
- john-h-k 2y agoThe tl;dr (I spent lots of time investigating this) is that it just fundamentally isn’t a good bytecode for execution. It’s designed to be small on disk, not hardware friendly