HNHacker News
TopNewBestAskShowJobs

zohch

215 karma · joined July 6, 2021

submissionscomments
zohch··on The illustrated guide to a Ph.D. (2010)
> The master/slave duality is certainly an important notion to be worked through in the US.

I have never seen a slave branch in Git, have you?

zohch··on The illustrated guide to a Ph.D. (2010)
It was not coupled with something called slave in git either.
zohch··on The illustrated guide to a Ph.D. (2010)
Like really, how hard is it to rename a degree, get with the times people, it's 2021.
zohch··on Open-Source Contributors Worth Sponsoring
Golang world? I mean they congratulate themselves on not having generics and not having absolute value functions because everyone can just write the function themselves.
zohch··on Expectations for generics in Go 1.18
> This attitude/mindset seems so petty and disappointing.

True, but not as disappointing as the attitude of the go language creators and maintainers.

zohch··on GitHub Copilot available for JetBrains and Neovim
To make it faster to pump out go which is maybe > 50 noise with it's poor language features and it's anemic standard library that does not even have abs.
zohch··on PiBox Mini – Modular Raspberry Pi Storage Server
Would not mind a link to some examples, but I guess you are right. Though maybe total cost will be higher though I have not calculated so maybe not.
zohch··on After the pandemic, we can’t go back to sleep (2020)
The people shouting loudest about how bad everything is are the people who benefit most from things not getting better. So it is hardly surprising that some governments (e.g. US) jump from crisis to crisis.
zohch··on After the pandemic, we can’t go back to sleep (2020)
> The current system created artificial scarcity

The current system has been responsible for creating actual abundance that has vastly improved the living conditions of the vast majority of people. Scarcity is the default state, not artificial.

zohch··on Free Returns Are Complicated, Laborious, and Gross
I actually really don't get why anyone would buy anything from Amazon unless they have no other choice. Their site is really the worst.
zohch··on Faster Python with Guido van Rossum
> any shared memory or IPC between the workers is up to you.

There is this:

- https://docs.python.org/3/library/multiprocessing.shared_mem...

- https://docs.python.org/3/library/queue.html

- https://docs.python.org/3.8/library/multiprocessing.html#mul...

- https://docs.python.org/3.8/library/multiprocessing.html#mul...

> It's harder if you want to do something different where you want threaded workflows with synchronized/protected like constructs that folks might be familiar with from say Java.

There is this:

- https://docs.python.org/3/library/threading.html - which you can use as a context manager (i.e. `with lock`)

zohch··on Faster Python with Guido van Rossum
> I've seen the curve and the pain it's caused, and would never use it for any code that needs to be performant or actively developed on the multi-month or year timescale

Typed python is safer and more maintainable than Go. Slow as a dog, but it's really a hard choice when choosing performance and a bad type system with a half baked language vs a good language with a good type system that is a bit of a drag on performance.

And you really don't have to go all in typing. I have worked on gradually typing code bases and it pays off from day one almost.

zohch··on Can Nuclear Fusion Put the Brakes on Climate Change?
> Which explains why grid-scale hydropower, solar power, wind power, etc. have all failed, new construction has all but ceased, and existing installations are being closed down...?

This is news to me, this is not the case where I am, but sucks for you, just goes to show that people don't want to solve the problem. Where I am hydro power works well and most of our power comes from that, but that does not change the fact that many people fight as hard as they can to stop new hydro from being constructed.

zohch··on Can Nuclear Fusion Put the Brakes on Climate Change?
> Sadly, nuclear fission power that works at scale - both on the technology and social sides - seems to be mostly beyond the capabilities of current human societies.

Well yes, because people who benefit from climate change do their utmost to ensure this is the case.

zohch··on Can Nuclear Fusion Put the Brakes on Climate Change?
> All good qualities, but there's one problem - cost and time to rollout.

Well those are only problems because the people who benefit from climate change, like politicians, UN and organizations like extinction rebellion, do not want the problem solved.

zohch··on Can Nuclear Fusion Put the Brakes on Climate Change?
Why would any government or international organization want to put the brakes on Climate change if it is the single biggest reason to increase their power? Do people think it's coincidental that the people who shriek loudest about climate change also shriek loudest about nuclear? And the thing is, I know whoever wrote this drivel for the new yorker knows better.
zohch··on Python 3.11: “Zero cost” exception handling
> In particular, this is not idiomatic python

According to this article, I think his case is rather weak. The conclusion does not seem to follow from the premise to me.

zohch··on Python 3.11: “Zero cost” exception handling
Thanks for the clarification, I have actually seen this now that I think of it and this indeed is closer to control flow than error flow.
zohch··on Clean environment could become U.N. human right
Russia does not do anything of consequence without China's consent.
zohch··on Clean environment could become U.N. human right
> Britain is making rather poor choices lately

Not compared to the U.N.

zohch··on Python 3.11: “Zero cost” exception handling
To me sending wrong arguments is an error condition, not control flow, see this for more info: https://softwareengineering.stackexchange.com/questions/1892...
zohch··on Clean environment could become U.N. human right
> So China just almost caught up to Europe as far as CO2 emissions per capita goes and is nowhere close to the US whilst putting measures to reverse the trend

I said clean environment. Not sure why you are changing the subject, but lets see:

https://ourworldindata.org/plastic-pollution#top-20-river-so...

> Geographically we see that the majority of the most polluting rivers are located in Asia. River Yangtze, the top polluting river, had an input of approximately 333,000 tonnes in 2015 — over 4 percent of annual ocean plastic pollution.

> Often this involves the whole blame-shifting

Okay but then just don't shift the blame from countries that threatens a clean environment to countries that do not.

zohch··on Python 3.11: “Zero cost” exception handling
But that would not be for control flow.
zohch··on Python 3.11: “Zero cost” exception handling
> Right, but the better way to actually write this is something like

Maybe for some cases, but it does not do the exact same thing, see the comment here: https://stackoverflow.com/a/29455777/1598080

And if we are talking about idiomatic, I think it is maybe a stretch to count this as idiomatic for Python, but given it is documented for Django I think it is fair to call it idiomatic for Django.

zohch··on Python 3.11: “Zero cost” exception handling
TIL, thanks for explaining, indeed would have expected exceptions to be pretty cheap also if I knew this.
zohch··on Python 3.11: “Zero cost” exception handling
> I've felt weird using exceptions like that

How should they be used instead? Maybe I don't understand what you mean by "idiomatic control flow uses exceptions" - could you give an example. Maybe there is some use of exceptions that I'm not quite familiar with in Python.

zohch··on Clean environment could become U.N. human right
How does china building nuclear imply that they are not ignoring climate change? They could recognize that nuclear is a better source of power than coal, which most people would, and still not give a damn about the environment and/or climate change.
zohch··on Clean environment could become U.N. human right
> This is unhelpful whataboutery. China isn't directly relevant.

It is. Because it is one of the biggest threats to human rights and to a clean environment. If UN can't tackle China, they are feckless, but of course we all know this. This is a stick to beat the west with while China and Russia and the new axis of evil get to keep running rough-shot over the rest of the world.

zohch··on What Happened to Facebook, Instagram, and WhatsApp?
> The outage has pretty much buried that story, and perhaps more importantly, stopped its spread on FB networks.

Buried the news ... which is basically as noteworthy the news that water is still wet. What exactly did she reveal that was not known before, or is it somehow newsworthy that Facebook also knew what everyone else knew? The real news ought to be how that managed to make it to the headlines.

zohch··on Things Go needs more than generics
> Universal Nil: no. we need less nil not more. Nil-safe types would be a better answer.

Everyone needs optional values, due to Go's poor design the closest to this is to use nil.

← PreviousPage 3 of 5Next →