Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trealira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
211.
▲
by
trealira
2y ago
The book doesn't have 2024 in the title. I suspect they put it there because last time a post about this book was made, I noted that it was from 2022, not realizing that the book has now been released in 2024. https://news.y
212.
▲
by
trealira
2y ago
"Global configuration as a monad" is represented by the Reader monad, which is basically a wrapper over a function that takes a configuration/environment as a parameter and then returns something. It replaces a read-only glob
213.
▲
by
trealira
2y ago
State can be modeled as a monad, but monads aren't a synonym for state. Just like squares are technically rectangles, but "rectangle" isn't a synonym for "square." How do I think of the State monad? - Like a Me
214.
▲
by
trealira
2y ago
I don't see why you think all monads are just like the State monad. The Maybe and Either monads have nothing to do with state, for example.
215.
▲
by
trealira
2y ago
You can also use it for representing errors, for representing global read-only variables, for representing global write-only variables, for representing non-determinism, for representing continuations, and other things (since you can write
216.
▲
by
trealira
2y ago
I've had relationships where I just liked spending time with the person, even when just sitting and not talking, but I've also sat around on my phone not talking to people, and it's not at all the same. When you're on yo
217.
▲
by
trealira
2y ago
No one gets everything they want in life, though, even with less waiting around. That seems like a strange line of reasoning.
218.
▲
by
trealira
2y ago
> But having a straightforward/predictable mapping to the underlying machine and its semantics is included in the C model of computation. While you can often guess what the assembly will be from looking at C code given that you'
219.
▲
by
trealira
2y ago
Or like Standard ML. But it's interesting, since I hadn't seen that part yet, only the loop part and some of the dynamic typing. for List: each i: [1, 2] each j: ["a", "b", "c"] [i, j]
220.
▲
by
trealira
2y ago
> Many computer science programs begins with high-level languages, and quickly move on to using frameworks. Is that really true of any universities? At the intro to CS course at my university, right after teaching loops and assignment st
221.
▲
by
trealira
2y ago
I've never worked there, but according to "The Story of ISPC," Intel has a very cutthroat culture. Some extracts: > The problem was that just a few jerks, especially in positions of power or influence, could fuck you up
222.
▲
by
trealira
2y ago
I'm sure Viktor Orban thinks he's doing what's best for Hungary, too. It doesn't really matter whether they think they're justified when their values are so alien that you can't reconcile your ideals with their
223.
▲
by
trealira
2y ago
> Women in particular used to work for themselves and their families, building their own assets and their own relationships. Almost like that "founder" status everyone wants. Now they work for the same few men as their partners
224.
▲
by
trealira
2y ago
Young people genuinely may not remember. Being born in 2003, I was 7 years old when the Affordable Care Act was passed, and I wasn't paying much attention to politics. I didn't keep much track until shortly before the 2016 preside
225.
▲
by
trealira
2y ago
Your link doesn't support that the 117th Congress was "very" productive. It shows a list of the number of bills passed from the 101st Congress to the 118th Congress, and the 117th Congress doesn't have a particularly hig
226.
▲
by
trealira
2y ago
This is just my conjecture, but I think that it's that psychopaths lack the capacity for empathy, and empathy is otherwise like a muscle in that it can be trained. I suspect this because I've grown more empathetic compared to when
227.
▲
by
trealira
2y ago
I think you're right, but that developing a sense of ethics and believing those ethics and morals down to your bones will make you not want to do certain things. People without empathy don't have trouble lying to, stealing from, o
228.
▲
by
trealira
2y ago
Ghidra, which is decompilation software, already manages to produce almost-valid C from assembly, and it does so without AI. I know nothing about how it works, but just from that, I'm guessing that producing almost-valid Rust from C co
229.
▲
by
trealira
2y ago
ALGOL 68 did have structs and unions, however, which might be what they meant by "ALGOL in the 60s." That doesn't contradict what you say, though, since 1968 is already in the late 1960s.
230.
▲
by
trealira
2y ago
I don't understand how this relates to my comment. I'm saying that avoiding side effects isn't a new idea, so it already has aged, either well or poorly.
231.
▲
by
trealira
2y ago
Somehow I missed your comment 4 days ago. Thanks for the counter example. I really didn't think the Democrats would be center right anywhere, but I guess they are in Norway.
232.
▲
by
trealira
2y ago
The ENIAC, the first computer, didn't have assembly language. You programmed it by fiddling with circuits and switches. Also, it didn't use binary integers, but decimal ones, with 10 vacuum tubes to represent the digits 0-9.
233.
▲
by
trealira
2y ago
> As long as someone else implements the compiler. A C compiler exists already, based on LCC, and it's called the movfuscator. https://github.com/xoreaxeaxeax/movfuscator
234.
▲
by
trealira
2y ago
Avoiding side effects as much as possible is not a new idea, though; it's been around since at least the 80s. You can just ask people who have worked on Haskell code written in the past 25 years to determine for yourself if the idea ag
235.
▲
by
trealira
2y ago
I'm taking a second course in physics right now (as an undergraduate student). When I'm stuck on a homework problem, I use ChatGPT to tell me how to do the problem; although it doesn't always get the problem completely right,
236.
▲
by
trealira
2y ago
There was also this extension of C called Concurrent C, which has its own book called The Concurrent C Programming Language , originally published in 1989. I don't see it on the Wikipedia page, which is why I'm saying it here.
237.
▲
by
trealira
2y ago
> If your preferred method of changing program behaviour is directly editing bytes of machine code in unstructured RAM while the program is running, then yes, the fact that it's a Von Neumann architecture does give you that "th
238.
▲
by
trealira
2y ago
No, because at that time, music was the subject. The subject-object relationship could be inverted for the verb "like". You can think of it as though "like" were a synonym for "please," with "it likes me&q
239.
▲
by
trealira
2y ago
In Old English: https://en.wiktionary.org/wiki/methinks#English https://en.wiktionary.org/wiki/%C3%BEyncan#Old_English Edit: According to Wiktionary, it seems the meaning "to seem" was t
240.
▲
by
trealira
2y ago
"The music likes me not" - "The music" is the grammatical subject, so the third-person singular conjugation "likes" is used. "Me", being the object form of the first-person pronoun, is the object of t
More ›