Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
widdershins
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
widdershins
1y ago
Testing something is the best way to prove that it behaves correctly in all the cases you can think of. Relying on your own (fallible) understanding is dangerous. Of course, there may be cases you didn't think of where it behaves incor
32.
▲
by
widdershins
1y ago
> It's fun to nerd out about memory allocators, but that's not contributing to overall improvements of software engineering as a craft which is still too much ad hoc hacking and hoping for the best. I'm sorry, but it is. U
33.
▲
by
widdershins
1y ago
> But even then, I notice React (& friends) have all moved away from this approach. Modern web development usually makes components be functions. But what do those functions return? Oh look, it's DOM nodes, which are described b
34.
▲
by
widdershins
1y ago
> theoretically it can react to crowds better than any human could That's one area I'd expect AI to do poorly. Performance is a two-way dialog between performers and the crowd, with facial expressions and body movements from bo
35.
▲
by
widdershins
2y ago
Runtime errors? As far as I know Gleam will never present runtime errors unless you manually add `todo`, `panic` or `let assert` statements. [1] I feel you on the macros, I have wanted them too, but I respect the language creator's com
36.
▲
by
widdershins
2y ago
Have you given Gleam a try?
37.
▲
by
widdershins
2y ago
Gleam has a subset of OTP functionality already [1]. It also compiles extremely quickly. I haven't made any huge projects yet, but I've used some fairly chunky libraries and everything compiles super quick. [1] https://
38.
▲
by
widdershins
2y ago
Yes, I agree, insertion not moving things is a very useful feature of deques. It allows you to keep items with deleted copy and move constructors in a container that has good cache locality.
39.
▲
by
widdershins
2y ago
The word makes perfect sense, somebody just used it wrong. Don't let's go down the post-modernist "nothing means anything" route just because some people are too partisan to use words properly. What the person should hav
40.
▲
by
widdershins
2y ago
The C++ testing framework Catch2 enables this kind of testing. The first time I saw it I couldn't figure out how some of the tests would even pass. It turns out that using some evil macro magic, each test re-runs from the start for eac
41.
▲
by
widdershins
2y ago
Can you explain why you don't like `use` but you would like an `await` keyword? As far as I can see, `use` is a superset of the `await` transformation that just happens to work in a lot more situations. It circumvents callback hell whe
42.
▲
by
widdershins
2y ago
LLMs don't seem to be very impartial so far. Quite the opposite in fact, they're entirely beholden to the prejudices of their trainers.
43.
▲
by
widdershins
2y ago
> For bug hunting, every commit should build successfully and be a faithful representation of what was on the developer's machine at the time they made the commit. Merge-based workflows are good for this. I'm not quite sure how
44.
▲
by
widdershins
2y ago
I'm not an expert in Clojure or Rust, but an interested outsider in both, so please don't take my question as a challenge but a genuine curiosity: Doesn't the focus on immutable data make most of the ownership stuff redundant
45.
▲
by
widdershins
2y ago
That's on a very cold day. Depending where you are they may be more common or not. But in the UK, they're pretty uncommon. COP of ~4 is much more common.
46.
▲
by
widdershins
2y ago
Yeesh, that shows a pretty comprehensive dearth of humour in the model. It did a decent examination of characteristics that might form the components of a joke, but completely failed to actually construct one. I couldn't see a single i
47.
▲
by
widdershins
2y ago
I'm a gptel addict, so I'll be looking at your approach. Thanks for posting it.
48.
▲
by
widdershins
2y ago
I agree on all points, especially the idea of using Lua as a first language. It has so few features that you're really forced to focus on fundamental concepts like functions and (simple) data structures. And its flexibility to be used
49.
▲
by
widdershins
2y ago
> it does so with no consideration of worldly facts Why don't you consider its training set (usually the entire internet, basically) worldly facts? It's true that the training set can contain contradictory facts, but usually an
50.
▲
by
widdershins
2y ago
I've built several personal projects that I'm not really ready to share widely: An AI tourguide which presents the nearest geotagged Wikipedia pages to the user's location and then produces an entertaining summary of your cho
51.
▲
by
widdershins
2y ago
In the UK a hybrid is increasingly popular. Start the rave at 2pm, end it at midnight, but it's in a dark room so it might as well be 4am. Usually in some semi-temporary space (e.g. Printworks, now defunct and moved to Drumshed). I agr
52.
▲
by
widdershins
2y ago
The article explains the author's justification right at the very top, so you can decide if the given reasons apply to you or not.
53.
▲
by
widdershins
2y ago
Interesting note: they don't market it as AI. They market it as Apple Intelligence. I think this is deliberate. So it seems they've already taken your advice (albeit with the 'wink' of using the same initials).
54.
▲
by
widdershins
2y ago
I think it's much easier for Apple to sort out their AI and add this to iPhone than it is for OpenAI to figure out an entire mobile ecosystem where Apple has a ~15 year headstart and use their AI in it. I agree Siri isn't good, bu
55.
▲
by
widdershins
2y ago
I'm not sure what you're getting at. They banned certain advertisments at a particular time of day. They didn't ban parents from giving their children whatever thet want to give them.
56.
▲
by
widdershins
2y ago
Pragmatism is more than just giving people the quickest way to complete their task. There are other axes to consider, such as the simplicity of the compiler and the uniformity of the language experience. These contribute to the maintainabil
57.
▲
by
widdershins
2y ago
It has some syntax similarities to Rust, but it has GC so there's no borrow checker (or any of the associated syntax). It is also fully immutable, unlike Rust. It leans heavily on sum types, just like Rust. Also expression-based syntax
58.
▲
by
widdershins
2y ago
Agreed. OP said they don't know Lua, but if you know Javascript it can be picked up in a day or two. And it's really a lovely experience.
59.
▲
by
widdershins
2y ago
In the sense of labour productivity, measured in output per hour[1]. The products could be anything, but I'd guess they're primarily services like finance, technology, media etc. https://www.ons.gov.uk/economy/
60.
▲
by
widdershins
2y ago
>it seems obscene to spend all that money in so small an area Greater London has a population nearly three times that of Wales. So the bang-for-buck in this small area is much greater. I completely agree that we under-invest in areas lik
More ›