Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
211.
▲
by
DougBTX
4y ago
OK, the new Turing test: can you distinguish between a Linux VM, and a chat bot pretending to be a Linux VM?
212.
▲
by
DougBTX
4y ago
Some variants use NFC power to drive the display update, so no batteries!
213.
▲
by
DougBTX
4y ago
> Is it the C syntax? Pretty sure that this is a big factor, I’m not aware of any recent languages that put type information before and after the variable name. Nowadays there’s always a clear distinction between the variable name and
214.
▲
by
DougBTX
4y ago
> it is false in the general case, since division by zero has a side effect in the form of invoking undefined behaviour. They were careful to say “under the rules of C,” the rules define the behaviour of C. On the other hand, undefined b
215.
▲
Configuration complexity clock, DSLs vs. general languages
(mikehadlow.blogspot.com)
1 points
by
DougBTX
4y ago
|
0 comments
216.
▲
by
DougBTX
4y ago
Breaking changes in Python releases are nothing new, that’s why none of my Python projects are using the latest version :shrug:
217.
▲
by
DougBTX
4y ago
> Meta observation: At least on Mobile Safari, this page breaks the back button. The UI is somewhat hidden, but a long press on the back button will open a pop up menu, which makes it easy to jump back two pages. Other than that, it is t
218.
▲
by
DougBTX
4y ago
There are two common ways to deal with failable operations: either throw/panic/abort instead of returning a value if creating the value fails, or return a container which must be checked for success before the value can be accesse
219.
▲
by
DougBTX
4y ago
> they're just addresses, where nil is a very useful value It is actually the other way around, having a way to represent “no pointer” is fine. What’s missing is the ability to check at compile time that a pointer is not nil.
220.
▲
by
DougBTX
4y ago
Yes, that’s what I mean, the compiler can completely remove a branch which is unreachable, along with any checks. If it was forced to keep the checks and report an error instead, any bug would be more obvious. If the compiler removes checks
221.
▲
by
DougBTX
4y ago
> At worst (or best, depending on how you look at it) it will only make any bugs it already has more obvious. An abort would make them obvious, surely unreachable makes them less obvious?
222.
▲
by
DougBTX
4y ago
Yes, that works, there are examples on the page like: $ jc dig example.com | jq -r '.[].answer[].data' 93.184.216.34 It uses the first argument to infer the command output type.
223.
▲
by
DougBTX
4y ago
The author should take another look at RIIA. The first big difference is that it works with non-memory resources too, for example open/close for files. The second is that it makes heap allocated data feel a lot like stack allocated dat
224.
▲
by
DougBTX
4y ago
Materialised views for cloud storage?
225.
▲
by
DougBTX
4y ago
Yeah, that's a fair argument. You'd probably expect any public API exposed by functions in the module importing ctypes to provide a "safe" interface. The difference would be if any of that public API was unsafe, in Rust
226.
▲
by
DougBTX
4y ago
Maybe this is the upside of the uncanny valley, doesn’t look exactly like a person, but it does look like a silly person! https://en.m.wikipedia.org/wiki/Uncanny_valley
227.
▲
by
DougBTX
4y ago
> Since, everything is given to me in sprints, I literally have no idea what is coming down the pipes. So you literally don’t know what the end goal of your project is? I would say then definitely not a “self organised” team, or in a sen
228.
▲
by
DougBTX
4y ago
What’s best if parallel step processing is required?
229.
▲
by
DougBTX
4y ago
FWIW, the original link in the article shows that the panic_bounds_check check is present in optimised code in Rust 1.55, but if you update to a more recent Rust, say 1.60, then it is optimised away as expected: example::mid:
230.
▲
by
DougBTX
4y ago
Not really. The fundamental issue is ownership, what is responsible for freeing resources when they are no-longer needed? In that example, owning references are used on the "next" pointers and weak references are used on the "
231.
▲
by
DougBTX
4y ago
Thanks for the link, interesting reading. I can totally appreciate the angle that some generations may be too trivial to be worthy of protection. I happen to be in the UK, and this happens to match my expectations, but it does strongly impl
232.
▲
by
DougBTX
4y ago
> > as they are asking if the AI itself can hold the copyright on the output. > Who is? Thaler is. I’ve only read the intro sections of the documents you linked to, so I may have missed something more fundamental later, but the key
233.
▲
by
DougBTX
4y ago
> quite clearly falls outside of human authorship as recognized by the US Copyright and Patent offices. I think these are answering a slightly different question, as they are asking if the AI itself can hold the copyright on the output.
234.
▲
by
DougBTX
4y ago
FWIW: https://www.youtube.com/watch?v=xP5-iIeKXE8 If you allowed toggling particular points manually as input from a controller... probably not too far away from possible!
235.
▲
by
DougBTX
4y ago
> It's high time that developers cease the "everyone around me is incompetent and responsible for all problems" mindset I reckon there’s some selection bias here too, people who perceive themselves to be incompetent probab
236.
▲
by
DougBTX
4y ago
Imagine every conceivable image is laid out on the ground, images which are similar to each other are closer together. You’re looking at an image of a face. Some nearby images might be happier, sadder, with different hair or eye colours, ev
237.
▲
by
DougBTX
4y ago
Just for completeness, “condition” systems offer a third option, where a condition can be handled by a caller without fully unwinding the stack: https://gigamonkeys.com/book/beyond-exception-handling-condi...
238.
▲
by
DougBTX
4y ago
Interesting, so there was a patent claim settled at the start of 2018 over this, and the iPhones released at the end of 2018 had the feature removed. I wonder how much of an impact that had, versus usability / weight / cost consid
239.
▲
by
DougBTX
4y ago
This is from 2019 so I suspect there’s a more recent paper now, but this is interesting: https://openai.com/blog/deep-double-descent/
240.
▲
by
DougBTX
4y ago
Maybe a similar but different question then, but what would a photo on Earth look like with this filter?
More ›