Hacker News new | past | comments | ask | show | jobs | submit | JonChesterfield's comments login

Something like this should be hitting the instruction level vectoriser, the basic block at a time one, nearly bang on. Its a lot of the same arithmetic op interleaved. It might be a good test case for llvm - I would have expected almost entirely vector instructions from this.

Yes. Take the one which might not halt and add an integer argument which you decrement on recursion/loop, possibly called "fuel", and return don't know when that hits zero. Then call your algorithm with a large integer for that argument and wait.

Practically speaking, if your goal is to protect system resources, which is a practical concern removed from theoretical computer science, the halting problem isn't even the right concern. It's good to know about and all, but the problem is that programs which halt can be a nuisance. You don't care about the difference between "runs for 5 days and halts" and "runs forever".

Some programs run indefinitely by design, like services. Those may be acceptable in a system, but not CPU-intensive, long-running programs.

So you in fact have to reject some programs which halt, and accept some which don't.


If you replace the uint64_t cell with an attribute((vector_size(32))) and build with march=native, the bitwise ops will work exactly as before but you'll light up the vector units on the x64 machine.

Good blog post, thanks!


Glad you enjoyed it, and thanks for the tip!

Writing the software for your company is selling it to your company in exchange for your salary.

Either you fancy writing some code and pitching it to your employer, which seems like donating it with extra steps plus some lawyers, or you want to build something for the other department and the main challenge is persuading your boss that's a good idea.


This can and should be a separate tool, probably called a linter. The compiler dealing with codegen can then just say "nope, that's not a program in this language, try the linter", optionally calling into the linter for you.

This does of course mean that divergent ideas of "correct" between linter and compiler are confusing and really do need to be avoided for happy developer times.


It is becoming increasingly clear that humans do not think.

Need to offer $17 for it

The ones that are reliant on health insurance to not die and now can't have any because their genotype suggests they might be expensive?

The right solution to that continues to be outlawing genetic risk-based cost scaling. Doing anything else means that we're just deciding people get to live and die due to their genetics and we will systematically encourage that; it's eugenics with extra steps.

That means the only insurer who could afford the risk is the US government.

This is a feature not a bug.



Linkedin has stuff like this on it and I'm pretty sure it's sincere.

Also Google wouldn't give me an antonym for "satire", only the output of a LLM which thinks synonym is the same thing as antonym.


sincerence ? earnestence? Of course using those words will make whatever you're writing sound like satire.

Nouns do not have antonyms.

Edit: I should have said not all nouns have antonyms.


Not true. Some concrete nouns don't have antonyms, but "good," "black," "heat," "invisibility," and many more abstract nouns have clear antonyms.

What? Yes they do. ridge/groove, heaven/hell, war/peace, north/south, predator/prey etc etc

putty is longer necessary? That would be a wild upgrade in usability for the work laptop, shall go try it

openssh has been an optional windows component for... almost a decade now? including the server, so you can ssh into powershell as easily as into any unix-like. (last time I set it up there was some fiddling with file permissions required for key auth to work, but it does work.)

OpenSSH on Windows is great for the odd connection and SFTP session, but I still feel strongly that any serious usage should just stick with PuTTY and WinSCP. The GUI capabilities these provide are what Windows users are used to. The only benefit of built-in SSH is if you're working with some minimal image stuff, like Windows Server Core or Tiny11. IMHO.

IIRC (it's been a while) I used the server with vscode remote ssh extension.

imo the interesting part in opensssh into Windows.

I feel old but its only 6 years not a decade :P

I guess 'before covid' and 'decade ago' is the same in my mind ;) I might have been using a preview build back then, too

I dislike using putty, I use the ssh client from WSL. Just feels .. better. And bash/fish history helps.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: