Readit News logoReadit News
yoru-sulfur commented on Python lib generates its code on-the-fly based on usage   github.com/cofob/autogenl... · Posted by u/klntsky
yoru-sulfur · 4 months ago
I made something very similar a couple years back, though it doesn't actually work anymore since OpenAI deprecated the model I was using

https://github.com/buckley-w-david/akashic_records

yoru-sulfur commented on Blue Prince is a roguelike puzzle masterpiece   mssv.net/2025/04/07/a-puz... · Posted by u/adrianhon
ndsipa_pomu · 5 months ago
Read the review and thought it looked like the kind of thing that I like, but then saw that it doesn't have SteamDeck compatibility. Sorry, but if you're only going to target Windows then you're not seeing my money.
yoru-sulfur · 5 months ago
I don't have a Steam deck, but for what it's worth I haven't had any problems with it on my arch desktop
yoru-sulfur commented on PEP 750 – Template Strings   peps.python.org/pep-0750/... · Posted by u/grep_it
mcdeltat · 5 months ago
Could someone explain more why this should be a language feature?

My understanding of template strings is they are like f-strings but don't do the interpolation bit. The name binding is there but the values are not formatted into the string yet. So effectively this provides a "hook" into the stringification of the interpolated values, right?

If so, this seems like a very narrow feature to bake into the language... Personally, I haven't had issues with introducing some abstraction like functions or custom types to do custom interpolation.

yoru-sulfur · 5 months ago
It reminds me of javascripts template literals (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...) and .nets FormattableString (https://learn.microsoft.com/en-us/dotnet/api/system.formatta...)

The best use case I know of for these kinds of things is as a way to prevent sql injection. SQL injection is a really annoying attack because the "obvious" way to insert dynamic data into your queries is exactly the wrong way. With a template string you can present a nice API for your sql library where you just pass it "a string" but it can decompose that string into query and arguments for proper parameterization itself without the caller having to think about it.

yoru-sulfur commented on Critical Unauthenticated Remote Code Execution Vulnerabilities in Ingress NGINX   wiz.io/blog/ingress-nginx... · Posted by u/puppion
boxed · 5 months ago
Did I read this right that it's a problem with k8s, and not nginx? Seems not very nice to have nginx in the title, when it's not the problem.
yoru-sulfur · 5 months ago
It's a problem with a k8s component called "Ingress Nginx" (the ingress controller that uses Nginx).

Nginx isn't the problem, but I don't think you can really get away from including it in the title given the name of the component

yoru-sulfur commented on Boltzmann brain   en.wikipedia.org/wiki/Bol... · Posted by u/josephwegner
unholiness · 9 months ago
The way I see it:

The reasonable things that continue happening each day in our universe would be extremely unlikely if we are just Boltzman brains. Every bit of sensible reality would be coincidental. The very continuance of that reality is an experiment constant proving the falsehood of Boltzman brains, at a rate of oh maybe millions of sigmas of confidence per second.

Now, if you believe the universe came to an initial state due to pure thermodynamic coincidence, millions of sigmas per second is laughably small compared to the chance that a whole universe outside your brain popped into existence, so Boltzman brains are the most believable thing and you should believe in them.

This completes a pretty direct argument: Believing the initial state of the universe was a thermodynamic coincidence forces you to believe in Boltzman brains, Boltzman brains force you to believe reality should collapse immediately, and reality does not collapse immediately. Therefore you simply can't believe the first assumption, that initial state of the universe was a thermodynamic coincidence.

Accepting this is often called the "Past Hypothesis". It's spoken of in deferential terms and said that it can't ever be proven... But to me this is rock-solid proof, with more sigmas of evidence than any other scientific discovery and increasing by the second! Can't we just call it the Past Theorem already?

yoru-sulfur · 9 months ago
I am mostly playing devil's advocate

> and reality does not collapse immediately

How do you know that reality does not collapse immediately? At any given instant you could be a fresh brain that just came into existence, all your previous memories which imply a life lived up to this point also formed in that same instant.

yoru-sulfur commented on SpaceX launches mission for 2 NASA astronauts who are stuck on the ISS   apnews.com/article/spacex... · Posted by u/JumpCrisscross
yoru-sulfur · a year ago
I don't see anything in the comment guidelines banning humor. I do however see that it asks us to be kind, not sneer at the rest of the community here, and to stop the tired comparisons to Reddit.

The voting and flagging systems, along with the work of the moderators, are perfectly capable at managing the comments. No need to try to police them yourself.

yoru-sulfur commented on Day 20: My favourite problem from Advent of Code 2023   mliezun.github.io/2023/12... · Posted by u/nickdevx
yoru-sulfur · 2 years ago
My favourite solution to this problem was going all in on analyzing the input. Instead of just assuming the set of modules must have cyclic behaviour and running the simulation until you find the periods, look at the input and _really_ understand what its doing.

What you will find is that the modules form a set of binary counters (chains of flip flops), with a number encoded into them via whether they are connected to a "hub" node of the chain (a conjunction).

You can parse the module structure and traverse the graph to extract that number. The connections to the hub are the bits of the number (1 if module is connected, 0 if not). Do that for all the counters and LCM (or multiply since they are all coincidentally co-prime) them together to get your answer.

No simulation required.

yoru-sulfur commented on Show HN: I scraped 25M Shopify products to build a search engine   searchagora.com/... · Posted by u/pencildiver
yoru-sulfur · 2 years ago
For those unaware, Shopify already has platform wide search. You can use https://shop.app/ (or the app), and it also has some chatbot thing that can offer suggestions
yoru-sulfur commented on Kagi Search – Paywalled articles indicator and improved weather widget   kagi.com/changelog... · Posted by u/mroche
karmakaze · 2 years ago
I don't want to pay for a search service and have 'range anxiety' and self-regulate my usage like I'm driving a 50km EV.

Search is ubiquitous, make a flat rate subscription for normal people and a TOS that excludes non-human abuses. I don't pay for a per call mobile phone plan and I make way more searches.

yoru-sulfur · 2 years ago
The limit has been removed from most paid plans since September

https://blog.kagi.com/unlimited-searches-for-10

> We’re thrilled to announce that unlimited search is now included in our $10/month Professional plan and our Ultimate, Family, and Duo plans.

yoru-sulfur commented on Htmx Webring   htmx.org/webring/... · Posted by u/satya71
nsonha · 2 years ago
my memory is hazy but aren't semantic web, ontology and all that HATEOAS stuff for bots instead of humans? Now that LLM is here, what use do they have?
yoru-sulfur · 2 years ago
Funny enough I recently ran into a very relevant blog post: https://intercoolerjs.org/2016/05/08/hatoeas-is-for-humans.h...

HATEOAS is for humans

I haven't really thoughy about REST in relation to all the recent ML advancements. REST (With HATEOAS) might actually be a good way to expose APIs to these agents since they now have some ability to "reason" about responses beyond a hardcoded set of handlers

u/yoru-sulfur

KarmaCake day236February 9, 2019View Original