Better HN
topnewbestaskshowjobs
Log inSign up

co_dh

89 karma · joined Dec 31, 2013 (12y ago) · 92 submissions

Submissions

comment 6mo ago · link · parent

I used Claude that created a terminal based table viewer from rust first, to lean , and finally to Haskell. https://github.com/co-dh/tv-hask/tree/main

I give up rust because it’s not functional enough. There aren’t many things Claude can prove about a table viewer, and Haskell fits very well, and have enough libraries. Claude is pretty good at Haskell. I barely write Haskell before but I do know monad.

comment 1y ago · link · parent

I have to warning everyone: Windows terminal with true color , possibly with tmux, is very slow. There is a half second delay from key press to response. I am in a vdi. Your miles varies.

comment 1y ago · link · parent

But why do you need serialization? Because the data structure on disk is not the same as in memory. Arthur Whitney's k/q/kdb+ solved this problem by making them the same. An array has the same format in memory and on disk, so there is no serialization, and even better, you can mmap files into memory, so you don't need cache!

He also removed the capability to define a structure, and force you to use dictionary(structure) of array, instead of array of structure.

comment 3y ago · link · parent

At this price(360), I may want to try glove80.

comment 3y ago · link · parent

In kdb+/q, it is only 1 character ~

comment 3y ago · link · parent

I wake up.

comment 3y ago · link · parent

Any language with repl can have it . Python for example

comment 3y ago · link · parent

A single threaded OS. I remember that sometimes I launched a slow process in emacs, and then can do nothing but wait.

comment 3y ago · link · parent

What is DDD?

comment 3y ago · link · parent

Q/kdb, it is practical, and you can find a good pay job with it.

comment 3y ago · link · parent

Group is actually like inverse a mapping. Given an array A which map index to value, group A map value to index. A common idiom is: desc count each group A , which list most frequent element first

comment 3y ago · link · parent

https://code.kx.com/q/ref/

comment 3y ago · link · parent

In q/kdb. iPhone replaced q with a. Sorry

comment 3y ago · link · parent

I am happily programming in a for 6 years now, and will not give it up

comment 3y ago · link · parent

Me too

comment 3y ago · link · parent

48 , and feel smarter than before

comment 3y ago · link · parent

Sleep, exercise, chess

comment 4y ago · link · parent

This is how my money get wasted.

comment 4y ago · link · parent

I put semicolons at the beginning of line.

comment 4y ago · link · parent

Human makes a lot of inconsistent thing: We usually think the 1st floor, and the basement as 1st underground floor ( -1), but the floor jumps from 1 to -1!

Also, the time jump from 11AM to 12PM to 1PM! So I think more human friendly sometimes means more confusing.

comment 4y ago · link · parent

Is this the reason of global warming?

comment 4y ago · link · parent

https://arxiv.org/abs/1803.05316

comment 4y ago · link · parent

The unix command is a module system without import, and is very convenient.

It is only possible when 1) you have very simple data structure. line of text in this case. 2) each command has a lot of options, thus reduces the number of commands.

comment 4y ago · link · parent

I think you might like Color Forth, which is another rabbit hole, but interesting.

comment 4y ago · link · parent

github? I like the idea of using Nim to write a kernel, and is curious on what the code looks like. Especially, how do you avoid malloc?

comment 4y ago · link · parent

I still prefer kakoune, and using sh as scripting language for it's simplicity.

comment 5y ago · link · parent

In q/kdb, bracket for unary function application is optional, that is, f[x] is the same as f x. I found it very convenient after a while, and wish other language follows. It is very convenient to write f g h x, than f[g[h[x]]]

comment 5y ago · link · parent

Also, the manual of macport is beautiful, as well as the port file.

comment 5y ago · link · parent

    I'm wondering if the author can put the cost of run the query, and cost of buy/rent the hardware, software in the summery page.
1234