Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Smaug123
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
601.
▲
by
Smaug123
4y ago
Has this perhaps been monkey-patched? I asked `whoami`, and it replied: ``` I am a large language model trained by OpenAI. I am not capable of running Linux commands or browsing the internet. I am only able to respond to text input based on
602.
▲
by
Smaug123
4y ago
Are you sure it wasn't accessing the Internet? I only have OpenAI's word for it that it's not; if it weren't late at night for me, I might try getting the ChatGPT VM to ping my webserver.
603.
▲
by
Smaug123
4y ago
For what it's worth, I've found it to consistently produce very convincing garbage. I asked it a basic question about Golang, and it bullshitted an answer that I couldn't tell was wrong until I tried it. It can't reliabl
604.
▲
by
Smaug123
4y ago
One person's "architecture your code defensively" is another person's "make a dumb solution so that you don't waste effort being smart".
605.
▲
by
Smaug123
4y ago
Previously discussed at https://news.ycombinator.com/item?id=33056077 ; to quote myself from that discussion: > I think a much better email from the thread to link to would be the earlier https://lkml.org/
606.
▲
by
Smaug123
4y ago
Nicely done; this seems to work for me. In my own attempt, I got stock Stable Diffusion 2.0 "working" on M1 using the GPU but it's producing some of the most cursed (and low-res) images I've ever seen, so I've defin
607.
▲
by
Smaug123
4y ago
But it's a rock that we tricked into thinking! An electronic shelf-stacker is almost literally the starting premise of The Sorcerer's Apprentice!
608.
▲
by
Smaug123
4y ago
Dockerfiles don't compose. If you have two containers and you want to take their union, you are simply out of luck unless you know exactly what you want to take from each one, and you'd better hope they don't interfere with e
609.
▲
by
Smaug123
4y ago
A definition is given as literally the first paragraph of the post. > Mimicry is when software X reimplements at a higher level a core feature of software Y. The produced facsimile has some, but not all, of the same properties, enough to
610.
▲
by
Smaug123
4y ago
Isn't your point 2 exactly what OP said? > I think it’s more interesting to think of the GoF-language as mimicking HOFs with the strategy pattern facsimile. The strategy pattern reimplements HOFs as a code-level idiom.
611.
▲
by
Smaug123
4y ago
They're also solving a somewhat different problem, namely "make it to the next funding round without thinking more than a year into the future". A company which already has solid funding may well have plans on the multi-year
612.
▲
by
Smaug123
4y ago
You appear to have forgotten, for example, the "40% of my time trying to tame the bad internal tooling I was forced to use…".
613.
▲
by
Smaug123
4y ago
For more on the subject, Mark Rosewater (head designer of Magic: the Gathering): https://magic.wizards.com/en/news/making-magic/what-game-201...
614.
▲
by
Smaug123
4y ago
C# does already allow you to create interfaces whose methods are generic, yes. The way they are implemented is entirely different: Rust monomorphises all generically-typed functions (I believe this remains true for GATs), whereas the CLR
615.
▲
by
Smaug123
4y ago
> I feel like anyone who has worked with the language for a while has implicitly tried to do this and was surprised it didn’t work. Just to lend some extra evidence to your assertion, I hit the lack of GATs within two days of starting to
616.
▲
by
Smaug123
4y ago
`&` and `'` do mean something: `&` indicates something that's borrowed, and `'` indicates a lifetime. (`static` is a specifically blessed identifier given to a certain lifetime.) This is explained in https:/
617.
▲
by
Smaug123
4y ago
More concretely, it's a pain to have to implement the same functions over and over for slightly different types, even when you're basically doing the same thing every time. Specifically, `Option` and `Result`, for example, both ha
618.
▲
by
Smaug123
4y ago
By the way, "whole-heartedly", as in "with your whole heart". As opposed to "foolhardily", as in "with the hardiness (boldness) of a fool [who doesn't understand the need for caution]".
619.
▲
by
Smaug123
4y ago
In fairness this takes an unusually strong type system to express, doesn't it? Typescript can do it, but I don't think e.g. Haskell98 can do it out of the box in an analogous way? (Of course, it's hard to prove a negative and
620.
▲
by
Smaug123
4y ago
I guess I'm only opinionated about it because I'm 100% not smart enough to get it right unless something stops me getting it wrong. ("It" can be pretty much anything here.) It's why I'm such a terrible Python p
621.
▲
by
Smaug123
4y ago
No no no, entirely not. OOP need not be statically typed at all; see Smalltalk.
622.
▲
by
Smaug123
4y ago
Is the alternative to sweep it under the rug? In a stringly-typed world, what happens - do you just hope for the best? In a typed world, the problem ("the real world has ceased to conform to the model") is at least made plain so t
623.
▲
by
Smaug123
4y ago
2000 square dollars? If I'm choosing between ways to spend capital so as to improve the efficiency of a process, and that process currently produces five widgets per dollar, then the quantity I'm comparing to choose between my cou
624.
▲
by
Smaug123
4y ago
The existence of https://github.com/robertylewis/mathematica makes me think it's more likely to go in the other direction, where you treat powerful tools as untrusted oracles which produce certificates that Lean t
625.
▲
by
Smaug123
4y ago
One of the standard texts on the matter: https://aphyr.com/posts/341-hexing-the-technical-interview
626.
▲
by
Smaug123
4y ago
Nobody has mentioned immutability yet - linked lists are easily used as one of the simplest immutable persistent data structures. Your definition of "better" appears to be solely about keeping the CPU burning, but if CPU isn'
627.
▲
by
Smaug123
4y ago
That is an extremely bad analogy. The purpose of chores is to spread the load onto an otherwise unproductive member of the household. (And to teach said household member how to do them.) Unless you're arguing that engineers are unpro
628.
▲
by
Smaug123
4y ago
You may be duplicating a lot of work that's already been done in Nixpkgs, by the way.
629.
▲
by
Smaug123
4y ago
I think that's orthogonal. One can compose a mutable ball of mud out of a collection of components that individually do one thing well. A more apt analogy, though rather unbelievable (demonstrating how orthogonal the concepts are!), mi
630.
▲
by
Smaug123
4y ago
Not clear to me how that's object-oriented. You're not sending a "put yourself in the trashcan" message to the document, or sending a "pull the document to yourself" message to the trashcan. If anything, you&#x
More ›