HN user

mharig

153 karma
Posts4
Comments354
View on HN

Can’t we just store some data on disk and read / write from it when we need to? (Spoiler: no.)

I disagree. SQLite does a good job in uniting the 2 worlds: complex SQL queries with excellent data consistency and simple file(s). Although SQLite is for sure not the one size fits all solution.

Continental Europeans have very bad experiences with British tourists. I really like Brits, but just if they stay on their Islands. And I am quite sure I get support from around a 100 Million dead guys from India.

Turks are a very big community (I guess more than 20 Million counting all generations) in Germany with a lot of not well adapted folk.

In my 2500 souls german home village live people from more than 40 nations. I never heard negative comments about them from one of the natives. But the shithole you live in of course may vary.

If an app needs a DB anyway, has ZeroMQ then advantages over a DB based MQ, like PostgreSQL LISTEN/NOTIFY or SQLite with update_hook?

Did anybody compare throughput/latency for these approaches? Edit: ... for the basic zmq patterns PUB/SUB, REQ/REP, Client/Server

My 2 €cents from a limited and outdated experience with visual programming tools:

1. Screens have limited size and resolution, and the limits get hit rather fast. The problem can be pushed away by zooming, by maybe an order of magnitude, but for a long living project growing in size and complexity, it will not be enough.

2. In text, near everything is just a grep (fzf,...) away. With the power of regex, if needed. Do the no-code folks nowadays implement a equally powerful search functionality? I had very bad experience with this.

3. Debugging: although the limited possibilities of plugging graphical items together is like an enhanced strict type safety, I'm sure that errors somehow happen. How is the debugging implemented in the visual tools?

4. To store/restore the visual model, the tool developer needs to develop a binary/textual/SQL/... representation and unique source of truth for it. I think the step from that to a good textual DSL is smaller than to a GUI. And the user can more or less effortless use all the powerful tools already developed for shells, IDEs, editors, ....

So in my opinion most of the visual programming things are wasted time and wasted effort.

Just talking about the types:

I found them more helpful than the Big Five. But there is definitively missing "Type 0: Ape: I follow".

And I do not think that a person fits just one type. They are more, like the Big Five, traits with a spectrum.

"Something seems to have happened around 50,000 years ago, shortly after which all other species of human such as Neanderthals and the so-called Hobbit died out."

Isn't the current estimate, that Neanderhals and Danisovans died out around 45000 years ago? Or does he refer only to the region of the cave? And the Homo floresiensis died out 10000 years ago (or 100 years ago, or he still exists, if some Anthropologists are right).

And what I do not understand about the cave archeology: nobody who lives as a nomadic hunter & gatherer lives in a cave. The climate inside is near unbearable if you are accustomed to free air. Maybe one can stay a little time in the mouth of a cave. When the weather conditions outside are as ugly as they can get. Or if the population density got so bad, that an easy to defend place is necessary. The findings IMO are more probable a result of population dynamics than brain development.

You forgot one thing: data entry. It is far more convenient to type tabular data in a spreadsheet app than in a REPL. I use it for simple SQL data, too. As Python coder I use visidata. Provides also fast and convenient aggregations etc.

And, btw, if you search for "distraction free writing",you will find that even some non-coders use vim.

Thanks for your kind words. Could you please show me the sentence or paragraph in the guidelines where 'post like this' is mentioned? Or must I assume that because this is an anglosaxon site, automatically the political correctness illness takes effect?

I live now for a decade in a country where traffic lights are just a non-binding recommendation, and I never got almost killed or even hurt for that. You just have to drive slowly and watch and communicate with the other traffic participants. In some cases, morons are made, not born.

1. Pickling is, as already mentioned by a cocommenter, slow. Do not use it.

2. Do not use loops, use itertools. (Python 3.12 got a nice 'batched' function, btw.)

3. Preallocate memory, where possible.

4. multiprocessing.shared_memory may help.

5. Something like cython may help.

6. Combination of multiprocessing with asyncio (or multithreading) may help.

7. memmap file access might help.

You see, you have a lot of options before you need to learn another language.

You didn't get the gist of the article: many constraints are artificial or plain mental. And you have to think outside the worn trousers to determine where that is the case.