HNHacker News
TopNewBestAskShowJobs

valyagolev

861 karma · joined October 23, 2010

[ my public key: https://keybase.io/valyagolev; my proof: https://keybase.io/valyagolev/sigs/Z57l_5tXbkkZ_B__de--qTgFAUU_s5zMpID0zoKiZqA ]
submissionscomments
valyagolev··on RoboAgent: A universal agent with 12 Skills
but then it’s over for you the moment there’s someone with 13 skills
valyagolev··on Intent to approve PEP 703: making the GIL optional
IMO Python doesn't even offer enough in the way of good synchronisation primitives for the async code. I don't think the ecosystem is ready for this one.

I hope it'll be recognised by the most "host" applications (uvicorn or whatever) that multi-threading is not a good idea anyway and they'll discourage it. But there'll definitely be a macho-land of thread-"safe" programmers whose bugs we'll be downstream of

valyagolev··on Intent to approve PEP 703: making the GIL optional
people in this thread mention that, for some reason, "even with GIL you still have to write thread-safe code", which is an admirable stance, but I don't think many people do it, because their webserver or whatever uses the many single-threaded processes model and they don't want to waste time on that
valyagolev··on Intent to approve PEP 703: making the GIL optional
there's a lot of code I wrote (and saw people write) in Python over the years, conscious that noone will ever run it in threads (ofc it's possible, but typically pointless), thus going quite easy on things that wouldn't be thread-safe. this used to quite a comfortable stance. community ended up inventing other ways to share state, other ways to vectorize, other ways to avoid blocking on I/O, that might sometimes be annoying, but evolved to be quite reasonable for Python.

giving up this stance? a lot of code is instantly a legacy, and a lot of it is a legacy people won't even know about before they notice the problems. and for what?

i must say that i have no experience running Python without GIL so my idea of the ways things can be not thread-safe is purely speculative/borrowed from very different languages (that I finally moved on to long ago, thank god). so maybe i'm wrong, i misunderstand the impact, and all this code is just fine

valyagolev··on The Matt Curve (2019)
This reads like a parody of the argument, especially with the pictures. Curve good, another curve bad
valyagolev··on Function calling and other API updates
It can also decently serve as a way to output structured data, which wasn't extremely hard before but had its failure modes. This is a much more typical and understandable use-case for many apps
valyagolev··on AMD Expands AI Product Lineup with GPU-Only Instinct Mi300X with 192GB Memory
comma.ai dude is making a whole company to achieve just that https://geohot.github.io/blog/jekyll/update/2023/05/24/the-t...
valyagolev··on Llama.cpp: Full CUDA GPU Acceleration
you can easily download llama weights by googling the ipfs link. it doesn't even seem to be illegal to do so, but IANAL
valyagolev··on Gravitational Machines
It's an article from 1962:

"After the detection of the gravitational wave GW170817, Jason T. Wright (Physics Today, 72, 5, 12, 2019) reminded the community that many of its features had been predicted by Dyson more than half a century earlier. Dyson’s article was published only once, in Cameron’s long out of print collection, though a scan may be found at the web site of the Gravity Research Foundation (https://www.gravityresearchfoundation.org). Dyson thought it had been reprinted (in his Selected Papers, AMS Press, 1996, forward by Elliot H. Lieb) but it was not. Hoping to make the article easier to find, I wrote Dyson for his permission to post it at the arXiv"

It's about using two big bodies, A and B, to accelerate objects: "The energy source of the machine is the gravitational potential between the stars A and B. As the machine continues to operate, the stars A and B will gradually be drawn closer together, their negative potential energy will increase and their orbital velocity V will also increase."

valyagolev··on I'm afraid I can't do that: Prompt refusal in generative language models
not just overall latency, but to keep the animation of the text appearing as it is generated. the response becomes recognizably "undesirable" not immediately, but from a particular token, and that token is the point where it's moderated away
valyagolev··on Show HN: GPT-JSON – Structured and typehinted GPT responses in Python
the dirtyjson library has been doing this work for me quite well
valyagolev··on Re-implementing LangChain in 100 lines of code
we're still in the stage of LLM adoption when we can have "eye-opening" simple discoveries weekly. Langchain has momentum because of this, as a library of simple ideas. this period will end, and if they don't figure out the next step they're gone
valyagolev··on Rust's Ugly Syntax
There's always a lot going on in every line of Rust and I respect that. But a lot of it is boilerplatey. E.g. this AsRef business - the argument is that it helps performance, but I hope that sometime in the future it would be much easier and cleaner to express things like "I want two arguments of any type I can transform to an owned string" without adding a bunch of explicit generic arguments, or even "I want a hashmap with keys and values of any type I can transform to an owned string", allowing people to use your api without adding/removing .to_owned() after strings every time they change something, or all this iter-map-to_owned business.

And no, I don't mean it as having java-like semantics. Semantically such functions should stay generic over the types. There's no reason not to sugar it over, though

valyagolev··on Spin up your development background processes with ease
I was looking for an extension to do the following: when I open a project (and maybe press a status bar button), it runs all the processes I need (from the config in the root of the project) and streams their logs in separate terminals (so I can see those logs immediately); when I close the projects, all of this gets shutdown
valyagolev··on Spin up your development background processes with ease
amazing, I only wish for the VS Code integration
valyagolev··on The Psychedelic Inspiration for Hypercard (2018)
I know my friend, everything is valuable because everything is connected
valyagolev··on The Psychedelic Inspiration for Hypercard (2018)
the amazing great inspirational stories about LSD trips all sound the same
valyagolev··on How we slowed the subway down
this is the kind of nitty-gritty stuff I wish railroad management games would show, a lot of them are very arcade-like in comparison
valyagolev··on Using GPT3 to Interpret Dreams
dream interpretation is about asking the right questions, not giving the answers. a model could learn to ask good questions (reminds me of ELIZA)
valyagolev··on Exercises for understanding Haskell Lenses (2019)
we use both a lens library and an immutable data structures library. lenses are not a data structure, but a path into it
valyagolev··on Exercises for understanding Haskell Lenses (2019)
we use lenses in react/typescript together with jotai atoms to express data paths in complex structures. it’s an amazing basic idea that is done a disservice by the proliferation of weird concepts and operators
valyagolev··on FTX billionaire Sam Bankman-Fried funneled dark money to Republicans
why couldn't he simply funnel to both sides at the same time? it's likely not "sides", but specific individuals with specific incentives to give them money
valyagolev··on Bunch.app: app for context switching (one button to run project-specific apps)
Posting because I was looking for something like this and it seems neat. I'm wondering if there's anything similar and integrated into VS Code
valyagolev··on Tom Brady, Giselle Bündchen, Larry David Sued in FTX Class Action Suit
the famous people use their authority (that shouldn’t really exist but is there) to persuade us. thus they abuse the trust already established between them and us (again, i think the trust was always misplaced but it’s nonetheless there). while some acting randos don’t command any special authority or trustworthiness to them
valyagolev··on Notion AI – waiting list signup
would be amazing to have a suggestion like "looks like whatever you're writing has already been written in this workspace"
valyagolev··on A database without dynamic memory allocation
> Restrict the length of function bodies to reduce the probability of poorly structured code. We enforce a hard limit of 70 lines per function.

Reminds me of Carmack on the benefits of long functions: http://number-none.com/blow/john_carmack_on_inlined_code.htm...

valyagolev··on Ask HN: Why Hasn't the Doomsday Clock Advanced?
we need Doomsday Bayesian Update
valyagolev··on Go Auth Lib
Apart from this and https://github.com/python-social-auth , which languages have such meta-libraries providing uniform interface to authentication through a lot of social platforms?
valyagolev··on Toyota CEO talks about why he isn’t all-in on EVs
yeah i'm also sceptical

and that's i'm worried that it's going to be part of a hype to symbolically buy them, wasting the materials to create solar panels even further, only for them to stand in a garage or otherwise well-protected from the sun by the buildings around

valyagolev··on Toyota CEO talks about why he isn’t all-in on EVs
ioniq 5 with solar roof promises like 6-7 km a day (4 miles in weird). can we expect an order of magnitude improvement here?
← PreviousPage 3 of 7Next →