fxgn's recent activity

  1. Comment on Control the ideas, not the code in ~comp

    fxgn
    Link Parent
    It has definitely happened to me in TypeScript when using a type from a third-party library which has a nullable property, but most of my code only had to accept the object if that property is not...

    It has definitely happened to me in TypeScript when using a type from a third-party library which has a nullable property, but most of my code only had to accept the object if that property is not null

    1 vote
  2. Comment on The coming loop in ~comp

    fxgn
    Link Parent
    Sorry, that was a typo, I meant to say "developers" in plural! Mario and Armin both have great and grounded takes on LLM coding.

    Sorry, that was a typo, I meant to say "developers" in plural! Mario and Armin both have great and grounded takes on LLM coding.

    1 vote
  3. Comment on The coming loop in ~comp

    fxgn
    (edited )
    Link
    The developers of Pi keep surprising me with very reasonable takes. I already commented about this one in this thread, so I'll copy my comment: There is one type of cancerous coding pattern all...

    The developers of Pi keep surprising me with very reasonable takes. I already commented about this one in this thread, so I'll copy my comment:


    There is one type of cancerous coding pattern all models make, no matter how good the model is, and no matter how detailed the AGENTS.md. I found it's best described here:

    Present-day models tend to produce code that is too defensive, too complex, too local in its reasoning. They avoid strong invariants. They add fallbacks instead of making bad states impossible.
    [...]
    Furthermore it’s well understood that models tend to observe some local failure and add a local defense. Karpathy mentioned how they are “mortally terrified of exceptions”. In systems with important invariants, especially persisted data formats or core infrastructure, the right fix is not “handle every malformed case.” The right fix is to make the malformed case unrepresentable or impossible to write in the first place. Yet even with a lot of manual steering, that type of code does not come out of LLMs naturally, and even if the code comes out naturally like that, they will still attempt to handle now impossible errors.

    The models would rather add a if (property !== null) check all over the code than just add that to the type definition and handle the null case in the single place it could possibly arise.

    Until this is somehow improved, there is no way I'd ever prompt AI without fixing the generated code. Sometimes the model does a bad job and I have to refactor most of it myself, sometimes it does a good job and I dont. In any case, I don't think I've ever had a situation where I didn't have to first remove a bunch of useless defensive checks from the generated code.

    It seems like the "best" models are even worse in this regard. I've tried GPT-5.5, but I keep going back to DeepSeek v4, because GPT keeps insisting on adding that stuff all over even when I remove it.

    8 votes
  4. Comment on Control the ideas, not the code in ~comp

    fxgn
    (edited )
    Link
    There is one type of cancerous coding pattern all models make, no matter how good the model is, and no matter how detailed the AGENTS.md. I found it's best described here: The models would rather...

    There is one type of cancerous coding pattern all models make, no matter how good the model is, and no matter how detailed the AGENTS.md. I found it's best described here:

    Present-day models tend to produce code that is too defensive, too complex, too local in its reasoning. They avoid strong invariants. They add fallbacks instead of making bad states impossible.
    [...]
    Furthermore it’s well understood that models tend to observe some local failure and add a local defense. Karpathy mentioned how they are “mortally terrified of exceptions”. In systems with important invariants, especially persisted data formats or core infrastructure, the right fix is not “handle every malformed case.” The right fix is to make the malformed case unrepresentable or impossible to write in the first place. Yet even with a lot of manual steering, that type of code does not come out of LLMs naturally, and even if the code comes out naturally like that, they will still attempt to handle now impossible errors.

    The models would rather add a if (property !== null) check all over the code than just add that to the type definition and handle the null case in the single place it could possibly arise.

    Until this is somehow improved, there is no way I'd ever prompt AI without fixing the generated code. Sometimes the model does a bad job and I have to refactor most of it myself, sometimes it does a good job and I dont. In any case, I don't think I've ever had a situation where I didn't have to first remove a bunch of useless defensive checks from the generated code.

    It seems like the "best" models are even worse in this regard. I've tried GPT-5.5, but I keep going back to DeepSeek v4, because GPT keeps insisting on adding that stuff all over even when I remove it.

    3 votes
  5. Comment on Elixir Is All You Need in ~comp

    fxgn
    Link Parent
    You're making a browser extension in Elixir? How?

    You're making a browser extension in Elixir? How?

    3 votes
  6. Comment on Elixir Is All You Need in ~comp

    fxgn
    Link Parent
    Elixir has gradual type checking now https://elixir-lang.org/blog/2026/06/03/elixir-v1-20-0-released/ GenServer and Task are both features built into Elixir, not separate libraries. Oban is a...

    i'm hesitant at anything dynamically typed though (seems they don't do implicit conversions but you're still going to get runtime errors rather than compile time if i'm reading right?)

    Elixir has gradual type checking now

    https://elixir-lang.org/blog/2026/06/03/elixir-v1-20-0-released/

    the equivalent of redis is now Oban, GenServer, and Task

    GenServer and Task are both features built into Elixir, not separate libraries. Oban is a library and it depends on SQL, so it's not really just "Elixir+Phoenix", but I guess the chart doesn't claim you can also replace a SQL database with Elixir.

    6 votes
  7. Comment on European Parliament achieves upgrade to air passenger rights in ~transport

    fxgn
    Link Parent
    Best case, the list of your installed applications, all accelerometer movements of your phone, every time you unlock and lock your phone, google advertisement profile id, and a lot of other stuff...

    What sensitive data are you protecting that Android permissions aren't capable of handling and their website is incapable of harvesting?

    Best case, the list of your installed applications, all accelerometer movements of your phone, every time you unlock and lock your phone, google advertisement profile id, and a lot of other stuff useful for fingerprinting and advertising.

    Worst case, something like this:

    https://localmess.github.io/

    Not saying the Ryanair app does all of that, just answering your specific question. And I've personally seen random marketplace apps notify me (not because Android enforces that, but probably just because they were careful about privacy regulations) after an update that they will now gather the list of all my installed apps to "protect me from viruses".

    10 votes
  8. Comment on Give me your culture clash stories in ~travel

    fxgn
    Link Parent
    Reminds me of the Not Just Bikes video about how trying to take a walk in Houston radicalized him so much he started a YouTube channel about urban planning https://www.youtube.com/watch?v=uxykI30fS54

    Reminds me of the Not Just Bikes video about how trying to take a walk in Houston radicalized him so much he started a YouTube channel about urban planning

    https://www.youtube.com/watch?v=uxykI30fS54

    20 votes
  9. Comment on Modern, abstract art makes me angry in ~arts

    fxgn
    Link Parent
    You could say the same thing about colors and shapes though. They all can have implicit associations and evoke specific things.

    You could say the same thing about colors and shapes though. They all can have implicit associations and evoke specific things.

    32 votes
  10. Comment on Google must pay record €4.1 billion fine, top EU court rules in ~tech

  11. Comment on Giving Green in ~enviro

    fxgn
    (edited )
    Link Parent
    I wouldn't really call it mostly technosolutionist. Most of the things they fund is more focused on government/corporate lobbying (eg. https://catf.us). They have a detailed report on why they're...

    I wouldn't really call it mostly technosolutionist. Most of the things they fund is more focused on government/corporate lobbying (eg. https://catf.us).

    For exemple, we see funding for decarbonizing air travel (it's a very long shot, for something hardly vital, i wouldn't call this a data driven good target for our limited dollars)

    They have a detailed report on why they're funding aviation emission reduction: https://www.givinggreen.earth/research/reducing-aviation-emissions-strategy-report

    From this it does seem to be a pretty cost effective way to prevent a large amount of emissions

    develloping tastier "alternative proteins" so plant based meat substitute (we allready have tasty and balanced vegetarian diets, it's called indian cuisine)

    I understand anecdotal experience isn't great evidence, but plant-based meat has been huge for reducing my own meat consumption. I'd probably never go vegetarian otherwise, but having access to tasty plant based meat since recently does make me seriously consider that as an option. I don't think I'm the only one like this, and the surveys seem to support that. There's plenty of people who eat meat because they like the taste, and having plant-based options that taste as good would let them reduce their meat consumption.

    2 votes
  12. Comment on SpaceX stock tumbles 23% from its high as average investor sees gains wiped out in ~finance

    fxgn
    Link Parent
    Yeah, you're right of course. But there is still a pretty obvious difference between "I bet this stuff will grow in the next 30 years" and "I should day trade meme stocks". Maybe gambling is not...

    Yeah, you're right of course. But there is still a pretty obvious difference between "I bet this stuff will grow in the next 30 years" and "I should day trade meme stocks". Maybe gambling is not the right word to only represent the second category, but then I don't know what is. I guess "degeneracy" comes to mind in the sense in which it's commonly used nowadays, but it sounds much more offensive.

    5 votes
  13. Comment on SpaceX stock tumbles 23% from its high as average investor sees gains wiped out in ~finance

    fxgn
    Link Parent
    Which is the minority, considering all the people just passively buying an ETF through their pension account, but they're the ones retail brokers make the most money on, so the services try to...

    I think there's definitely a cohort of investors who are essentially gamblers.

    Which is the minority, considering all the people just passively buying an ETF through their pension account, but they're the ones retail brokers make the most money on, so the services try to push that stuff really actively.

    I use a broker which has no investment fees at all, because they're able to make a shit ton of money from people gambling on CFDs. I only use like two buttons in the app to deposit money into an index fund, but the rest of the interface is clearly catered toward gamblers: built-in social media for discussing stocks, a huge card with the change in your balance in the last 24h, "popular stocks" feed, etc. Another broker I've used literally had "trading competitions" in their app where you got a cash prize if you made more money from your investments in a day than the other participants. Never used Robinhood because I'm not in the US, but I know they straight up have sports betting in the app now.

    And, well, wallstreetbets is also a thing.

    I dont have any statistics, but with how aggressively it's pushed, I'd assume a lot of people start with safe investments and then slowly move towards stock gambling.

    7 votes
  14. Comment on Nobody clicks your share buttons in ~tech

  15. Comment on How much of an echo chamber is Reddit/the internet, really? in ~tech

    fxgn
    Link Parent
    What country do you live in? There's often some hidden way to opt out of all junk mail

    What country do you live in? There's often some hidden way to opt out of all junk mail

    1 vote
  16. Comment on Sweden may oppose Tesla's supervised self-driving tech in Europe over speeding concerns in ~transport

    fxgn
    Link Parent
    In Russia you can drive 20km/h above the speed limit without getting fined, so if the sign says 60, you're allowed to drive 80. Everyone does that, but self-driving cars don't, so they are usually...

    In Russia you can drive 20km/h above the speed limit without getting fined, so if the sign says 60, you're allowed to drive 80. Everyone does that, but self-driving cars don't, so they are usually a huge annoyance to the human drivers.

    (Not saying its a good thing, but that's how it is)

    7 votes
  17. Comment on Anyone have any experience with tiny screws? I need to replace two in my body hair trimmer and I don't know where to start. in ~life.home_improvement

    fxgn
    Link Parent
    +1 for the iFixit Mako. Probably one of my most useful purchases ever.

    +1 for the iFixit Mako. Probably one of my most useful purchases ever.