HNHacker News
TopNewBestAskShowJobs

bakul

647 karma · joined July 29, 2013

submissionscomments
bakul··on 4.15Gbps Ethernet on the Raspberry Pi Compute Module 4
What is the limit on how much bandwidth you can push through on this board?

Have you tried SCSI PCI cards? I am thinking CM4 will make a good platform for my old SCSI based SS4000 scanner!

bakul··on Raspberry Pi 400 Desktop PC
Have you tried the coffee spilling test on it yet?
bakul··on How to count every language in India (2018)
Gujarati has its own script, fairly similar to Devanagari but without the horizontal bar above letters and a few more changes. Marathi uses Devanagari.

I believe both Urdu and Hindi came from Hindustani which was derived from Khari Boli.

bakul··on 2.1M of the oldest Usenet posts are now online for anyone to read
:-)
bakul··on s7 – Scheme implementation intended as extension language for other applications
Note that the original version of s9fes is to be found at Nils M Holm's site https://t3x.org/s9fes/index.html

My copy has a few plan9 specific extensions. Though more is is needed for anything like building a user level filesystem. I track Nils' original version on the t3x.org git branch.

bakul··on The benefits of note-taking by hand
Note taking by hand implies making your hand draw the right shapes in the right sequence (& "verifying" them by reading) so in effect more of your brain in involved in actual processing. This may have a larger effect than reframing in your own words? [Speculation as I rarely took notes. Even the process of note taking distracted me!]
bakul··on Vitamin D, part 3 – The Evidence
Have there been any studies that test if the absorption of Vitamin D (from supplements) is influenced by disease compared to healthy people?
bakul··on xMEMS announces the first monolithic MEMS speaker
The main similarity is that they are both voltage modulated capacitive devices.
bakul··on xMEMS announces the first monolithic MEMS speaker
Reminds me of electrostatic loudspeakers.
bakul··on UASP makes Raspberry Pi 4 disk IO 50% faster
This is the PCI express driver for BCM2711. Good to see this but the UAS support would be elsewhere! Either in the umass driver or a new uas driver (just a guess as I am unfamiliar with the USB related kernel code).
bakul··on UASP makes Raspberry Pi 4 disk IO 50% faster
FreeBSD doesn't support UASP (protocol id 98). AFAIK neither do the other three BSDs.
bakul··on Six eBay executives and employees charged over alleged cyberstalking campaign
> But who on earth could have thought that morals notwithstanding it was even a vaguely sensible thing to do

They should be criticized for their morals, not their stupidity!

bakul··on Zoom closes account of U.S.-based Chinese activist after Tiananmen event
If it works well enough, it would be a fine choice to connect with your friends/colleagues while you are stuck at home due to the corona virus. A few years down the road there will be new products!
bakul··on The 10,000,000,000th Prime Number (1994)
Some times it is just curiosity. Our "monkey mind" can't resist such challenges!
bakul··on Rob Pike interview
> Go was originally envisioned as a systems programming language. It was often called "a better C". This exposed Rob Pike's lack of experience in the area (IMHO) because anyone who had done any systems programming at all knew that garbage collection made any systems language a nonstarter.

You don't know what you are talking about. Someone who has written operating systems, windowing systems, editors, many many tools & library functions, and well regarded books on programming doesn't exactly lack systems programming experience.

bakul··on Japan to fund firms to shift production out of China
You forgot: 5) Rich nations hoovering up all coronavirus related supplies leaving poor nations precious little.

https://www.nytimes.com/2020/04/09/world/coronavirus-equipme...

"Scientists in Africa and Latin America have been told by manufacturers that orders for vital testing kits cannot be filled for months, because the supply chain is in upheaval and almost everything they produce is going to America or Europe."

bakul··on LibraryThing Is Now Free to All
Ditto. [We seem to have about 10% of our listed books in common!]
bakul··on Man built a bunker under Hampstead Heath and lived in it for two years
Yeah, I too thought of Rouge Male. There is a 1976 movie of it starring Peter O'Toole worth watching. On Amazon Prime.
bakul··on Coronavirus: an email to my family
Here is an interesting comparison of mortality rate by age for SARS-Cov-2, 1918 'flu and seasonal 'flu:

https://raw.githubusercontent.com/jbloom/CoV_vs_flu_CFR/mast...

Some context:

https://twitter.com/petrakle/status/1234587264904318978

This is based on data published so far.

bakul··on Miranda released as free software
You can write code in a functional programming style in k/j/apl, the same as in Scheme etc., but they are imperative languages.
bakul··on Miranda released as free software
I learned about Miranda from the appendix of "The Implementation of Functional Programming Languages" 1987 book by Simon Peyton Jones (IIRC one can find a PDF copy online). I liked it a lot though I had no access to its implementation. Glad to know it is now available. Its implementation is small by today's standards!
bakul··on Mozilla’s DNS over HTTPs
the irony is that almost all of the smart devices use linux....
bakul··on Launch HN: Motion (YC W20) – defense against online distractions and addictions
use git to track /etc/hosts changes and you can get some stats out as to how well it works for you over time, or recognize patterns!
bakul··on How to grip a pen?
I have always used the dynamic tripod grip (the same grip shown in Escher’s “Drawing Hands” drawing). I am right-handed but I write “away” from me, at a 60° angle or more. I wonder how common this is. While writing with the Apple “pencil” on the iPad, I typically have to use the orientation lock! Some apps such as Goodnotes allow you to control the angle but not Apple’s own Notes.
bakul··on Threads Are a Bad Idea for Most Purposes (1995) [pdf]
H/W components don't share state, which is why H/W parallelism easier. Where they do interact with each other, we have to either design fully async logic or worry about metastability. In contrast all kernels are basically all about sharing state. Even in user code and even when, a language such as Go provides channels, a lot of people seem to use shared state (and mutexes and locks).

I am curious as to how your h/w experience makes it easier hacking on the linux kernel....

bakul··on ngn/k, an AGPL K interpreter
I just noticed two missing defines. Sorry about that. Fixed below.

I did some testing and seems like this generates much less code at least with clang (with -O3 -fomit-frame-pointer) than geocar's much briefer solution!

  #define VA_NUM_ARGS(...) \
    VA_NUM_ARGS_IMPL(__VA_ARGS__,5,4,3,2,1)
  #define VA_NUM_ARGS_IMPL(_1,_2,_3,_4,_5,N,...) N
  #define mkmacro(func, ...) \
    mkmacro_(func, VA_NUM_ARGS(__VA_ARGS__))
  #define mkmacro_(func, nargs) mkmacro__(func, nargs)
  #define mkmacro__(func, nargs) func ## nargs

  #define DO(...) mkmacro(DO, __VA_ARGS__)(__VA_ARGS__)
  #define DO1(n) for(I i=0;i<(n); i++)
  #define DO2(m,n) DO1(m) for(I j=0;j<(n);j++)
  #define DO3(l,m,n) DO2(l,m) for(I k=0;k<(n);k++)
bakul··on ngn/k, an AGPL K interpreter
Clever use of `__VA_ARGS__`! Does gcc remove `_a` as well? Well, may be it was just my implementation:

  #define mkmacro(func, ...) mkmacro_(func, VA_NUM_ARGS(__VA_ARGS__))
  #define mkmacro_(func, nargs) mkmacro__(func, nargs)
  #define mkmacro__(func, nargs) func ## nargs
  #define DO(...) mkmacro(DO, __VA_ARGS__)(__VA_ARGS__)
  #define DO1(n) for(I i=0;i<(n); i++)
  #define DO2(m,n) DO1(m) for(I j=0;j<(n);j++)
  #define DO3(l,m,n) DO2(l,m) for(I k=0;k<(n);k++)
bakul··on ngn/k, an AGPL K interpreter
Assuming you are terminating strings with a NUL, for 0: it may be advantageous to R/W mmap with copy-on-write (i.e. MAP_PRIVATE). Then you can overwrite LF or CRLF with a NUL.
bakul··on ngn/k, an AGPL K interpreter
:-) The macrology is a bit grody and my DO implementation doesn't extend past 3 args.
bakul··on ngn/k, an AGPL K interpreter
Speaking of literature, have you read Edward A. Abbott's 1884 book "Flatland: A Romance of Many Dimensions"? Some of the comments here make me think of Flatlanders!

http://www.gutenberg.org/ebooks/201

← PreviousPage 7 of 12Next →