Readit News logoReadit News
artemonster commented on Ask HN: What Are You Working On? (December 2025)    · Posted by u/david927
artemonster · 6 days ago
I am trying to make a game that sits squarely between AE2 style request-based on-demand crafting VS fully passive production akin to Factorio :) Making games is fun!
artemonster commented on He set out to walk around the world. After 27 years, his quest is nearly over   washingtonpost.com/lifest... · Posted by u/wallflower
compounding_it · 9 days ago
>The world is a much kinder, nicer place than it often seems.

I realize that a lot these days. People are not inherently so bad but greed is a nasty drug that has the potential to ruin the best.

When you have nothing to offer but kindness and compassion, it is very simple to see the humanity side of things in this world and it can feel really amazing.

artemonster · 8 days ago
Interesting what would a woman say after attempting something similar
artemonster commented on Show HN: Tacopy – Tail Call Optimization for Python   github.com/raaidrt/tacopy... · Posted by u/raaid-rt
jhgb · 15 days ago
Yes, except without all the known disadvantages of goto. That's the whole point.
artemonster · 14 days ago
huh? what is the disadvantage? i am very tired of people parroting some non-arguments. goto is awesome. solves TCO, multiloop breaks, switches and whole lot more
artemonster commented on Show HN: Tacopy – Tail Call Optimization for Python   github.com/raaidrt/tacopy... · Posted by u/raaid-rt
jhgb · 15 days ago
It gives you arbitrarily complex control flow even in presence of modularity. A tail call is a state transition. Without them, you'd have to resort to a big loop (which breaks modularity), or some sort of trampoline (which works but it's a bit clumsy).
artemonster · 15 days ago
this whole thing is equivalent to a goto at the beginning of a function.
artemonster commented on Show HN: Tacopy – Tail Call Optimization for Python   github.com/raaidrt/tacopy... · Posted by u/raaid-rt
spapas82 · 15 days ago
For tco to be really useful you need to think in a non procedural way. Imagine that you don't have loops in your language so you need recursion to do stuff multiple times.

Also even in procedural languages there are some problems that are easier to understand and model if you use recursion, for example tree or graph like structures.

artemonster · 15 days ago
traversing graph or a tree is not a TCO case because it would involve a stack/queue for DFS/BFS, whatever. I dont want to think in non procedural way, I reserve this nonsense to haskellers, please provide me a valid python use case for TCO :)
artemonster commented on Show HN: Tacopy – Tail Call Optimization for Python   github.com/raaidrt/tacopy... · Posted by u/raaid-rt
tpoacher · 15 days ago
I don't know about real world "examples", but the beauty of tail-call recursion specifically is the theoretical insight that they have a one-to-one mapping with an loop-based equivalent formulation, and vice versa (which is generally not necessarily true of all recursion).

But, for languages that don't have loop constructs and you need to rely on recursion, all you need to do is write your recipe in standard loop form, and then map back to a tail-call syntax. This is often a LOT easier than trying to think of the problem in a recursive mindset from scratch. (though occasionally, the reverse is also true.)

So the only constraint for re-implementing such looped logic onto tailcalls is that this relies on the stack, which may overflow. By providing TCO you are effectively removing that restriction, so it's a very useful thing for a language to support (especially if they don't provide low-level loops).

The title "tail call optimisation" in the package above is a bit of a misnomer, since this is more of a "transformation" than an "optimisation", but effectively the whole loop-tailcall equivalence is exactly what the package mentioned above relies on to work; it uses decorators to transform tail-call recursive functions to their equivalent loop-based formulations, and thus passing the need to create multiple stacks for the recursion (and risk stack overflow), since the translated loop will now take place in a single stack frame.

artemonster · 15 days ago
I know what TCO is. Screw the "beauty", honestly. I want to see at least one real world use case
artemonster commented on Show HN: Tacopy – Tail Call Optimization for Python   github.com/raaidrt/tacopy... · Posted by u/raaid-rt
artemonster · 15 days ago
Can someone give some real world examples for TCO? Every time I see this I only see fibonacci and gcd and I really want to encounter this one in the wild on something real and applicable
artemonster commented on Comparing AWS Lambda ARM64 vs. x86_64 Performance Across Runtimes in Late 2025   chrisebert.net/comparing-... · Posted by u/hasanhaja
artemonster · 18 days ago
Intel execs after reading this: FAST, more stock buybacks and executive bonuses to mitigate this!!!

Dead Comment

artemonster commented on A 1961 Relay Computer Running in the Browser   minivac.greg.technology/... · Posted by u/vaibhavsagar
retrac · a month ago
Very cool. I've been sketching out a relay computer myself. Mostly unbuilt but I have tested a variety of circuits implementing gates, latches, oscillators, flip flops, counters, registers all using only SPST reed relays.

I'm fixated on speed. I connected some reed relays in a 3 stage ring oscillator and it ran at 1.8 kHz. That has me thinking that with a pipeline 100 instructions a second might be attainable. Reed relay logic seems to be fast enough for a UART at 50 baud. Teletype interactivity is a stretch goal.

My program counter is also 12 bits! And I've also been using Digital to simulate parts of it. Great tool for that.

The current design is RISC-like with a 12 bit word requiring 4 cycles for most instructions. I have an old version of the design specified in gate level Verilog. I should publish that. Though I'm forever tinkering with the control such that it'll probably never be done. Karnaugh maps are like Sudoku.

artemonster · a month ago
Oscillator can go high, but real logic is complex and requires realiability. and the fact that cheap relays are absolute crap with a ton toff spread between 3ms to 18ms! The actual clock frequency you can hope for is around 10-15 hz :(

u/artemonster

KarmaCake day1360October 30, 2018View Original