HNHacker News
TopNewBestAskShowJobs

Sinidir

153 karma · joined November 27, 2016

submissionscomments
Sinidir··on Reference count, don't garbage collect
>Because I've actually benchmarked it: https://quick-bench.com/q/ISEetAHOohv-GaEuYR-7MajJgTc 18.5 nanoseconds fits under no reasonable definition of "crazy expensive", not when a regular increment clocks in at 5.9 nanoseconds. And there is extremely few situations where you increment a reference count more than, like, 5 times. It's just not an issue.

Congratulations. You tested a construct meant for multicore/threading in a single threaded benchmark and then marvel at the low overhead.

Of course you will only start seeing the cost if there is actually contention to operate on the value between multiple threads running simultaniously. See.: https://travisdowns.github.io/blog/2020/07/06/concurrency-co...

Sinidir··on Reference count, don't garbage collect
>First off, this is not why Python has a GIL, but lets leave that aside. Atomic writes are more expensive than non-atomic ones, but they are not slow operations in the grand scheme of things. If you properly implement acquire-release semantics, they are not even that slow under high contention. Compare this to a GC which literally STOPS ALL THREADS, it's nothing.

This is actually part of why Python still has the GIL. A GILECTOMY was attempted and multithreaded atomic refcounting made things a lot slower (going up with the number of threads) and even other methods were not sufficient for performance.

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

Sinidir··on Saskatchewan, Ontario to roll out mini-nuclear reactors
Its not bunk. People are comparing two widely different things and not understanding the difference.

The price of $150 is capacity of a battery. If i want a battery that can store 4 kwh i pay $600.

The other number referencing $55/MWh is referencing levelized cost of storage. I have a a MWh but instead of using it right now i store it for 4 hours. Now this MWh costs its initial price + $55.

Apply this example to a KWh where i would pay $0.1 for it if i used it right now if i want to store it for 4 hours and use it later i have to add $55/1000 to the price or about $0.055. So a directly used KWh would cost me $0.1. One stored for 4 hours would cost me $0.15.

Hope that makes sense and explains these different numbers.

Sinidir··on Cheap, green hydrogen would be a breakthrough in clean energy
https://www.sciencedirect.com/science/article/pii/S187661021...

This is a nice paper on the different fuel cycles of hydrogen ammonia and methyl.

Roundtrip efficiencies for hydrogen and ammonia are both at about 30% plus. Don't know how high it could theoretically go.

Sinidir··on The computers are fast, but you don't know it
How does the whitespace hurt readability when basically every styleguide and linter in other languages indents code blocks?
Sinidir··on Nuclear is back on the table for a green future
Where are you getting that 20% number from?

https://www.irena.org/-/media/Files/IRENA/Agency/Publication...

https://www.sciencedirect.com/topics/engineering/round-trip-...

The round trip efficiency is 30% or more and rising with better electrolysis and reverse electrolysis being developed.

Sinidir··on Association between ADHD medication and depression: A 10-year follow-up
How much did you sleep before. I'm reading these kinds of threads and finding lots of similarities with my life. I generally sleep 10 hours a day and have trouble getting out of bed.
Sinidir··on Writing is a single-player game
I read the title as "Writing a single player game" and was utterly confused by this comment. Damn you brain!
Sinidir··on Ask HN: What game do you wish existed?
Huh? Natural Selection was insanely fun for me. Either as player or commander. Only reason i stopped playing was because the community shrank too much after a while. Most matches felt nicely balanced and enjoyable even if i lost.
Sinidir··on Ask HN: What game do you wish existed?
Natural Selection 1/2 is literally this. Space Marines vs Aliens and you have a commander and can build building, research tech, etc.
Sinidir··on Ask HN: What game do you wish existed?
This is kind of similar to what made Natural Selection 1/2 so fun as game. It was Space marines vs Aliens, but you also had a commander who could build a base and drop items. You had to defend resource extractors and advance your tech. A beautiful blend of Strategy game and first person shooter/biter.
Sinidir··on I spent two years launching tiny projects
General Question for people who do these tiny projects, which might make some money. Do you register a company for this? How do you deal with taxes if you made a small amount of money from them?
Sinidir··on Catalog of Elixir-specific code smells
I always wondered how hard it would be to have a simple inline feature for your editor to expand small function code on demand.

1. Statically for known function calls 2. For dynamic dispatch /pattern matching, run a test , record the actually executed code and then inline that.

Sinidir··on PikaPods – Instant Open Source App Hosting
How can you offer these prices? a 2GB ram 1 cpu app costs $2.87 approxmately a month. Thats a way lower than any vps provider yet you offer a managed solution which should add to the cost.
Sinidir··on Jeffrey Snower was originally demoted over PowerShell
use nitter.net instead.
Sinidir··on A first for Canada: New type of nuclear plant opening by 2028
Its actually around 70-80% efficient depending on method.

https://en.wikipedia.org/wiki/Electrolysis_of_water#Efficien...

Not that this changes the picture of hydrogen powered personal vehicles. Still the only viable option for grid level seasonal storage.

Sinidir··on Ask HN: Companies hiring for a 4-day workweek?
Any tips for starting self-employment? Always dreamed of doing that, atleast for a while. But trying to find clients seems the most daunting. Also can you give some insight into your work schedule and coordinating that with clients(in terms of flexibility)? Thank you.
Sinidir··on I won free load testing
Where did he make the claim that you should unconditionally not run go in production?
Sinidir··on You Should Compile Your Python and Here’s Why
That is hilarious.
Sinidir··on StarBook 14-inch
How does switching to a german keyboard add about 230 bucks to the price ????
Sinidir··on Sounding the alarm: How noise hurts the heart (2021)
My dream is to build some kind of app to actually give a resonable noise estimate of a place and warn against potential problems.

I also struggle a lot with noise pollution. Shity neighbours, random building noises in the dead of night, Buses that accelerate right in front of my window at 6 in the morning, etc.

Sinidir··on Design of This Website (2021)
Huh. I never considered text alignment like that. Mind => Blown.
Sinidir··on I need to stop being boring
Bingo!
Sinidir··on Two Vexing Problems in Functional Programming
atoms are containers that require no coordination so its a simple Compare and swap. There are Refs that require transactions and change of multiple Refs is coordinated in these transactions. WIth that Clojure has an implementation of Software Transaction Memory.
Sinidir··on Two Vexing Problems in Functional Programming
Creation of new versions of datastructures are done in log32(N) time in clojure. The performance even for frequent updates is fine.
Sinidir··on Two Vexing Problems in Functional Programming
"When a func­tional update on a child struc­ture occurs, the medi­ator is updated with the refer­ence to the new child. But all the parents still point at the same medi­ator".

This is literally atoms in clojure.

Sinidir··on The Only Unbreakable Law [video]
Yeah his claims about good and bad are too unconditional and generic. He always looks at it from his specific vantage point and then declares something categorically bad which ticks me off cause its so dogmatic and lacking of contextuality.
Sinidir··on Advanced Programming Languages (2009)
No he didn't. The article specifically talks about using Haskell for machine learning and natural language programming.
Sinidir··on LiveBeats: Building a social music app with Phoenix LiveView
The blog site keeps randomly scrolling by itself when i ahve darkreader on.
Sinidir··on How to Mislead with Facts
"I only believe in quotes that i doctored myself" dang.
← PreviousPage 2 of 4Next →