HNHacker News
TopNewBestAskShowJobs

hikarudo

492 karma · joined January 12, 2011

submissionscomments
hikarudo··on Python’s tug of war between beginner-friendly and advanced features
The pros and cons of types should always be discussed in the context of type systems. Types exist in a type system.

There are many, many things that can be expressed with types... depending on the type system. In Haskell, when you look at a function type, you instantly know whether it returns an optional value (a Maybe), or if it has side effects (IO), etc. You can also tell how general the function is, by how abstract its parameters are.

An example of something that becomes possible with a rich type system: https://hoogle.haskell.org/

hikarudo··on Pipenv: Python Dev Workflow for Humans
Any insights on why not use conda instead?
hikarudo··on Effect of Vitamin D3 supplementation in patients with severe Covid-19
Nitpick that doesn't invalidate your question: though the equator line does cross through Brazil, most of the population doesn't live anywhere close to the equator.

Also, Brazil is 4000 kilometers long from north to south.

hikarudo··on Learn difficult concepts with the ADEPT method (2014)
Same here. I've heard somewhere, in a video about language acquisition, that we have a pattern recognition algorithm in our brains, so all we need is to see examples, and the algorithm does the rest (builds a model by itself).
hikarudo··on An Introduction to ZFS
Wouldn't just LUKS->ZFS be enough?
hikarudo··on 'Time Cells' Discovered in Human Brains
This sounds super interesting! What do you mean by unsubscribe from routines? Could you give some examples? What effects did doing this have on your life?
hikarudo··on Anki as Learning Superpower: Computer Science Edition
I used to think so too. Then I read the research on this, and the evidence suggests the opposite of what you wrote: your time is better spent doing retrieval practice than creating your own cards.

https://www.learningscientists.org/

hikarudo··on VkFFT – Vulkan Fast Fourier Transform Library
How are CNNs directly based on FFTs? Sure you can use CNNs with FFT features, but in my experience this is not common.
hikarudo··on Preserving data integrity: A ZFS-inspired storage system
Unless compression is disabled.
hikarudo··on Yandex Image Search is better than Google with “fuzzy” images
The best descriptors are most certainly obtained with machine learning (embeddings).
hikarudo··on Ask HN: Best resources to learn about stock trading and investing?
I second this. Forget about trading, stock picking, and other wastes of time (and money).
hikarudo··on São Paulo Labor Judge Rules Uber Must Pay Full Employee Benefits to Drivers
Corporate taxes alone are 34%, one of the highest in the world.
hikarudo··on Code only says what it does
On the topic of the "theory" (mental model) of a program, I recommend John Ousterhout's book "A Philosophy of Software Design". You get such gems as:

"... the greatest limitation in writing software is our ability to understand the systems we are creating."

"Complexity manifests itself in three general ways... change amplification, cognitive load, and unknown unknowns."

"Complexity is caused by two things: dependencies and obscurity."

"Obscurity occurs when important information is not obvious."

"The goal of modular design is to minimize the dependencies between modules."

hikarudo··on Software reuse is more like an organ transplant than snapping Lego blocks (2011)
I would love to have a link to that piece about software reuse in the large vs in the small!
hikarudo··on Tensorflow on edge, or – Building a “smart” security camera with a Raspberry Pi
I disagree. The term "edge computing" actually adds precision to a description of a distributed system. Nowadays, with a lot of machine learning inference happening on the cloud, when seeing the term "edge inference" you immediately know you don't have to send heavy bandwidth-clogging video streams to the cloud.

Inference on the edge is a clear trend in computer vision applications, now that we each year there are better low-power neural network accelerators.

hikarudo··on YOLOv5: State-of-the-art object detection at 140 FPS
"You only look once" in Chinese.
hikarudo··on An Idiot’s guide to Support vector machines (2003) [pdf]
That's a bit weird. Sure it's an advantage if you can optimize the object function more easily. But the end goal is generalization, i.e. performance on new data. The objective function is only a proxy for that.
hikarudo··on Why is AI so useless for business?
Knowing how something works is better than not knowing. But you can still have a pretty good idea that it does have the desired effect (i.e. verify cause and effect) via randomized controlled trials.

Of course, alternative medicine proponents rarely do randomized controlled trials.

hikarudo··on Ask HN: What startup/technology is on your 'to watch' list?
One thing that is changing quickly: deep learning, particularly inference on the edge. FPGAs are more versatile than ASICs.
hikarudo··on Linux Productivity Tools (2019) [pdf]
Wow, you described my workflow exactly. Using "<" might be shorter and faster-for-the-machine, but it's less readable and breaks the left-to-right order. I also frequently start with `cat x`, see what's in the file, move on to `cat x | some filter` etc.
hikarudo··on Ask HN: What's your quarantine side project?
YOLO will be slow on a raspberry pi. Try instead SSD MobileNetv2 with quantization-aware training and run inference with Tensorflow Lite; you should get at least a few frames per second.

I recommend starting with a pre-trained model (COCO, for instance) and finetuning for your images. However, even with finetuning you probably need > 10k images to get good results.

hikarudo··on Lens Aberrations Explained
> (with ML)

Nitpick, that's just camera calibration. No ML needed.

hikarudo··on Embedding Binary Objects in C
I stand corrected! I shouldn't have guessed "quadratic" without measuring.

Large files will make gcc use more memory, and if you're building on a low-RAW machine, the OS will start to swap. That's probably the effect I saw. Nothing to do with "quadratic" compilation time.

hikarudo··on Embedding Binary Objects in C
My favorite is simply using a tool to create a C file with your binary data:

  static uint8_t mydata[] = {0xDE, 0xAD, 0xBE, 0xEF, ... };
The advantage is that it works anywhere, with any compiler.

The disadvantage is that it can increase compile time. I would limit each .c file to 10MB; it seems there's a quadratic increase in build time with file size, at least with gcc.

Also, instead of "0x%02x" I use decimal notation and no spaces in order to decrease the .c file size:

  static uint8_t mydata[] = {
  42,7,105,0,0,...,
  8,0,1,20,...,
  ...,
  };
hikarudo··on Show HN: Meta book recommendations from Ask HN threads
I've often wished for the same thing. I want to know what's wrong about the book before investing time in it.
hikarudo··on Using Anki to remember what you read
Spaced practice and retrieval practice, both of which are used in SRS, are two learning techniques for which there is ample evidence that they actually work [0].

Of course, You still need to decide what is worth remembering.

[0] https://www.learningscientists.org/

hikarudo··on Using Anki to remember what you read
Absolutely. Keeping it interesting should be one of the first priorities when learning something.

For the record, Anki actually works really well for me. But interest in the subject should come first.

hikarudo··on New sense discovered in dog noses: the ability to detect heat
Not original, and I haven't been able to find out the author.

My background was originally in electrical engineering, where this is probably more widely known than in computer science.

hikarudo··on New sense discovered in dog noses: the ability to detect heat
"All sensors are temperature sensors."
hikarudo··on When Bloom filters don't bloom
Even better: use mmap to allocate a virtual huge array, which initially will use no memory at all, and let the OS allocate physical pages to it as needed.
← PreviousPage 3 of 7Next →