News for hackers. Stuff that matters.

aroberge

I, and I suspect many other people here, prefer to live in countries where there are no neighbourhood associations that can dictate the look of your house, what colour of paint you must use, etc.
> Understanding never was the goal, results were.

Understanding is the goal, both at an individual level and at a societal level. If no one can understand it, no one can teach it and it can't be used to progress.

> Python is quickly turning into a crowded keyword junkyard

* Javascript (ECMAScript) has 63 keywords. * Rust has 50 keywords. * Java has 51 keywords + 17 contextually reserved words, for a total of 68. * Python has now 36 keywords + 4 'soft' keywords, for a total of 40. * Go has 25 keywords.

> The workers were breaking the laws, ...

How sure are we of that? Did we really get this information from trustworthy sources?

Re:Canada euthanasia now accounts for nearly one in 20 deaths on Friday December 13, 2024 @02:19PM (#42411472)
I accept your suffering if you choose so. If I knew you personally, I would even do all I could to help and comfort you. However, I cannot condone you imposing suffering on others in the name of YOUR religion.
Re:The Birthday Paradox Experiment on Friday November 22, 2024 @12:46PM (#42215849)
It is not that someone else shares YOUR birthday: it is that two people (among those 23) will have the same birthday.
He did mention he lives in France ...
Re:PEP 762 – REPL-acing the default REPL on Wednesday October 16, 2024 @05:05AM (#41857047)
If I remember correctly, unlike the standard Python interpreter, ptpython does not support the replacement of sys.excepthook by a custom one. I know that I look at seeing if I could have it support friendly-traceback but couldn't.
If they are not located in the US, why would they?
In my experience (in a different field), it is common for researchers to acknowledge the source of their funding. In particular, researchers are keen to acknowledge funding from government grants, as this is perceived to be helpful in applying for future research grants.

I glanced through the paper and I could not find any mention indicating who funded that study.

I'm also very sceptical of single studies that support the status quo for very large industries -- even more so when there is no indication of who funded the study.

Re:PyPI Was Subpoenaed on Thursday May 25, 2023 @08:15AM (#36069776)
This is simply not true.
Tooling is a single screwdriver. There is no "unused bits" clutter, and no need to pay someone to replace a part.
Re:Is Bing too belligerent? Microsoft looks to tame AI chatbot on Saturday February 18, 2023 @10:00AM (#34847362)
> How bad could it be?

It could suggest that someone vulnerable commit suicide and have that user do it.

Re:Ask HN: Why do negative crypto articles dominate on HN? on Wednesday April 13, 2022 @05:53PM (#31020766)
> yet didn't the truckers get robbed by the government?

No.

In the end, a few accounts were proactively and temporarily frozen by banks acting on their own, which they could (possibly would) have done due to fintrac [1] requirements.

[1] https://www.fintrac-canafe.gc.ca/intro-eng

Re:A new tool for finding dark matter digs up nothing on Wednesday March 23, 2022 @11:57AM (#30779816)
No.

"Dark" matter refers to something that does not interact at all with photons - not that it scatters too little light.

Re:How light is a neutrino? The answer is closer than ever on Tuesday February 15, 2022 @06:59PM (#30354652)
electron volts is a unit of energy. Using E = mc^2, one expresses masses in the equivalent energy quantity. It turns out that electron-volts is a convenient scale for the (energy equivalent) mass for elementary particles -- much better than trying to express the mass in kilograms.
Re:Google Search Is Dying on Tuesday February 15, 2022 @11:32AM (#30348701)
Up until a month ago, when I searched Youtube using the "latest" filter, I could reliably get the latest videos uploaded that were relevant to the search terms. Now, it shows a couple of recently uploaded videos followed by many which are for weeks ago, while I know that many more had been uploaded in the recent days.
44% down since November is a bit more than fluctuation I would think. Still, I agree that today's drop should not be described as a crash.
Re:Things I like about Python on Monday January 17, 2022 @03:49PM (#29971554)
Re:Ask HN: How do you teach 9-year old to code? on Thursday January 13, 2022 @07:09PM (#29928838)
A modern version using Python is https://reeborg.ca/reeborg.html
Re:IPython 8.0 on Wednesday January 12, 2022 @12:31PM (#29909996)
One way might be to do like what IDLE does (I think) which is to essentially print the traceback to a string and extract the information.

An alternative is to use https://friendly-traceback.github.io/docs/index.html which gets even more information than Python 3.10 does and is compatible with IPython/Jupyter.

Re:Willingness to look stupid on Thursday October 21, 2021 @03:04PM (#28949399)
Perhaps a better approach is to click on "favorite" at the top. I personally find it easier than trying to go through my comments history.
Re:Python 3.11 on Monday October 04, 2021 @06:17AM (#28744984)
You can already get this information for Python 3.6+ with https://friendly-traceback.github.io/docs/index.html
I really like the look of it! If it were possible to easily turn it into something that could be shared privately and live for collaboration with other people, it would be perfect.
Imagine a spherical cyclist ;-) Mass scales like the cube of its radius. Surface area (air resistance) scales like the square of the radius. As the radius (mass) increases, the air resistance becomes relatively less important.
Re:Why is lumber so expensive right now? on Monday June 14, 2021 @12:23PM (#27504536)
If all this were true, there would be no reason for the U.S. to want to double tariffs on Canadian lumber: https://markets.businessinsider.com/news/stocks/lumber-price...

This is purely protectionism, and keeps lumber prices artificially high. (Mind you, the reverse is true in the dairy industry with the trade barriers that Canada imposes.)

Re:You use more open source software than you think on Thursday June 10, 2021 @08:17AM (#27459770)
I write programs as a hobby. For most of my career, I have been teaching Math and Physics courses. The whole point of teaching is to get someone to learn something and use it as they see fit, with no constraint imposed upon them. I view the code I write the same way: if anyone finds something useful in it, I want them to be free to use it without constraint.

I write with other humans in mind, not companies.

I occasionally like to read other people's code to learn. However, in order to avoid any problems, this means that I stay away (much to my regret) from reading any GPL licensed code, no matter how interesting the project might look to me.

I admit to have been occasionally disappointed in the past when large parts of some of my work were plagiarized with no attribution (including by one commercial venture) ... but I prefer for my work to be free of barriers so that anyone interested can either learn from it or (more likely) get in touch with me with suggestions as to how to improve upon it.

Older »