Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zeroimpl
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
361.
▲
by
zeroimpl
7y ago
The PHP documentation refers to them as "associative arrays", which is technically correct, but I agree I'm not sure how they could have conflated these concepts so badly.
362.
▲
by
zeroimpl
7y ago
Would you expect it to do that if somebody wrote the following? $id = 12835151; $arr[$id] = Get_thing_with_id( $id );
363.
▲
by
zeroimpl
7y ago
An oracle that doesn't always tell the truth? That seems like an odd thing for an algorithm to have to deal with.
364.
▲
by
zeroimpl
7y ago
To me it also seems like it should be: (elem (elem input "countries") 0)
365.
▲
by
zeroimpl
7y ago
Yeah, it seems the metaphor is about incorrectly performing a depth-first-search, when breadth-first-search is the right algorithm in general to find the optimal solution.
366.
▲
by
zeroimpl
7y ago
As a user, if I have a key and an encrypted file, aside from actually decrypting the file, all I care about is ensuring that the software can confirm that the encrypted file was encrypted using the same key. Why should this be complicated?
367.
▲
by
zeroimpl
7y ago
Indeed. Yet this port city with almost no land ruled over quite a significant empire for about 1000 years. I think it’s had a good run.
368.
▲
by
zeroimpl
7y ago
Validation better be done by the parser. Otherwise, subtle differences between the validator and the parser can lead to security flaws. Your solution is to make sure you use a good parser.
369.
▲
by
zeroimpl
7y ago
You'll need a data structure to store the results to return to the caller. This data structure by definition cannot be the call stack. So using a call stack is technically redundant.
370.
▲
by
zeroimpl
7y ago
Likely due to using the older version of bash preinstalled on Mac. Installing a new one and it should be virtually identical.
371.
▲
by
zeroimpl
7y ago
The new "Content Caching" option in System Preferences is news to me. Probably a good feature if you have multiple identical iOS devices. I wonder how much sharing there is between different models, or even iPhone vs iPad.
372.
▲
by
zeroimpl
7y ago
If WebAssembly is running in the browser, it’s not calling into C/C++ modules. If WebAssembly isn’t running in the browser, it doesn’t need to be sandboxed. Thus I don’t think we need to be concerned over WASI sand boxing in the same
373.
▲
by
zeroimpl
7y ago
Something like this would do the same, if somebody implemented a tool called jsed: jsed ' Object.fromEntries( $("Directory").map( x => [ x.name + " has
374.
▲
by
zeroimpl
7y ago
Yeah I was surprised recently to find out that the whole thing is basically maintained by one person. Since it's an essential tool for me, I contributed a few minor improvements for some usability things that were irritating me. Thanks
375.
▲
by
zeroimpl
7y ago
I’d really like a CLI tool which solves this problem using a syntax I already know. I struggle with jq because I use it quite infrequently. IMO the ideal solution is something using pure JavaScript syntax, possibly with a library resembling
376.
▲
by
zeroimpl
7y ago
In particular, it sounds like the same or similar bug also existed in the bootrom. So Apple patched iBoot but can't patch the bootrom.
377.
▲
by
zeroimpl
7y ago
I suppose you'd rather they'd have named the headers "Session-Id" and "Set-Session-Id"?
378.
▲
by
zeroimpl
7y ago
I'm not a fan of how they hacked the scrollbar though
379.
▲
by
zeroimpl
7y ago
I’ve generally found that a context switch from one programming task to another can be pretty easy (even if totally unrelated), but switching to something non-programming related is often much more painful.
380.
▲
by
zeroimpl
7y ago
Ah so Strict is super strict, whereas Lax is still stricter than the current default. Lax seems like it should have been named something else, like Partial or Moderate.
381.
▲
by
zeroimpl
7y ago
Why is the default lax instead of strict?
382.
▲
by
zeroimpl
7y ago
Seems like if you tried to use transactions, you'd have the same problem?
383.
▲
by
zeroimpl
7y ago
> It will also be interesting to see what happens when JITted extension languages like this start to meet in the middle with postgres' own nascent JITted query plan support as it grows... Does Postgres actively measure the performan
384.
▲
by
zeroimpl
7y ago
I think this article unnecessarily conflates the pre-rendering techniques used for JS-heavy websites with what I would call a static website build/compile process. Using wget to compile your website is a clever idea. But it won't
385.
▲
by
zeroimpl
7y ago
If you are using a web framework designed for dynamic processing - think something like Java servlets/JSP, or in the authors case Go - it's often non-trivial to find/implement a render_to_page function, let alone enumerate al
386.
▲
by
zeroimpl
7y ago
I just want mainstream/built-in JSON parsers to be able to ignore comments and trailing commas. What ever happened to lax parsing?
387.
▲
by
zeroimpl
7y ago
lol sounds like you only read the headline. But even if the beef industry dies, that doesn’t mean beef itself is gone - there will certainly be non-industrial producers.
388.
▲
by
zeroimpl
7y ago
Nobody said it would go away 100%. But it may become a niche product, like foie gras.
389.
▲
by
zeroimpl
7y ago
I’ve tried these burgers and they are decent. But there are far better veggie burgers out there that don’t try to resemble meat at all. For some reason fast food companies stick with their garbage soy-based ones, so I’m happy to see them at
390.
▲
by
zeroimpl
7y ago
The author mentions that 60% of it is...
More ›