HN user

mithametacs

172 karma
Posts0
Comments58
View on HN
No posts found.

I literally did the thing you’re not supposed to do.

my psych kept giving me everything by Adderall. So I went to one of those online doctors and got Adderall through her.

Then I just told my psychiatrist that I have Adderall prescription and she took it over.

For the record, she’s actually really reasonable and I like her but very conservative about the stimulants. Which when I finally got them were a revelation. Medication that actually works.

I had no choice most of my career doing Rails.

Now I do C++ and I would fight to the death to keep autocomplete.

But Copilot I bought a license for a got a refund for after a few months. In the net, it wastes your time.

And I mean, copilot in particular is especially bad. It refuses lots of valid programming questions. Other LLMs are better. But they still are wrong a lot.

they’re still bad for generating any significant body of code.

They’re a little bit better about deciphering errors.

They’ll still bullshit* you and send you on wild goose chases.

*hallucinate if you prefer

Turing Machines 2 years ago

I/O is just built on top of the tape. Real computers reserve a map of memory to I/O.

This is like saying a CPU isn't a computer. It's sort of right but sort of wrong, you know?

I read that and the followup. It’s good writing but I slightly disagree. Imperative is actually a closer mathematical formalism for some things.

I find imperative better for expressing state machines. I find declarative better for backtracking.

You can write a state machine with just a loop, an assignable, and conditions. Writing state in prolog is irritating.

Sounds like a page worth another search if you don't mind. I'll give you Internet Points in return!

-- my attempt:

Imperative defines the order and semantics of each step.

Declarative defines the prerequisites and intent of each step.

The algorithms each can implement are equivalent.

That's the hard part of project management.

Is it worth spending a bit more time up-front, hoping to prevent refactoring later, or is it better to build a buggy version then improve it?

I like thinking with pen-and-paper diagrams; I don't enjoy the mechanics of code editing. So I lean toward upfront planning.

I think you're right but it's hard to know for sure. Has anyone studied software methodologies for time taken to build $X? That seems like a beast of an experimental design, but I'd love to see.

I agree with the distinction in approaches. In other words, it sounds like you're distinguishing agile and waterfall.

I just find it odd to analogize:

agile : waterfall :: imperative : declarative

Yes you can, you handle every case equally. You don’t even need the reflection mechanisms to be visible to the user with a good type system. A good type system participates in codegen.

for a really simple example: languages which allow narrowing a numeric to a float, but also let you interpolate either into a string without knowing which you have.

A statically typed Console.log in JS/TS would be an unnecessary annoyance.

Grandparent was such a good post otherwise!

I love strong types. I love for loops. I love stacks.

GP! Try Rust. Imperative programming isn’t orthogonal to types. You can go hard in Rust. (I loved experimenting with it but I like GC)

GP! Try data driven design. Imperative programming isn’t orthogonal to declarative.

Real talk, show me any declarative game engine that’s worth looking at. The best ones are all imperative and data driven design is popular. Clearly imperative code has something going for it.

and the advantages aren’t strictly speed of development, but imperative can be clearer. It just depends.

We've set foot on only 1 other stellar body.

Luna is sort of made from the Earth. And it's so close that Earth has a stronger pull on it than Sun.

So we have set foot on another stellar body, sure. But we also... kind of haven't.

And then we had to retreat from it anyway. Homo sapiens, hunter champions, arrived at an uninhabited body and were outmatched.

Way to go, smartest species we know of. You've done jack shit.

I've undergone psychiatric care for things not related to psychosis. As for psychosis, I am mentally healthy.

As a child I was obsessed with math. I had a pseudo-religious obsession with Platonism, connected with my childhood fear of mortality. A bizarre belief system.

While trying to make new friends in a new city, I was shunned from a new group for unknown reasons. I was going through a breakup from an abuser. I was depressed and grasping for explanations, thinking I was being conspired against. A persecution complex.

Lack of information and strong emotion are enough.