If you are looking to learn a lower level language that c# and arent interested in rust I really recomend Zig. It feels a lot like c but with modern convenieces and with the footguns removed. It is still in development though do breaking changes happen in the stdlib on version changes.
Womble
- 0 posts
- 19 comments
- 4 months
And those people who think LLMs will replace software engineers any time in the near future are wrong. But it can still be the case that LLMs are democratizing coding ability to those who otherwise wouldnt have it while at the same software engineering as a discipline isnt going anywhere.
Its not just basic scripting either, often when people start coding in earnest their programs are just a huge pile of statements connected together with if statements and mutating global variables. and LLM can help show best practices like encapsulating logic into functions and isolating side effects.
But at the same time everyone having a CAD machine (or 3D printer) allows a lot of people to solve engineering type problems they have without an engineer, which is the article’s point.
I think you are vastly overestimating the level that statement is pitched at. The overwhelming majority of people dont even know how a for loop works. However they can ask an LLM to write a script to change this list of files with inconsistent numbering conventions and put them in a consistent order. That’s the level of spreading out the ability to program that we are dealing with.
- Womble@piefed.worldto
Linux@programming.dev•Is the FOSS world in danger of a corporate takeover, thanks to pushover licenses?English
7 monthsI’m not an expert on licences by any means, but my understanding was that LGPL explicitly allows you to link it to other binaries without needing to licence them with the same licence. Does rust really only support static linking and not dynamic?
Per the Gnu wiki:
Does the LGPL have different requirements for statically vs dynamically linked modules with a covered work? (#LGPLStaticVsDynamic)
For the purpose of complying with the LGPL (any extant version: v2, v2.1 or v3):
(1) If you statically link against an LGPLed library, you must also provide your application in an object (not necessarily source) format, so that a user has the opportunity to modify the library and relink the application.(2) If you dynamically link against an LGPLed library already present on the user's computer, you need not convey the library's source. On the other hand, if you yourself convey the executable LGPLed library along with your application, whether linked with statically or dynamically, you must also convey the library's sources, in one of the ways for which the LGPL provides.So as long as you also provide your application with an LGPL library shaped hole you can release a static-linked binary with LGPL components.
- Womble@piefed.worldto
Linux@programming.dev•Is the FOSS world in danger of a corporate takeover, thanks to pushover licenses?English
7 monthsEven then, LGPL exists, I wish more libraries would use it rather than going for MIT/BSD licences.
- Womble@piefed.worldto
World News@beehaw.org•Crowds chant outlawed anti-Putin songs in rare St Petersburg protestEnglish
8 monthsYou should probably look up where “Tankie” originates if you think Stalin wasnt a communist and calling people defending actions of non-communists tankies is wrong.
- 8 months
Breath of the wild.
Complete disapointment as a Zelda game, it felt just like generic ubi-slop with a coat of nintendo paint, complete with a pointless crafting system and the ridiculous “swords can ony hit a dozen times before breaking”.
- Womble@piefed.worldto
Programming@programming.dev•Big Decimals: Stop Using Floats or Cents for MoneyEnglish
9 monthsNo you spouted some stuff about “trust me I’ve seen it” (almost certainly relating to using single floats) then an irrelevant tangent about how ten doesnt divde cleanly into three and how thats a problem for floats, when you have exactly the same problem with fixed point/integer division.
Do you have an actual example of where double precission floats would cause an issue? Preferably an example that could be run to demonstrate it.
- Womble@piefed.worldto
Programming@programming.dev•Big Decimals: Stop Using Floats or Cents for MoneyEnglish
9 monthsAnd so instead of explain why and clarify any misunderstanding you chose to snarkily insult my intelligence, very mature.
- Womble@piefed.worldto
Programming@programming.dev•Big Decimals: Stop Using Floats or Cents for MoneyEnglish
9 monthsI fail to see a difference there, 10.0/3 = 3.33333333333 which you round down to 3.33 (or whatever fraction of a cent you are using) as you say for all accounts then have to deal with the leftovers, if you are using a fixed decimal as the article sugests you get the same issue, if you are using integer fractions of a cent, say milicents you get 1000000/3 = 333333 which gives you the exact same rounding error.
This isnt a problem with the representation of numbers its trying to split a quantity into unequal parts using division. (And it should be noted the double is giving the most accurate representation of 10/3 dollars here, and so would be most accurate if this operation was in the middle of a series of calcuations rather than about to be immediately moving money).
As I said before, doubles probably arent the best way to handle money if you are dealing with high volumes of or complex transactions, but they are not the waiting disaster that single floats are and using a double representation then converting to whole cents when you need to actually move real money (like a sale) is fine.
- Womble@piefed.worldto
Programming@programming.dev•Big Decimals: Stop Using Floats or Cents for MoneyEnglish
9 monthsYou are underestimating how precice doubles are. Summing up one million doubles randomly selected from 0 to one trillion only gives a cumulative rounding error of ~60, that coud be one million transactions with 0-one billion dollars with 0.1 cent resolution and ending up off by a total of 6 cents. Actually it would be better than that as you could scale it to something like thousands or millions of dollars to keep you number ranger closer to 1.
Sure if you are doing very high volumes you probably dont want to do it, but for a lot of simple cases doubles are completely fine.
Edit: yeah using the same million random numbers but dividing them all by 1000 before summing (so working in kilodollars rather than dollars) gave perfect accuracy, no rounding errors at all after one million 1e-3 to 1e9 double additions.
- Womble@piefed.worldto
Programming@programming.dev•Big Decimals: Stop Using Floats or Cents for MoneyEnglish
9 monthsSingle floats sure, but doubles give plenty of accuracy unless you absolutely need zero error.
For example geting 1000 random 12 digit ints, multiplying them by 1e9 as floats, doing pairwise differences between them and summing the answers and dividing by 1e9 to get back to the ints gives a cumulative error of 1 in 10^16. assuming your original value was in dollars thats roughly 0.001cent in a billion dollar total error. That’s going deliberately out of the way to make transactions as perverse as possible.
- Womble@piefed.worldto
Programming@programming.dev•We Asked 100+ AI Models to Write Code. The Results: AI-generated Code That Works, But Isn’t SafeEnglish
11 monthsYes, i find it difficult to believe that they mess up a dozen line algo that is in their training set in a prominant place with no complicating factors. Despite what a lot of people here think, LLMs do have value for coding. Even if the companies selling them make ridiculous claims about what they can do.
- Womble@piefed.worldto
World News@beehaw.org•Russia to spend $1.1 trillion preparing for 'upcoming large-scale war,' Ukraine's intel chief saysEnglish
11 monthsI mean, they already are, just for recruitment to the army rather than factories. There’s plenty of stories of people being rounded up by police, put on trumped up charges and being given the option of jail and abuse there or signing up to go to the front line.
- Womble@piefed.worldto
Programming@programming.dev•We Asked 100+ AI Models to Write Code. The Results: AI-generated Code That Works, But Isn’t SafeEnglish
11 monthsI find that very difficult to believe. If for no other reason that there is an implementation in the wiki page for Levenshtein distance (and wiki is known to be very prominant in the training sets used for foundational models), and that trying it just now and it gave a perfectly functional implementation.
- Womble@piefed.worldto
World News@beehaw.org•Russia to spend $1.1 trillion preparing for 'upcoming large-scale war,' Ukraine's intel chief saysEnglish
11 monthsHow long they can do it for is a significant open question, the Russian economy is already showing serious warning signs and most of the forcasts that I’ve seen show 2026 as the year where things start to become very bad for them. It’s not an all or nothing thing either, its not that it is about to implode and all of a sudden Russia cant do anything, but that the economy degrades to the point where it becomes difficult for them to maintain funnelling sufficient resources into their invasion.
- Womble@piefed.worldto
World News@beehaw.org•Russia to spend $1.1 trillion preparing for 'upcoming large-scale war,' Ukraine's intel chief saysEnglish
11 monthsRussia has an “official” central bank interest rate of 20% with parts of the real economy seizing up due to the country’s resources being funneled into creating vehicles that last for a few months before being blown up in their invasion.
Large countries have a lot of levers they can pull to keep their economies going when they really need to, but they are damaging in the long run and get more damaging the longer they rely on them. Russia doesnt have some magical property of being extra resilient based on slavic tolerance of suffering.




Its not a real language unless you have 11 different valid ways of instantiating an object, each with their own subtle pitfalls.