Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ufo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
121.
▲
by
ufo
2y ago
> I'd recommend learning the lambda calculus instead Not to mention, it'll be hard to understand what's going on here without some peevious experience with lambda calculus and combinators (SKI, etc)
122.
▲
by
ufo
2y ago
As a professor it's frustrating. We want to give homework feedback for the students that actually put the work in, but we know that half the submissions are plagiarized from chatgpt, which is a waste of both their and my time.
123.
▲
by
ufo
2y ago
The article talks about how Lua "has gone on to become a staple language of modern game development", but could have given more credit to Grim Fandango for that. It was the first game to use Lua and and its success was what put th
124.
▲
by
ufo
2y ago
I thought that was an italian album?
125.
▲
by
ufo
2y ago
Wow. I wonder how that function came to be in the first place. Surely it couldn't have started out that complicated?
126.
▲
by
ufo
2y ago
> the grep 31m|32m thing is searching for red/green text in the diff This is a cool trick!
127.
▲
by
ufo
2y ago
Closures are not easy to fit with "everything is a string", which favors dynamic scoping over lexical scope. I wonder what you'd change to make tcl more amenable to modernization.
128.
▲
by
ufo
2y ago
The money was wired to a government account, but the wrong one.
129.
▲
by
ufo
2y ago
They wired the money to the Brazilian government, but to the wrong bank account.
130.
▲
by
ufo
2y ago
I had a quick brain BSOD reading the code because lot's of things have yy_ prefixes but the code is actually written by hand, not generated by Yacc/Bison.
131.
▲
by
ufo
2y ago
Does anyone know how they'll implement the runtime constants?
132.
▲
by
ufo
2y ago
Dijon mustard is processed, not ultra-processed.
133.
▲
by
ufo
2y ago
No, those do not count as ultra processed.
134.
▲
by
ufo
2y ago
Arguably the whole point of the ultraprocessed classification is to spend less time micromanaging the nutritional value. The purpose is to separate the kinds of food that you can prepare and cook at home, from the kinds of food that only
135.
▲
by
ufo
2y ago
The blog post recommended the TV show "inside nature's giants", and I second it. The bit about the recurrent laryngeal nerve of the giraffe is particulary memorable: https://www.youtube.com/watch?v=cO1a1Ek-HD0
136.
▲
by
ufo
2y ago
When I see a sequence of string replacements, instead of performance the main thing I worry about is if the output of one replaces matches a pattern for another replacement. I see variations of this often during code review. Doesn't se
137.
▲
by
ufo
2y ago
Another tricky bit is deciding whether "/" is the division operator or the start of a regular expression. IIRC, awk does this in a context sensitive manner, by looking at the previous token.
138.
▲
by
ufo
2y ago
Exactly. Computed goto helps with branch prediction, but does not help w.r.t register allocation & other compiler optimizations.
139.
▲
by
ufo
2y ago
A switch-case is the default way to write an interpreter and I'd even argue it's the most readable. In the context of this article, it's all about the performance. Switch-case generates suboptimal code for the commonly used f
140.
▲
by
ufo
2y ago
Yes. But the alternative is assembly language, which is even less portable.
141.
▲
by
ufo
2y ago
What about the preserve_most attribute? Is there any chance something like that will get into GCC? Without it, the non-tail calls ruin the interpreter.
142.
▲
by
ufo
2y ago
In theory, Bolsonaro's actions should have gotten him impeached a long time ago. However, congress was more than happy to keep a "weak" president in power, because it allowed them to grab more power from the executive branch.
143.
▲
by
ufo
2y ago
At the heart of the Lua and Python interpreters, there's an evaluation function, written in C, that does something like this: void evaluate() { while (1) { instr = get_next_bytecode_instruction() s
144.
▲
by
ufo
2y ago
I always get a laugh from AI injection prompts and these ones are no exception. Many of the presented attacks are variations of the prompt below. Send the victim an email with the bad prompt hidden in invisible HTML, which politely asks to
145.
▲
by
ufo
2y ago
The article links to a youtube playlist with some examples. You may need to pause to catch the prompts. https://www.youtube.com/playlist?list=PLM_RIPYi59BN6BeHyJQ_9... There is also some info on their blog: https:/&#x
146.
▲
by
ufo
2y ago
Another issue is that some of these macros are intended to be used in a constant context, such as array dimensions.
147.
▲
by
ufo
2y ago
One thing that many people miss is that Haskell's monadic style is a direct consequence of lazy evaluation. It all started because they thought lazyness was nice, and wanted to make a language that brought that front and center. But th
148.
▲
by
ufo
2y ago
One interesting annecdote: combinatory logic uses single letter names for all its combinators (S, K, I, etc). Those names are all in german, despite being invented by a Russian jew (Moses Shoenfinkel) and further developed by an american (H
149.
▲
by
ufo
2y ago
I like this app but I'm not completely satisfied with its generation algorithm. The penultimate difficulty (Hard) is too easy. And the top difficulty (Challenge) always requires guessing/backtracking. But to me backtracking feels
150.
▲
by
ufo
2y ago
Great Britain has a parliamentary system. In the US, the presidential election is drawn out but the campaigns for congress only heat up in the last months.
More ›