HNHacker News
TopNewBestAskShowJobs

iopq

3,183 karma · joined September 30, 2012

submissionscomments
iopq··on Refactoring has a price, not refactoring has a cost
Eventually you reach the limit of expression of the language you're working with.

My fizzbuzz:

https://bitbucket.org/iopq/fizzbuzz-in-rust/src/master/src/l...

there's just no more refactors I can do because of the limitations of Rust

iopq··on Refactoring has a price, not refactoring has a cost
That just leaves the code in a state where it's not clear what's wrong with it, because it works most of the time. There are just two types of code: obviously correct, or not obviously wrong.

If you write some code and you don't know how it works, it's most likely not correct in some edge cases.

Code that is written to be so simple it's obviously doing the right thing is better than battle tested mess of if statements.

I've given interviews of fizzbuzz and even though developers usually recognize they need a separate case for 15, they don't always do the else ifs right (maybe test for the 15 case last when you've already hit the divisible by 3 case first, or similar silly mistakes). In that case, doing the string accumulation refactor makes it clear that the code has no mistakes because it for sure adds a Fizz first and a Buzz second in the 15 case. It's also a good refactor for extending to Bazz (divisible by 7) as well, so it's something you will want to do when you want to add that feature

iopq··on Researchers find a rare compound, plumbonacrite, in first layer of Mona Lisa
I bet you the majority of the population doesn't think Mona Lisa is anything amazing and is just a famous painting. They just don't come out of the woodwork to tell you that
iopq··on Researchers find a rare compound, plumbonacrite, in first layer of Mona Lisa
> It wouldn’t be the most famous painting in the world if it wasn’t interesting or moving.

The most popular book in the world is the Bible and I never found it very interesting

iopq··on AMD Introduces New AMD Ryzen Threadripper 7000/Pro 7000 WX
I looked at AMD's earnings. There's not an insatiable demand, AMD is not making a profit.

When there was a real insatiable demand for GPUs AMD actually did make money hand over fist

iopq··on AMD Introduces New AMD Ryzen Threadripper 7000/Pro 7000 WX
You mean the Threadripper has a lot more cache on the 24 core part so it's going to be much better in those workloads that fit into its cache but not into the 7950x's?
iopq··on AMD Introduces New AMD Ryzen Threadripper 7000/Pro 7000 WX
Because at the time of release of 5000 series, they couldn't get all this silicon to make SKUs at every price point, so they tried to sell at the highest price point. Now that they are not selling much of anything, they will try to get their profits at the HEDT market
iopq··on AMD Introduces New AMD Ryzen Threadripper 7000/Pro 7000 WX
Try searching deep into the game tree in go. After a few million nodes you can't actually store them all in 16GB of RAM. That's just a day of searching on a 2060, you can get into the hundreds of millions with a faster GPU and a longer search horizon. But when you put it into swap, it won't be as fast...
iopq··on Meta is banning people from advertising after running ads for Python and Pandas
Just as long as you're not selling pandas, which is what the AI thought he was doing
iopq··on Grayjay – Follow Creators Not Platforms
It's not a donation, you're expected to pay for it. Donations can be of any size, this is a $10 one time payment for the use of the software. There's a license key and everything.
iopq··on Open source app to watch videos from any platform
I believe only the source has to be given away for free. Which it is

The problem with that definition is it allows commercial distribution of said software, which futo's license prohibits on purpose since you could bundle the futo software with ads and call it your own software. The futo license prohibits commercial distribution of its software by others

iopq··on Grayjay – Follow Creators Not Platforms
There's no paywall, it just asks you to pay for the software. You can use it without paying for as long as you like, but it's paid software. See: WinRAR
iopq··on Open source app to watch videos from any platform
He purposefully doesn't allow forks that add ads to the software, so it's less permissive than most open source licenses. But it does allow you to modify the source code for non-commercial use.
iopq··on AMD may get across the CUDA moat
Update: OBS is not broken

just ALL videos on my system are broken, I can't play back video past like half speed so the sound gets really choppy

Thanks, Nvidia

iopq··on NixOS and Flakes Book: An unofficial book for beginners (free)
Psst, you can steam-run those binaries
iopq··on NixOS and Flakes Book: An unofficial book for beginners (free)
What if I never transition to HM?
iopq··on ECC RAM on AMD Ryzen 7000 Desktop CPUs
news.ycombinator.com not included in this 4% either
iopq··on NixOS and Flakes Book: An unofficial book for beginners (free)
Yes, it's basically a ready feature that's not currently the default
iopq··on AMD may get across the CUDA moat
Look at the earnings call:

https://www.fool.com/earnings/call-transcripts/2023/08/01/ad...

it's literally ALL AI, server, enterprise talk - AI is mentioned 64 times

AMD literally doesn't care about gaming anymore, server is their primary focus

iopq··on AMD may get across the CUDA moat
Nvidia is bad when combined with Wine/Firefox/Chrome on Wayland

Which is literally only 1% of users anyway

iopq··on AMD may get across the CUDA moat
I tried using an Nvidia card with OBS to record my screen and it kind of freezes in Wine. I switched from x11 to Wayland and now Wine shows horizontal lines (!) and performs like crap.

Even my 4GB RX 570 from years ago gives a better experience doing this. You just install OBS from flathub, Wayland works, everything works without any setup or tinkering. You click record and you can record your gameplay footage.

iopq··on AMD may get across the CUDA moat
Sorry, still trying to install some dependencies for DNN and CUDA, not sure why it says my Clang version is too new (!)
iopq··on AMD may get across the CUDA moat
It also works much better as a server. Snaps work really well for things like certbot

On Desktop you have to worry about things like... UIs, sound, Wine, etc.

iopq··on AMD may get across the CUDA moat
In NixOS, I can install multiple versions of libraries

Or rather, I install no versions of libraries because NixOS will put them all in the store in different folders, and will compile the executable to use the correct path (or patch the elf when needed)

it has an issue with pip because it's allergic to just randomly executing things as part of package management, but pip in general is wtf

iopq··on Strong static typing, a hill I'm willing to die on
That's assuming you're mixing sensitive data and insensitive data in one collection. Heartbleed was access of random memory, a much more serious exploit
iopq··on Strong static typing, a hill I'm willing to die on
I do, because I don't enjoy having to throw some exception I don't care about just because it's "checked"
iopq··on Strong static typing, a hill I'm willing to die on
Heartbleed is not a type error in C, but it's a type error in Rust

Rust has a more powerful type system that actually fixes MOST of the memory bugs in production

iopq··on Strong static typing, a hill I'm willing to die on
There's ONE argument that I'm partial to:

if you get the static type system wrong once, there's no going back

Take for example, Rust: mut, Send, Copy, Drop, Debug, dyn have all their warts because they are special and you can't fix them because you'll break previous code.

In a gradual typing language you could potentially bolt-on your own type system as a package where it just runs the type checker if you want one. It just so happens people who favor these gradual typing systems don't do a good job of creating those typing systems because they are not that into types in the first place.

But in theory, this kind of a system would let you not worry about types when prototyping the system, then put some bounds later based on your requirements.

iopq··on Fairphone 5 review: The most uncompromising repairable phone yet
I bought a screen for $70 for an iPhone third-party screen and paid some guy in China $10 to fix it. You probably pay $199 for two years, yet they still charge you $29 for it
iopq··on Fairphone 5 review: The most uncompromising repairable phone yet
Actually no, because they had to use a Qualcomm QCM6490 industrial SoC to get that long support contract

https://arstechnica.com/gadgets/2023/08/fairphone-5-sets-a-n...

← PreviousPage 5 of 34Next →