News for hackers. Stuff that matters.

dajoh

>I'm currently #1 on 5 different very complex computer engineering problems

Ah yes, well known very complex computer engineering problems such as:

* Parsing JSON objects, summing a single field

* Matrix multiplication

* Parsing and evaluating integer basic arithmetic expressions

And you're telling me all you needed to do to get the best solution in the world to these problems was talk to an LLM?

Re:Addition Is All You Need for Energy-Efficient Language Models on Wednesday October 09, 2024 @11:27AM (#41788910)
What you're describing is called fixed point arithmetic, a super cool technique I wish more programmers knew about.

Proper finance related code should use it, but in my experience in that industry it doesn't seem very common unless you're running mainframes.

Funnily enough, I've seen a lot more fixed point arithmetic in software rasterizers than anywhere else. FreeType, GDI, WPF, WARP (D3D11 reference rasterizer) all use it heavily.

Re:Null Is Not the Billion Dollar Mistake. A Counter-Rant (2015) on Wednesday October 02, 2024 @03:07AM (#41717985)
> It’s the implicit nullability of all reference types which is the mistake, since it leads to undefined behaviour at runtime.

How does the implicit nullability of all reference types lead to "undefined behaviour at runtime" in, for example, Java or C#?

I'm aware that dereferencing NULL pointers in C/C++ is undefined behavior, but I haven't seen this in any other language.

Re:Tesla sues Swedish state agency over number plate blockage on Monday November 27, 2023 @08:01AM (#38431797)
Why is this article at rank 324 (page 11) on the front page when it was posted 1 hour ago, has 33 points, and 70 comments currently.

There's stuff on page 1 of the frontpage with 25 points, posted 8 hours ago, and has 5 comments.

Re:Half-Life 25th Anniversary Update on Saturday November 18, 2023 @05:46AM (#38317927)
I don't agree at all, Xen was my favorite part of Black Mesa and my least favorite part of the original Half-Life. I was blown away by how good they managed to make it look (with a 2004-era engine, albeit with updates), it's absolutely gorgeous. The gameplay and puzzles were far more fun for me too, and I greatly appreciate that they made this part of the game longer.

But to each his own.

Re:Who's Behind the Swat USA Reshipping Service? on Monday November 06, 2023 @11:55AM (#38165094)
Why do people care so much about doxxing these days?

In most places, doxxing is not illegal. In the places where it is illegal it's usually only when there's stalking/harassment intent behind it. Doesn't appear to be against the HN rules either.

Re:Source code for Monolith, TikTok's recommendation system on Friday February 03, 2023 @10:16AM (#34642113)
Also, here's the paper on it: https://arxiv.org/pdf/2209.07663.pdf
If I have no other better option: walk.
People losing their passports is not a new problem. Embassies can help you out and issue emergency travel documents for such situations.
Just because you're in the woods does not mean you can ignore the law.

Where do I find this mythical wilderness where no laws apply to me?

what about norway
Re:Beads: Computer language and toolchain on Thursday May 27, 2021 @02:14PM (#27306236)
Not super excited to build my next project in a proprietary language with a closed source compiler/toolchain made in Adobe AIR...
Re:How a Bad Random Number Generator Froze Sway (2020) on Monday March 15, 2021 @06:49PM (#26470331)
It seems json-c uses a random number generator to get a seed that it then uses for string hashing. This is one way of protecting yourself against hash denial-of-service attacks.

https://github.com/json-c/json-c/blob/df27756491abf9ecce648c...

Re:The Wake Programming Language on Monday February 16, 2015 @11:11AM (#9057508)
> We've both created and borrowed some cutting edge ideas.

What ideas are new? I'm not sure about provisions because the examples aren't really clear, but all the other features I've seen in other languages before.

> 3. Shadowing (concise, safe)

It doesn't seem like shadowing is the feature here, rather the use of '$' to prevent shadowing.

> Lists (called Arrays in many other languages)

There's a very good reason for this. Lists and arrays are very different data structures. Why create confusion by calling them lists?

> Since Wake blurs the line between variables and types, we can boast the smallest foreach loop of any language.

Really, the smallest foreach loop of any language? Come on.

> Self Executing

Why is this called 'self executing'? Also, I'd expect any language with lambdas to support calling a lambda right after it's created.