thesz

Joined 16 years ago

Karma
2,689
Submissions
1,825
Member since
Aug 2
The site I care about: http://thesz.livejournal.com (Russian)

I use "sergueyz" login on universally recognized google mail service.

View on Hacker News

Recent submissions

Comment · 11 hours ago
It is a dataflow Haskell processor! Apparently, without content-addressable memory.

And it has multithreading support.

Fascinating stuff.

Comment · 1 day ago
Haskell's type system is very powerful. I already provided an example of the linearly-typed monadic code, but there are examples of how to implement Rust-like borrow checking, etc.

Linear typing and borrow checking are all about environment manipulation. Introduction of linearly-typed object creates a unique (through the code) reference to that object in the environment and use of linearly-typed object removes that reference from the environment. Borrow checking can work similarly.

So abstract interpretation of the program implicitly uses state of environment and implicitly modifies it.

Such state monad with typed environment was possible in Haskell as early as 2009: https://blog.sigfpe.com/2009/02/beyond-monads.html

Sets of types (generalized records) were available in Haskell from 2004: https://okmij.org/ftp/Haskell/dependent-types.html#HList

Basically, it was possible to embed Rust-like language into Haskell from 2009 on, the ideas were all there.

The thesis that I continue to read is about dependencies. These dependencies control effects of the different parts of the program and one of the first more or less successful and practical way to control effects was monads in Haskell and, after that, monad transformers.

From my experience with Haskell, I more than love Software Transactional Memory, implemented as a monad without access to general I/O. You just cannot delete file before reaching consensus between different parts of program on which file to delete. Or, you can match on the state of different channels, where matching requirements may include the presence and/or absence of specific kinds of data, not only in the heads, but also in the channel as a whole. When I read about Go channels and their matching semantics I was greatly disappointed with them.

Comment · 1 day ago
Claude was definitely trained on the bzip3's source code. It can use similar modeling approach, etc, we are not talking about direct use of the code.

So, does Claude-writte BWTSorter use modeling approaches similar to bzip3?

Comment · 4 days ago
How does it compare to bzip3 [1]?

[1] https://github.com/iczelia/bzip3

Did this Claude-written free compressor take anything from bzip3?

Comment · 6 days ago
Comment · 10 days ago
Their other keys are also in 0..255 range. This is definitely not "really unlucky."

I guess they used (x `mod` 256) instead of (x `mod` (2^256)).

Comment · 12 days ago
Add debug logging, delete debug logging.
Comment · 12 days ago
Comment · 14 days ago
You also need a deduplication, because with simple copy on write you will have a copy for writing the same - change a byte in a file, get a copy, then change it back, get a duplicate.

Deduplication in ZFS needs 5G of RAM for 1TB of logical data - if you expect your agents to produce 2TB of data, you should provide 10G of RAM for deduplication.

Comment · 25 days ago
Comment · 26 days ago

  > Matrix multiplication is after all nothing but an aggregate sum over a cross join.
https://www.vldb.org/pvldb/vol13/p1919-wang.pdf

They converted linear algebra expressions into relational algebra expressions, optimized them using equality saturation and converted back into linear algebra. With some noticeable speedups.

They used relational algebra for optimization because relational algebra has canonical form - there is only one most optimal expression.

And, equality saturation is most efficiently implemented using generic join algorithm.

Comment · 26 days ago

  > 186 bytes of machine code
This is better (smaller) than Forth!
Comment · 26 days ago
I think you will like "Our Neural Chernobyl": https://lib.ru/STERLINGB/chernobyl.txt

(the link is a translation to Russian, I was unable to find the original text in English)

Also consider that toxoplasma changes rat's dopamine serum level to such extent that they stop fearing cats. The same happens with humans, changes in dopamine serum level are so profound that toxoplasma-infected people become more appealing than regular people.

Comment · 26 days ago
Endorphins make you happy as you are. Endorphins have sedative effect. Morphine is a similar substance and it is a sedative, all opioids are.

What makes one socialize is dopamine [1]: "Hypomania, manifesting with feelings of euphoria, omnipotence, or grandiosity are prone to appear in those moments when medication (dopaminergic medication - thesz) effects are at their maximum."

[1] https://en.wikipedia.org/wiki/Dopamine_dysregulation_syndrom...

This dopamine dysregulation occurs naturally in people with toxoplasmosis.

This kind of mistake - mistaking dopamine and endorphine, - strongly suggests a fake. I know of one such fake from the former employee of my friend, you can read his account here [2]. My friend was a lead of the "secret" laboratory (next to Kitay Gorod metro station in the center of Moscow, in an institute that needed no documents to enter) that researched how "psychics" and "healers" achieve their results.

[2] https://lit.lib.ru/t/torin_a/text_0100.shtml (it is in Russian, but language is not a barrier at all nowadays)

The laboratory researched what these "extrasensing people" do and found nothing - given very little training an ordinary men can do the same and even better. At the end of USSR, there was a string of visitors from USA there in the lab, and one of those visitors successfully persuaded US government to open similar research program, according to [2].

The fearmongering of "endorphin-producing bugs that make one socialize and spread" looks like, well, fearmongering to obtain funds for Big Pharma's government contracts, etc. It messes up two very different neurotransmitters, a mistake that real scientist would not make.

Comment · 1 month ago
Haha.

My son got caught trying to fix Windows installation on my wife work computer with bootable Linux Mint USB stick.

"Digital Naive," yes, of course.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton