HNHacker News
TopNewBestAskShowJobs

tkhattra

2,073 karma · joined July 11, 2015

taj <dot> khattra <at> gmail <dot> com
submissionscomments
tkhattra··on Querying Postgres Tables Directly from DuckDB
one thing to be aware of is that duckdb doesn't currently allow concurrent readers and writers (unlike sqlite). depending on your use case, that might be a showstopper.
tkhattra··on Introduction to the Theory of Programming Languages (1991)
[1] is a particular one regarding specification languages and types. its background description about a "rabidly pro-types" referee is quite interesting...

[1] http://lamport.azurewebsites.net/pubs/pubs.html#lamport-type...

tkhattra··on Reducing logging cost by two orders of magnitude using CLP
the paper mentions that CLP comes with a default set of schemas, but you can also provide your own rules for better compression and faster search
tkhattra··on Lua, a Misunderstood Language (2021)
sorry, i'm not familiar with Sol. might be worth inquiring on the lua mailing list
tkhattra··on Lua, a Misunderstood Language (2021)
i don't think that's true - lua stores sparse arrays efficiently. the table above should only have 2 slots allocated. see [1] or [4] for details on how lua implements sparse arrays.

[1] https://cacm.acm.org/magazines/2018/11/232214-a-look-at-the-... [2] http://www.lua.org/doc/jucs05.pdf

tkhattra··on Brian Kernighan adds Unicode support to Awk
i think Peter Weinberger is still writing code at google...
tkhattra··on Reference count, don't garbage collect
In the Erlang VM, each Erlang "process" has its own garbage collected heap [1]. There's also an ETS module for more efficiently storing and sharing large amounts of data, but data stored in ETS is not automatically garbage collected [2].

[1] https://www.erlang.org/doc/apps/erts/garbagecollection [2] https://www.erlang.org/doc/man/ets.html

tkhattra··on AT&T lawyer stopped Plan 9 release CD with songs by Lou Reed, Debbie Harry
see this 1995 Wired interview with ken thompson - https://www.wired.com/1995/08/thompson-4/.
tkhattra··on New(ish) command line tools
pcstat and vmtouch (page cache statistics and control)

https://github.com/tobert/pcstat https://hoytech.com/vmtouch/

tkhattra··on Paxos
Re: "proving it works", in a previous interview Lamport said that some folks measure simplicity by showing something to people and they say whether or not they understand it, while he measures simplicity by showing something to people and they can prove it's correct.
tkhattra··on A single line of code made a 24-core server slower than a laptop
c2c stands for cache-2-cache.

perf-c2c allows you to measure cacheline contention - see https://man7.org/linux/man-pages/man1/perf-c2c.1.html and https://joemario.github.io/blog/2016/09/01/c2c-blog/.

tkhattra··on Why V7 Unix matters so much
TLI/XTI are from AT&T SVR3/SVR4, not Research Unix (V8, V9, V10). dmr's V8 streams were the basis for AT&T SVR3/SVR4 STREAMS (all caps!), but quite a bit simpler: https://en.wikipedia.org/wiki/STREAMS.
tkhattra··on A 100LOC C impl of memset, that is faster than glibc's
just make sure it's not "overly optimized" - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189 (in this case it was gcc's builtin memcmp that was broken, not glibc's) :)
tkhattra··on QEMU Internals
Hardware and Software Support for Virtualization Synthesis Lectures on Computer Architecture (2017)

https://www.morganclaypool.com/doi/abs/10.2200/S00754ED1V01Y...

Bringing Virtualization to the x86 Architecture with the Original VMware Workstation (2012)

https://dl.acm.org/doi/abs/10.1145/2382553.2382554

tkhattra··on How to implement a hash table in C
yes, set also. go's map implementation uses this technique - allocate a new array of buckets and gradually migrate from old to new buckets (i think it does the migration during set and delete only, not get).
tkhattra··on How you could have come up with Paxos yourself
I think it was Mike Burrows, but I can't remember where I heard or read that.
tkhattra··on Ask HN: What are some great posts or articles about history of computing?
The Elements of Networking Style, by Michael Padlipsky - an (extremely!) opinionated critique of the OSI model vs the Arpanet (TCP/IP) model.
← PreviousPage 2 of 2