Better HN
topnewbestaskshowjobs
Log inSign up

mont_tag

286 karma · joined Aug 8, 2024 (2y ago) · 69 submissions

Submissions

comment 6d ago · link · parent

From the article:

> Scads of other mathematical proofs and hypotheses have been proposed, which work only if one assumes that the Riemann hypothesis is true.

comment 3w ago · link · parent

FWIW, PyPy had ordered dict support before CPython.

Also the Jython devs said they would easily be able to support dict order.

comment 1mo ago · link · parent

Thank you HackerNews. I learned something new and will be using APSW for my next Sqlite project.

comment 1mo ago · link · parent

As a stargazer, I've long been annoyed by one particularly bright satellite. It seems to have a cycle of 29 1/2 days and covers about 1/2 degree of arc.

OMG, it is so bright that it blots out all but the brightest stars. Something needs to be done about this.

comment 5mo ago · link · parent

Knight Capital

comment 6mo ago · link · parent

> Why?

While it seems obvious that some students should be redirected to remedial classes, the evidence is that very few students made it past those courses. IOW, the obvious solution wasn't working.

Being an engineer, my instinct would be to fix those classes so that they did work. However, legislators think at a different level and reasoned that the remedial classes constituted a false promise that costs students dearly (time, money, hopes, and dreams).

comment 6mo ago · link · parent

You've done a nice job articulating why people support equity programs.

The sticking point is that there is a big difference between theory and practice. We end up with elimination of 8th grade algebra in SF, abandoning graduation requirements in Oregon, the Chicago teachers union tweeting that "testing is white supremacy", promoting kids before they have achieved grade level performance, political indoctrination in classrooms (both parties do this), dividing kids into identity groups (oppressors and oppressed), promotion of whole language learning over phonics, and active attacks on the concept of merit.

comment 7mo ago · link · parent

That sounds like what happened at Boeing.

comment 8mo ago · link · parent

If the service is free, you are the product :-)

comment 11mo ago · link · parent

Note that Python already offers MappingProxy that wraps a dictionary to hide mutating methods.

People hardly ever use this tool. That suggests that there isn't much of a need for a frozendict.

comment 1y ago · link · parent

All good suggestions. However, the last one should have also mentioned functools.cache and functools.lru_cache.

comment 1y ago · link · parent

Do you want to take advantage of having multiple cores?

* Processes do this right out of the box. * Threads only do this on Python's new GIL builds. * Async, not so much.

comment 1y ago · link · parent

History of women in the Python world: In 2006, the first two women were voted in as PSF fellows, Laura Creighton and Anna Martelli Ravenscroft. In 2008, there were two women on the PSF board, Gloria Willadsen and Allison Randal. The woman mentored by Guido was Emily Morehouse-Valcarcel. She is now on the steering committee but was not featured in the film. Less prominent in the documentary was Carol Willing who was on the initial steering committee. Also featured were Mariatta Wijaya and Lisa Roach-Carrier who were mentored by another developer.

comment 1y ago · link · parent

Crypto did pretty well during that timeframe. Likely, they didn't pivot hard enough to offset losses to the core business.

comment 1y ago · link · parent

Python's key-functions nicely encapsulate the whole process.

comment 1y ago · link · parent

One place where Visual development tools almost always win is in problem domains that are intrinsically visual (think CAD, form designers, etc)

comment 1y ago · link · parent

A notable exception is MS Access. It was a huge productivity win. It did not work well with version control but otherwise, it let developers rapidly develop and maintain moderate sized solutions to common business problems. It was also extensible with plain text code when needed.

comment 1y ago · link · parent

No, that is not the recommendation. People routinely and reliably inherit from dict.

The UserDict class is mostly defunct and is only still in the standard library because there were a few existing uses that were hard to replace (such as avoiding base class conflicts in multiple inheritance).

comment 1y ago · link · parent

> IMO it's not the recording of ideas that is thinking, but rather the act of putting thoughts into language.

I agree with you but that article itself says, "for example, handwriting can lead to widespread brain connectivity."

comment 1y ago · link · parent

Also shift in organizational investment away toward AI and away from earlier hotness.

comment 1y ago · link · parent

Grace Hopper technology: A well formed Python program shall define an ENVIRONMENT division that specifies the environment in which the program will be compiled and executed. It outlines the hardware and software dependencies. This division is crucial for making COBOL^H^H^H^H^HPython programs portable across different systems.

comment 1y ago · link · parent

> Scientists genetically engineer a lethal mosquito STD to combat malaria

Nothing could possibly go wrong.

comment 1y ago · link · parent

This makes me happy. It was such an obvious right thing to do, but it took so long to come to fruition.

Next, it would be great if published standards were freely available. It is astonishing to me that they are not.

comment 1y ago · link · parent

No, it would fail upstream before the template post-processing even begin.

The template object itself could not be formed because the each name must be a visible variable name.

This is the same error that you would get with an f-string that contained an undefined variable name.

comment 1y ago · link · parent

How does this Python docs example work with t-strings?

    cur.executemany("INSERT INTO movie VALUES(?, ?, ?)", data)
Can SQLite3 cache the query as it does now?

comment 1y ago · link · parent

ISTM software engineers have been living in a privileged and elite world. They are then utterly shocked to be treated like employees are treated elsewhere.

Pretty much anywhere if you are let go, your email access and physical access are cut off immediately. Start-ups do this all the time as funding gets tight or there is a need to pivot.

I get that this sucks (and have been on the both the dishing out side of this and the receiving end of it multiple times). It is a fact of life. It would be more mature to move on rather than blog about how you feel wronged by your former employer. The next employer may see this post and reason that it is unsafe to hire this person because they feel a need to damage the company's reputation on the way out (for Google, there isn't much risk here, but for smaller companies, threats to the reputation matter).

comment 1y ago · link · parent

> Even the JS standard library struggles with this. You just have to remember that .sort() modifies the array in place

ISTM that there are almost always some kinds of mutable data structures present in non-trivial programs. And outside of the program, you have databases to directories of files that get mutated by users or other parts of a program. I think this is just a fact of life.

123