gtrubetskoy

Joined 14 years ago

Karma
2,838
Submissions
522
Member since
Dec 28
View on Hacker News

Recent submissions

Comment · 2 years ago
Comment · 3 years ago
The original from July 2019 https://twitter.com/humblehack/status/1088982929940848647

$ echo -n 'The SHA256 for this sentence begins with seven, seven, f, zero, a, b, b and five.' | sha256sum 77f0abb54cd09ad7b654bd5e762d7be58e7daffd1a0da6a56f5135bd667856a3 -

Comment · 5 years ago
I forked Redis to create Thredis almost 9 years ago. Some notes on how it was implemented:

https://github.com/grisha/thredis/blob/master/README-THREDIS

Then I added SQLite to it, more details here:

http://thredis.org

This was all done mostly for fun, though I did use it in a an actual project for a while.

Comment · 6 years ago
Python becoming Tcl
Comment · 6 years ago
Comment · 6 years ago
I remember the days when having to switch between x86, ppc, sparc, etc was a thing (not to mention the many flavors of UN*X) and we survived. In fact I think it was more fun back before the x86/Linux server domination. Architecture diversity is good.
Comment · 6 years ago
Comment · 6 years ago
I wouldn't rank glucose above fats. As I understand it, it's not exactly a "shorter battery" than fat - it is simply a form of energy that is abundant in plant life, but fat is still a (much) "better battery".

The reason our body always favors burning glucose first is NOT because glucose is "better" but actually because it is an inferior type of fuel (it creates "pollution" and is difficult to burn - you can develop diabetes from too much of it) - so our evolved system tries to get rid of it first, while hanging on to the "good stuff" for as long as it can.

Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
My take on it is - just write for yourself. If, when you read it, it sounds like a good write up to you for whatever your own reasons are, that is all that's required. If no one else reads it, fine. But you might be surprised, a lot of other people may find it interesting as well :)
Comment · 6 years ago
I didn't :)
Comment · 6 years ago
Subinterpreters existed from the very early days in the C API and were key to the implementation of mod_python (which I wrote). So if you used mod_python, you used subinterpeters without realizing it.

http://modpython.org/live/current/doc-html/pythonapi.html#mu...

EDIT: And it looks like I had subinterpreters in the first released version in May 2000, so the initial git (formerly SVN) commit already had them https://github.com/grisha/mod_python/blob/9b211b7e8a65f1af4b...

EDIT2: Just noticed this comment:

  * Nov 1998 - support for multiple interpreters introduced.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton