HNHacker News
TopNewBestAskShowJobs

qalmakka

5,113 karma · joined November 10, 2017

submissionscomments
qalmakka··on Wine 11 rewrites how Linux runs Windows games at kernel with massive speed gains
AFAIK it's more like a reimplementation of NT APIs in userspace - aka basically Wine with extra steps, or Linux UM. There was a slide deck going around about Project Drawbridge, here: https://threedots.ovh/slides/Drawbridge.pdf
qalmakka··on Wine 11 rewrites how Linux runs Windows games at kernel with massive speed gains
Ironically, SQL Server AFAIK in order to run on Linux uses what basically amounts to a Microsoft reimplementation of Wine. Which always makes me wonder if they'll ever get rid of Windows altogether someday in favour of using Linux + a Win32 shim. I think there are still somewhat strong incentives nowadays to keep NT around, but I wouldn't be that surprised it this happened sometime down the line.
qalmakka··on Honda is killing its EVs
LPG isn't a good metric of a "weird" fuel, there are countries such as Italy where it's immensely popular
qalmakka··on If you thought code writing speed was your problem you have bigger problems
This. The comparison between compilers and LLMs is so utterly incorrect, and yet I've heard it multiple times already in the span of a few weeks. The people suggesting this are probably unaware of the fact that Turing complete languages follow mathematical properties not just vibes. You can trust the output of your compiler because it was thoroughly tested to ensure it acts as a Turing machine that converts one Turing complete language (C, C++, whatever) into another Turing complete language (ASM) and there's a theorem that guarantees you that such a conversion is always possible. LLMs are probabilistic machines and it's grossly inappropriate to put them in the same category as compilers - it would be like saying that car tires and pizzas are similar because they're both round and have edges.
qalmakka··on Parallels confirms MacBook Neo can run Windows in a virtual machine
Yeah I wasn't aware that Microsoft allowed that nowadays. Still, it's not ideal anyway, because in my experience Windows apps that are compatible with ARM are 90% either FOSS or portable on other platforms anyway. You use Windows to use x86 apps; if you don't need x86 apps you are generally better not using Windows at all, and if you need them they'll probably run poorly on ARM due to multiple layers of emulation. Wine is still an option, though. They support Rosetta on Mac and FEX/Box64 on Linux, so they may lead to better performance than Parallels

> I was pleasantly surprised how fast you can run x64 windows apps

In general as long as you have a fast enough machine emulation isn't that bad. Apple was doing that already for 68k with PPC and most people didn't noticed due to how massively faster their first PPC computers were. Still, the issue is that here we're not really talking about a high-end CPU aren't we

qalmakka··on Parallels confirms MacBook Neo can run Windows in a virtual machine
There's a big difference between running native ARM software on ARM and emulating x86 to run Windows. If this Mac was x86, it could have probably run Windows much faster thanks to virtualization
qalmakka··on EVi, a Hard-Fork of Vim
I originally switched because neovim was more polished, had better plugins and Lua config files. I then never had a reason to go back
qalmakka··on Germany's Solar Boom Eases Power Costs as Gas Price Jumps
It's a paramount imperative for Europe to wean itself from fossil fuels, regardless of environmental arguments (which are extremely relevant still). Getting a safe, unfettered provider of fossil fuels is getting a basically unsolvable problem. China is trying to build as much solar and nuclear capacity as humanly possible; we should do the same too. We've been having these energy shocks since the Yom Kippur war basically, it's like a broken cycle of instability and crisis we can't leave behind. There's no shale to be found in Europe, we just have wind, sun and nuclear to save our backs. And maybe geothermal pretty soon?
qalmakka··on EVi, a Hard-Fork of Vim
Honest question: why would anyone use Vim and not NeoVim nowadays? I've switched what, 12 years ago? And I've never had to look back. Just curious, to be honest. Especially since neovim is full of new features, while the Vim9 scripting language kind of tanked
qalmakka··on FFmpeg at Meta: Media Processing at Scale
Isn't this like telling the world you ate a full meal by eating samples at Costco? Meta is ranking in billions as we speak, they ensure the FOSS projects they rely on are properly funded instead of shovelling cash to bullshit datacentre developments. Otherwise we're basically guaranteed to end up with another XZ fiasco once again when some tired unpaid FOSS maintainer ends up trusting a random Jia Tan in their desperation
qalmakka··on Agent Safehouse – macOS-native sandboxing for local agents
> What would native containers bring over Linux ones?

What would a Phillips screwdriver bring over a flathead screwdriver? Sometimes you don't want/need the flathead screwdriver, simple as that. There are macOS-specific jobs you need to run in macOS, such as xcode toolchains etc. You can try cross compiling, but it's a pain and ridiculous given that 100% of every other OS supports containers natively (including windows). It's clear to me that Apple is trying to make the ratio jobs/#MacMinis as small as possible

qalmakka··on Google Workspace CLI
> gws doesn't ship a static list of commands. It reads Google's own Discovery Service at runtime and builds its entire command surface dynamically

You're not exactly describing rocket science. This is basically how websites work, there's never been anything stopping anyone from doing dynamic UI in TUIs except the fact that TUI frameworks were dog poop until a few years ago (and there was no Windows Terminal, so no Windows support). Try doing that in ncurses instead of Rataui or whatever, it's horrendous

qalmakka··on AMD will bring its “Ryzen AI” processors to standard desktop PCs for first time
> all CPU/RAM capacity is being sold to LLM companies, and as a result we can't get the hardware needed for good local LLMs.

yeah... Ironic I guess. It's as if they've realised that it's only a matter of time until we get a "good enough" FOSS model that runs on consumer hardware. The fact that such a thing would demolish their entire business of getting VC hyped while giving out their service for a loss surely got lost to them. Surely they and Nvidia have not realised that the only thing that could stop this is to make good hardware unreachable for anything smaller than a massive corp

Mark my words: in less than one year, we'll probably get something akin to Opus 4.6 FOSS. China is putting as much money into that as they can because they know this would crash the US economy, which is in the green only thanks to big tech pumping up AI. China wants Trump either gone or neutered as soon as possible, which they know they can do by making Republicans as unelectable as possible - something that will probably do if the economy crashes and a recession happens

qalmakka··on You Just Reveived
In Italy I pay 9.99 for 250GB, unlimited calls and SMS (never sent one in 10+ years but it's nice to have I guess), which for me is basically akin to infinite traffic given that unless I start downloading torrents from 5G I'll never ever run out of traffic ever
qalmakka··on AMD will bring its “Ryzen AI” processors to standard desktop PCs for first time
Yeah, but all of this is pointless when RAM is as expensive as two CPUs by itself - if it's even in stock. AMD/Intel should focus on that first if they want to save their DIY business at all - which I'm starting to doubt they don't
qalmakka··on Show HN: Rust compiler in PHP emitting x86-64 executables
It is not mine unfortunately, it comes from a very funny write-up by rsaksida: https://rsaksida.com/blog/ape-coding/
qalmakka··on Ask HN: What sources like HN do you consume?
That's precisely why we had forums back in the '00s. there were forums for basically everything under the sun - unfortunately they mostly died nowadays. HN is basically just a forum with a single board that got enough recognition - your average forum had more boards than users and was so fragmented it mostly ended up in instadeath after a few months,maybe years
qalmakka··on Show HN: Rust compiler in PHP emitting x86-64 executables
I think people don't really realise that compilers are "difficult" projects in the same way as an appendicectomy is for a skilled surgeon, i.e. the surgery is "routine" only because the surgeons spent decades honing their skills to do these routinely. The hard part was training someone to be able to do that.

Writing a compiler/interpreter is _extremely_ straightforward; a lexer -> parser -> ast -> semantic analysis -> {codegen -> linker | evaluator} pipeline is a very widely understood and tested way to write a compiler in any language, regardless of what language you are trying to compile. The hard part is _learning_ how it works, but after that implementing a compiler is a kind of mechanical activity. That's why LLMs are so great at writing parsers: they can just read the source of any compiler (and they probably read all of them) and apply the same stuff mechanically, with almost a 100% accuracy. We even have formal languages to define parsers and RTL and stuff, that's how "mechanical" the whole process can be.

I'm pretty sure that any skilled compiler dev with the ISO C standard and a few packs of Red Bulls can apecode a working C compiler in a few days, give or take. The hard part isn't doing that, the hard part is the decades of iterative improvements to make it generate extremely performant yet correct code as fast as possible.

qalmakka··on British Columbia is permanently adopting daylight time
Unfortunately two very big things happened afterwards:

1. Covid, which caused a dramatic shift in the EU focus and required the Commission to permanently take on lots of extra responsibilities (debt, shared procurement of medical goods and vaccines, way more international recognition/influence, etc)

2. Brexit: Ireland has to follow whatever Northern Ireland does. Northern Ireland's Unionists will never tolerate being in a different timezone than London, and Farage and his cronies in the UK will never tolerate having to swallow down an EU directive for ideological reasons. BoJo was already saying back in '19 that the UK was going to keep daylight savings only to spite the EU. This means that Ireland will almost 100% veto any changes to DST unless London is on board with them.

There's also an underlying internal divergence about what abolishing DST should look like. While nobody in Europe likes daylight savings (the material act of switching), Southern and Northern Europe have a very different opinion about which timezone to keep. Right now basically 70% of the EU is in CET/CEST, so trade and business are frictionless - from the tip of Sweden down to Malta, from Galicia to the Suwalki Gap - all year round.

The issue now is that Northern Europeans generally don't give a fuck about more daylight in the summer - they already have a humongous amount of daylight during the night. What they'd like to do is to keep "natural" time all year around, because summer time would cause the sun to rise extremely late in winter. They'd like CET to become the new central European standard.

On the contrary, in Southern Europe people don't really care that much about sun rising at 7 or 8 in winter but really love the extra hour of sun on summer evenings. This means keeping CEST all year round.

Given that having a timezone between Southern Germany and Austria/Northern Italy or between the Rhineland and France is objectively terrible for the EU economy, nobody is going to propose this ever again unfortunately. I think we're stuck with DST forever unless someone caves - most likely the Nordics. Having basically all of Europe on a single timezone is just too convenient, that's why nobody went back to their previous timezones after Hitler and Franco fucked them up in the '40s and why China is still on Beijing time

qalmakka··on Libxml2 Enterprise Edition (AGPL, from the previous maintainer)
> I'm not sure though relicensing MIT code under AGPL is legally sound if your additions are just bug fixes.

It is: the original unmodified code is still MIT, but the bits you wrote and thus you hold the copyright for are AGPL. The combination of your bits + old bits is AGPL; some judge may argue your derived work isn't derived enough if you just change a few characters though. Still, I may argue that fixing a bug, no matter how trivial, requires you to perform a creative task, which almost definitely is by itself to be considered enough to go above the threshold required by a derived work.

qalmakka··on Libxml2 Enterprise Edition (AGPL, from the previous maintainer)
You can't just take an MIT/X11 licence, remove it, and relicense it as it's an explicit violation of the MIT/X11 licence. This however only applies to the original code, so any new addition can be under whatever licence you want, including a more restrictive one. That doesn't change your obligation to reproduce the previous copyright notice as instructed by the licence you got the code under
qalmakka··on Why does C have the best file API
> If I write an OS in Basic, surely the 'natural' language for exposing the system calls is Basic?

For that specific OS, that would probably be the case? I think every API is bound to reflect the specific constraints of the language it has been written in. What I was trying to clarify was that UNIX and C are intertwined in an especially deep way, more than basically other OS that doesn't have a UNIX API, because both were born and written alongside each other, so some Unix APIs rely on C-specific behaviour and quirks and some C features were born and designed around the same historical context UNIX was born

qalmakka··on Why does C have the best file API
> C is the natural language for exposing Unix system calls

No, C is the language _designed_ to write UNIX. Unix is older than C, C was designed to write it and that's why all UNIX APIs follow C conventions. It's obvious that when you design something for a system it will have its best APIs in the language the system is written in.

C has also multiple weird and quirky APIs that suck, especially in the ISO C libc.

qalmakka··on Why does C have the best file API
> C has the best API

POSIX has the best API. C has `fopen` which, while not terrible, isn't what I'd call "great"

qalmakka··on WebMCP is available for early preview
The likelihood of this happening hovers between -1 and 1
qalmakka··on WebMCP is available for early preview
Yeah even the "basic" free tier Gemini 3.1 thinking model can easily unscramble that. It's impressive, but after all it's the very precise kind of job an LLM is great at - iteratively apply small transformations on text
qalmakka··on The Windows 95 user interface: A case study in usability engineering (1996)
This. Windows 9x-2000 GUIs were probably the pinnacle of OS UX, but were utterly ugly and boring as UIs. Their looks were unimpressive and boring, but they got the job done and they were easy to use and worked well. Windows 95 was like a 90 cents spoon - not particularly appealing, but extremely useful
qalmakka··on ChatGPT Health fails to recognise medical emergencies – study
I agree. AI right now is at a level of "knowledgeable friend", not of "professional with years of real world experience". You'd listen to what your friend has to say, but taking pills after one of their suggestions? Dumb idea. It's great to brainstorm things, but just like your knowledgeable friend that likes reading Wikipedia pages a bit too much you need to really check it's not reaching to conclusions too quickly
qalmakka··on Julia: Performance Tips
My two cents: while Julia is arguably more complex than Go, it's type system and especially its data types (N-dimensional arrays, ...) make it way more suited anything that needs to process complex data, or do anything that's even closely related to geometry. `.|>` is wonderful and makes functional-like code easier, and that's just the tip of the iceberg, macros are also beautiful and absurdly useful. Also LLVM more often than not generates faster code than the Go backend, albeit the slowdown at startup in Julia programs is often a dealbreaker for small scripts and iteration in my experience

Also, the REPL. Julia's REPL is vastly better than any other language REPL, by far. Python's is good but Julia is way better, even as a calculator for instance, it has fractions and it is more suited for maths

qalmakka··on I hacked ChatGPT and Google's AI – and it only took 20 minutes
This is a pretty interesting take. If AIs have as their main knowledge base Internet contents, they're basically roleplaying as a human doing research online - they also need to be thought to think critically about whether some information _feels_ reliable or not. Are current LLMs capable of _really_ doing critical analysis or do they just pretend being able to do it?
← PreviousPage 3 of 34Next →