Better HN
topnewbestaskshowjobs
Log inSign up

dajoh

369 karma · joined Nov 27, 2014 (12y ago) · 19 submissions

Submissions

comment 10mo ago · link · parent

>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?

2.

TP-Link cannot get IPv6 firewall right(sim642.eu ↗)

5 points · by dajoh · 1y ago · 5 comments

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

> 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.

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Also, here's the paper on it: https://arxiv.org/pdf/2209.07663.pdf

9.

Source code for Monolith, TikTok's recommendation system(github.com ↗)

2 points · by dajoh · 3y ago · 1 comment

comment 4y ago · link · parent

If I have no other better option: walk.

comment 4y ago · link · parent

People losing their passports is not a new problem. Embassies can help you out and issue emergency travel documents for such situations.

comment 4y ago · link · parent

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?

comment 5y ago · link · parent

what about norway

comment 5y ago · link · parent

Not super excited to build my next project in a proprietary language with a closed source compiler/toolchain made in Adobe AIR...

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

Meanwhile, if you're poor: https://www.nytimes.com/2019/09/01/us/diana-sanchez-birth-de...

17.

The $5000 Compression Challenge(patrickcraig.co.uk ↗)

2 points · by dajoh · 5y ago · 1 comment

18.

Microsoft open-sources Graph Engine(graphengine.io ↗)

616 points · by dajoh · 9y ago · 176 comments

comment 11y ago · link · parent

> 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.