HNHacker News
TopNewBestAskShowJobs

friedman23

1,487 karma · joined December 5, 2016

submissionscomments
friedman23··on Fentanyl vaccine tested in rats
The problem is not fentanyl prescriptions, it's fentanyl being slipped into other drugs. I imagine for a drug user this could be a life saver.
friedman23··on San Francisco Falls into the Abyss
> weren't contributing anything meaningfully positive to the city to begin with

Only money

friedman23··on San Francisco Falls into the Abyss
San Francisco is not the only major city that suffered a pandemic. Why did people decide to leave San Francisco at much higher rates than any other major city? The pandemic is what catalyzed the event by giving people the ability to move. But ultimately the reason they moved was because San Francisco was worse than other options.
friedman23··on San Francisco Falls into the Abyss
> San Francisco empowered some of the most wealthy people not only in the US currently but in all human history

Bullshit, they could've done it anywhere else, it just happened to be there. The idea that "San Francisco" empowered anything is just complete delusion, it was the people that did it.

friedman23··on Summer Afternoon – A WebGL Experiment
Threejs apparently
friedman23··on Ask HN: Math books that made you significantly better at math?
I'm doing this and am starting with Linear Algebra on MIT OCW (taught by Gilbert Strang). My current plan is to relearn Linear Algebra, Calculus, Probability, and Statistics and actually focus on retaining the knowledge in my memory using something like SRS learning. I think planning past that is pointless since by the time I'm done I will have a better ability to plan my future coursework.
friedman23··on Rust concepts I wish I learned earlier
The complexity exposed by Rust is overwhelming for people that haven't done any low level programming.

It's not just lifetimes, a basic Rust function can expose the ideas of exclusive and non-exclusive ownership, traits, generics with and without trait bounds, algebraic data types, closures, closures that move, async, async blocks, smart pointers, macros, trait objects, etc etc.

There is absolutely a learning curve and it makes me understand why Golang is the way it is. The language authors of Golang saw the business needs of Google, realized that they need to get domain experts that are not programming savants to write code and created a language that would allow the largest number of non programmer domain experts be productive coders.

That being said, the Golang developers went too far and let too many of their biased ideas for what is "simple" infect the language. In what way is it simple for a language to not be null safe. I have a bunch of other complaints too.

But anyway, I don't think Rust is going to be a revolution in writing software unfortunately. I don't think enough people will be able to learn it for companies to be able to hire for Rust positions.

friedman23··on Rust concepts I wish I learned earlier
I consider footguns to be things that cause me to waste a ton of effort and build architecturally unsound code. The things in the article are actually just basic language concepts you need to understand to be productive.

So to use the foot gun analogy, if you don't know the stuff in the article you wont even be able to pull the trigger.

An actual footgun is something like monkeypatching in python or ruby. Or running for_each with an async callback in javascript.

friedman23··on Rust concepts I wish I learned earlier
The book "Programming Rust" (very good book btw) only mentions iter() and iter_mut() briefly and focuses on into_iter because the IntoIterator trait only implements into_iter.

You can replicate iter() with `(&x).into_iter()` and you can replicate iter_mut() with `(&mut x).into_iter()` and obviously `x.into_iter()` consumes the contents.

friedman23··on Rust concepts I wish I learned earlier
I'll share an architectural pattern from Rust that is pretty ubiquitous but not really mentioned in the official books.

Skip the whole weak rc nonsense and jump directly to using an allocator (like slotmap) when dealing with cyclic data structures. Wrap the allocator in a a struct to allow for easy access and all the difficulty from rust cyclic datastructures disappears.

friedman23··on New Mac Mini
Nothing's perfect and often when there are platform inconsistencies like that someone abstracts the functionality away in a package so the application developer doesn't need to worry about it. I'd rather have 80% code sharing across platforms than no code sharing.
friedman23··on New Mac Mini
Ok, you decouple UI from business logic, have some state machine written in language X let's say that can compile ios, android, and wasm and allows for interop with the kotlin, swift, and js. Even then, the view code is often the most complex and bug prone part of the app. Business logic is easy by comparison (in my opinion).
friedman23··on New Mac Mini
The abstraction doesn't have to be perfect. Most apps don't even take advantage of native platform functionality.
friedman23··on New Mac Mini
I was just using the original poster's language when I was referring to "shitty inefficient software". I'll say it does bother me that we are standardizing on typescript with react being the default for cross platform development.

When I first started using react I loved it compared to what existed at the time, the ease of composing everything and the fact that it just used JS instead of a DSL for templating and it didn't mandate all these cargo-culted framework patterns.

But the warts are really starting to show up, writing React today with useEffect hooks everywhere reminds me of writing VHDL in college to simulate an automated train controller and now I'm reaching for things like XState to handle almost all state management (I have a feeling this complexity ends up appearing for all complex UI interactions though).

Also we are taking on a type system (which is good) but not seeing any of the performance benefits that could bring. Why is golang more than 100% faster than typescript? Both are statically typed languages but TS doesn't get any compiler optimizations because of the JS baggage.

That being said, I'll take JS with React + React Native if it means I can write apps once and ship to all three major platforms. It's exciting that ui frameworks like Tamagui allow for close to 90% code sharing.

friedman23··on New Mac Mini
Get ready for AR apps written in react native. The reason we have shitty inefficient software is because Apple, Google, and Microsoft haven't standardized on a performant cross platform framework other than the browser. Don't blame people writing software for not wanting to waste their lives translating the same logic to 3 different platforms and then maintaining 3x the code for the rest of their lives.
friedman23··on Apple Silicon Mac’s have 2-3 times longer battery than PC laptops
The battery life is amazing. But just as amazing is that my hands don't sweat when using my laptop anymore because it doesn't get anywhere near as hot as other laptops when under load.
friedman23··on Apple Silicon Mac’s have 2-3 times longer battery than PC laptops
Other companies haven't even figured out how to get a trackpad as good as Apple's. If they can't even get the trackpad right there's no hope.
friedman23··on Apple Silicon Mac’s have 2-3 times longer battery than PC laptops
But this isn't marketing, it's a review with battery life benchmarks with a variety of scenarios...
friedman23··on Apple Silicon Mac’s have 2-3 times longer battery than PC laptops
I just pay apple for insurance and they replace my battery at no additional cost. And if I ever spill water on the laptop or damage it in any other way that's my fault they replace it for a fraction of the actual cost of the thing.
friedman23··on Working for a Dating Website (2015)
What about a dating site that only charges the user once they stop visiting the site? Put some ads on it too so that if people try to game the system by visiting it often they get money from ad impressions.
friedman23··on Pornhub users in Louisiana now have to submit government ID to access the site
> Citations needed.

What citations are needed? This is obviously materially different than you finding some vhs that you can only watch at specific times when your parents aren't home. Children have unlimited access to every single type of pornography and can watch it whenever they are left alone in their room with a computer or phone.

edit: "Citations needed" is an extremely lazy way to respond to an argument that is extremely counterproductive and almost every time it's used it's done in bad faith to derail the conversation.

friedman23··on Pornhub users in Louisiana now have to submit government ID to access the site
Pornographic content is too accessible. It's impossible for the parents to police this, there will always be one kid with negligent parents that will expose other children to this crap. We are talking 10 year olds here, it's already happening.
friedman23··on Pornhub users in Louisiana now have to submit government ID to access the site
I agree with you. I think the response you are getting is from people that have not seen how kids are being exposed to porn at younger and younger ages. We are doing an insane social experiment on the next generation because this kind of access to sexual content has not existed for all of human history.
friedman23··on Pornhub users in Louisiana now have to submit government ID to access the site
I don't know about the implementation here but it's too easy for young people to access pornography. I know teachers and I hear horror stories of 10 year old boys being caught in the bathroom watching elderly porn. It just seems impossible for kids to grow up without the over sexualization of everything nowadays. Porn stars are becoming video game streamers because they know their target demographic is young teens. We are doing an insane social experiment with the next generation.
friedman23··on Why Google and Apple work to snuff out the mobile web
It's only not as good because web is purposefully crippled.
friedman23··on Calculus they won't teach you [video]
I agree, one book I recommend that does this for computing is "Code: The Hidden Language of Computer Hardware and Software"
friedman23··on Meta prohibited from using personal data for advertisement
> If nobody is willing to pay for your product, maybe it shouldn't exist?

Hm, so you think it's better for the world for poor people to not have access to information via tools like Google?

I think the fact that you need to use emotionally loaded language like spyware to make your argument really detracts from it.

friedman23··on Men Without Work (2016)
I never knew that, absolutely hilarious. I find that internet forums are just terrible all around. Moderating is an extremely important but thankless and unpaid job. So (with rare exception) the only people that do it are completely irrational and inept power hungry people with too much time on their hands. In the case of HN the reason moderation is so good is because Dang is actually paid from what I understand. But even on HN the mouth breathers learn the ins and outs of the system and know how to abuse flagging among other things.
friedman23··on Men Without Work (2016)
> Worker cooperatives exist and are perfectly functional and successful

Ha sure. Ok, which brand of socialism do you support and why? Socialism is a sad joke, socialists group under a banner that does not even exist in reality.

Socialism: social control of the means of production

What does that even mean in practice? Nobody knows. This is why socialists and communists always end up killing each other.

//

//

//

edit: because I'm getting rate limited because socialists like to flag posts they disagree with, my response to the post below:

> Yes, worker cooperatives exist and are successful. Mondragon[1] is probably the biggest and most well known

Small private corporations that are worker run under capitalism is a very unique definition of socialism. Socialism under the silly wikipedia definition you provided mandates social ownership of the means of production. For something to be considered socialist, property rights need to be abolished and "control" needs to be redistributed in some manner. Of course "control" is in quotes because under socialism nobody owns anything, "society" owns it. Workers don't really have control either because they can't choose to sell their control, that would obviously just be capitalism with extra steps.

Nobody ever actually explains the details of any of this. The communist manifesto gets close because Marx clearly understood that to steal from people you need to kill them but he never actually prescribes the details of running the damn thing after killing all the property owners.

> In other words, there are any number of ways social control can be constructed, and has been constructed. Some more successful than others

In other words you did not contradict anything I said.

> Social control through the state of large segments of the economy has been perfectly successful both in the US and in Europe.

Perfectly successful under what definition? Neither the US or Europe have complete social control of the means of production and the little control they do exert is widely known to be extremely wasteful and inefficient.

> Driven on a road? Congrats, you've benefited from social control of infrastructure

The roads are terrible and filled with pot holes in San Francisco. The sidewalks are covered in shit. The storm drains did not function when a small storm passed the city. Please don't tell me they need more money to fix those problems.

friedman23··on Men Without Work (2016)
How is capitalism the issue here? Under what system can people without ability to contribute magically gain the ability to contribute?

Capitalism means literally everything to everyone, it's absurd at this point.

← PreviousPage 2 of 34Next →