Hacker Newsnew | past | comments | ask | show | jobs | submit | secondcoming's commentslogin

I wanted to see how OpenSSL handles the x64 instructions to accelerate SHA1 hashing and it turns out the assembly code is generated by a perl script.

That's normal, if outdated - you'd use Python in anything written since 2010

That's not automatically bad, in fact it can be better than just inlining the instructions. I won't judge this instance of the pattern, but if faced with (perhaps incomplete at the time) intrinsics, or hand coded inline assembly, vs generating with an external script (or "mini compiler" if you will), it might be less error prone to generate.

Assuming you mean x86, that part was originally written around 30 years ago via this funky setup that did MD5 and SHA-1 from the same code. It's not really any kind of example of current practice.

No, the SHA-NI instructions

What's the usecase for this? You're already paying for the instance to be up but it's being deliberately under-utilised in case you have to start a VM?

Keep a warm pool to serve customer requests.


Why would anyone write the scalar part of a SIMD'd function in assembly code!?

Extra speed I assume.

I saw some assembly in code at work for various hot path stuff but it was all written before the last version control move. The 64-bit stuff was just done in plain C though which was probably good enough by the time it needed to updated to build as 64-bit.


pure love for the game

Often leaves performance on the table to call out

Dumb. There'll be a huge market for home-run LLMs.


Agreed, but Apple already has a huge head start in that market. I could see a CEO choosing not to compete if they know they can't catch up.

I suppose that also implies that AMD thinks it can catch up with Nvidia in the datacenter.


Streaming services became terrible and there hasn't been a huge market for home Plex server.

Get rewriting, soldier!


The Dutch Intelligence services seem to be really good.

I recall they helped the UK during the Falklands War with SIGINT/cryptanalytic stuff


Various sources also claim that Dutch intelligence deployed or was involved with deploying Stuxnet in Iran.

In 2019, it was reported that an Iranian mole working for Dutch intelligence at the behest of Israel and the CIA inserted the Stuxnet virus with a USB flash drive or convinced another person working at the Natanz facility to do so.

https://en.wikipedia.org/wiki/Stuxnet

https://en.wikipedia.org/wiki/Erik_van_Sabben


As a Flemish person I can attest that the Dutch have outstanding engineers. So if their intelligence agency has a proper budget, they definitely have a nice pool to select from.


Any reason you call yourselves Flemish and not Dutch? I always thought Flemish is the language and Dutch the nationality?


Flanders has not been a part of the Netherlands for almost 200 years and was only ever really part of it for 15 years (It's the Dutch speaking part of Belgium).


Thank you! Learning something new every day :)


That's a big ask for those maintainers who are volunteers


Do people still think that Linux is being developed by unpaid hackers in a garage?


Most, if not all, are employed by different companies or Kernel.org.


Linux is big business.


It's a big ask to expect people to do the thing they volunteered to do and can step back from doing any time they want?


Luckily I'm allowed use Hyper-V for Linux work


Guess where WSL runs on?


Everyone else wrote the 5G specs but Huawei built the hardware.


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

Search: