Hacker Newsnew | past | comments | ask | show | jobs | submit | more rmckayfleming's commentslogin

What do you mean "factorial in recursive style"? Like recursive with an accumulator?


Nope. Nothing. I’ve been waiting since they released it. Part of me thinks it might be because I responded yes to “Outside of the US”.


thanks. I'm non-US, too, but really can't remember when I requested initially. Hope I didn't bump myself down by doing it twice.


My understanding is that that's a non-trivial problem. You'd likely need some sort of AI system to do it, since the perception of colour isn't something that can be simply modelled.


Yes, it is not trivial, but some color space can help, see my article about it. https://www.kuon.ch/post/2020-03-08-hsluv/


Yep, it's saved me a lot of time on data transformation tasks. For instance, I wanted to convert the colors in Tailwind to CSS variables. I had the JSON listing all of the names and hex colors, I just needed to rewrite the names and convert the hex to base 10. A rather straightforward mapping, but I'd need to write the function for it. I just asked ChatGPT to give me the function. I read the function, it looked good. Boom, done in less than a minute. What's funny is that ChatGPT started spitting out the expected output of the function. And it was right! Perhaps surprising on the face of it, but really it's a simple pattern mapping.


I’ve been very happy with mine playing games of all vintages and development budgets. Just this weekend I was playing Far Cry 4 and The Division 2 quite smoothly.


I've been playing Midnight Suns on mine, very recent game, and it works extremely well(if you lock to 30fps). I've played a good chunk of Elden Ring also completely locked to 30fps - no problem at all.

Someone said something about it before that makes sense to me - it's a portable PS4. If you are happy with playing games at the level a PS4 would play them, then it's a perfect device for you. If you expect proper next-gen games to run on it(Returnal) then you will be disappointed.


This is one of those problems that Tail Call Elimination cleanly addresses. The "obvious" approach to writing an FSM does exactly what you'd expect.


C does not guarantee tail call elimination.

But you can do the same with an event loop that cleanly avoids goto.


Nowadays you can direct clang to require tail-call elimination in C. [1] In gcc you can provide the optimization flag, -foptimize-sibling-calls, which is automatically selected at -O2, -O3, or -Os. [2]

[1] https://clang.llvm.org/docs/AttributeReference.html#musttail

[2] https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html


Not if you don't know how to write in only tail calls. Try explaining tail call elimination to one of these programmers learning how to write a state machine (=


Gotos are great approach for writing a Flying Spaghetti Monster!


Yea. The last half of season 1 it starts to become more just Star Trek. Season 2 and 3 are straight Star Trek. I really enjoyed them.


My impression was more that he just wanted to do Star Trek but the studios were like "it'll be funny right???". And so he went along with it at first, but dropped it as time went on.

On a related note, I've been rewatching Enterprise and I didn't know Seth MacFarlane made 2 cameo appearances in the series! (In two different seasons too.)


It's easy to forget nearly 10 years on, but React came out when Backbone.js with mustache templates was rather common, and React was a LOT easier to manage. The other popular frameworks at the time were Ember and Angular 1, which were quite a bit larger/heavier. By comparison, React could be adopted in a much more incremental fashion. React was super easy to adopt (and it still is, but there's a lot more of an ecosystem around it now which makes it feel much more like a framework).


With the caveat that you don't literally follow Lisp by having a #. reader macro.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: