HNHacker News
TopNewBestAskShowJobs

bhrgunatha

1,346 karma · joined April 21, 2009

submissionscomments
bhrgunatha··on OCaml Programming: Correct and Efficient and Beautiful
Berkeley's Programming Languages and Compilers references this book and you get to apply OCaml to something non-trivial.

https://inst.eecs.berkeley.edu/~cs164/fa21/

bhrgunatha··on My students cheated... a lot
Yes, my mistake, thanks.
bhrgunatha··on My students cheated... a lot
> I've certain encountered teaching in my own classes,

This kind of mistyping reminds me of those example of people whose names fit their job but it's rare to find such an apropos example.

Sorry to derail your point but the juxtaposition of "ch" and "t" here is perfect.

bhrgunatha··on Git ignores .gitignore with .gitignore in .gitignore
Thanks for sharing that idea. I'd simply never thought to do this and I'm adopting this in future.

The main drawback is something I do from time-to-time which is nuking and re-creating directories.

bhrgunatha··on Programming Languages: Application and Interpretation (2021)
I enjoyed going through Brown's Introduction to Programming Languages (2012) which uses the book.

http://cs.brown.edu/courses/cs173/2012/

bhrgunatha··on Using LSP in Emacs and Debian
Be aware that particular feature automatically add's -hook to each smybol on the left. Most hooks in emacs are named xxx-hook or yyy-hook so you put:

:hook ((xxx yyy) . <triggered function>)

bhrgunatha··on Show HN: Redditle.com – For those of us who add 'Reddit' to every Google search
I have a keyword search for reddit and I'll sometimes add a further refinement by editing the query for a specific subreddit

site:reddit.com/r/television premier episode discussion

bhrgunatha··on Ask HN: What book changed your life?
I directly attribute daily meditation to reading The Tao of Pooh. It was a parting gift as I left to go travelling.

Although I didn't settle on Taoism, like you, it introduced and opened my mind to what I saw as an alternatives to religion.

bhrgunatha··on Why does Google use location for language rather than browser settings?
I wrote a script for ViolentMonkey to force "hl=en" to appear in the query string for all google services which has been the most reliable way for me to overcome the problem.

It doesn't work for some services though but aside from signing in to google there's nothing else I can do.

I suspect they'll shut that down at some point too.

bhrgunatha··on A trick to have arbitrary infix operators in Python
I've always wondered why that was added. It feels to me against the idiom (argot?) of any lisp. It's not composable either.

    (0 . < . x . < . 12)    
    read-syntax: illegal use of `.`    
Typing those extra '.'s gets annoying very quickly too.
bhrgunatha··on Prince of Persia in JavaScript
This is a constant gripe for me. If you're going to play audio on your website, you really should provide a volume control.
bhrgunatha··on Advent of Code 2021
There are some plots [1] of the time taken for the first 100 solutions to part 1 (silver dot) and part 2 (gold dot). They're a good visual indication of the relative difficulty of each question and how the difficulty of the second part increases.

[1] http://www.maurits.vdschee.nl/scatterplot/

bhrgunatha··on Harmonic Coloring: A method for assigning colors to musical pitches
I find these visualisations give me a deeper feel for the structure of the music and the skill of the composers.

I'm not sure why the freeware MAM MIDI player [1] stopped getting updates but I loved that tool. I had a lot of fun with it and made a video demonstrating its visualisation types. [2]

[1] http://www.musanim.com/Player/ [2] https://www.youtube.com/watch?v=cT6Pk0RNRSA

bhrgunatha··on Ask HN: Looking for a book on algorithms and data structures
I found his courses rigorous and approachable too. I think they were equivalent to the courses he taught while at Stanford.

https://timroughgarden.org/videos.html

bhrgunatha··on Making the dislike count private across YouTube
Enhancer for youtube which makes youtube much better in my opinion. Ironically there is now a large, prominent sponsor logo on the add-ons settings page.

https://www.mrfdev.com/enhancer-for-youtube

bhrgunatha··on Animated guide to Symex: Emacs structural editing with Lisp
I should've been clearer - I meant according to its advocates.
bhrgunatha··on Animated guide to Symex: Emacs structural editing with Lisp
Isn't it that movement is more efficient, easier and safer (RSI)?

My editing habits are too deeply ingrained. Past attempts to switch all failed.

Instead I'll probably just use the good ideas from this package and adapt them to my own config. That's why I use emacs.

bhrgunatha··on Which jobs most often pair together among married couples
I found optometrists surprising.

1. Optometrists ~11.5%

2. Elementary/middle school teachers ~3.75%

3. Dentists ~3.5%

bhrgunatha··on Earthquake in Melbourne, Australia (9.15 AM 22nd Sep 21, AEST)
> M9 is 1000x more powerful than M6

I assume you're using moment magnitude [1] since it's the most common measure. In fact every 2 integers is a 1000 times increase [2] so M8 is 1000 times more powerful than M6.

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

[2] https://en.wikipedia.org/wiki/Moment_magnitude#Definition

bhrgunatha··on Checkboxland
Reminds me of a colleague many years ago who made pictures as a table with each cell assigned a background colour, manually editing the html!
bhrgunatha··on Thoughts On Lisp And Racket (2019)
I have a feeling it's on hiatus due to the switch to Chez Scheme, which probably took more time and effort than anticipated.

The major reason given for that was easier maintenance in the future so now that's completed, I wonder whether the effort will now will be re-directed back to Rhombus.

bhrgunatha··on Show HN: Make spaced-repetition flashcards
By anki3 do you mean anki 2.1.xx that uses python 3 or anki v3?

I don't see any tags or branches on the github repo that indicate anki v3.

bhrgunatha··on Waxing lyrical: taking ear wax seriously
No matter what I try my ears both get blocked regularly, every 6 - 12 months.

The first time, a nurse syringed it after the doctor prescribed drops which contained olive oil. He said it wasn't to fix the problem (although sometimes that alone does dislodge the wax), it was to soften the wax to make the syringing safer and more effective.

These days I see a doctor who uses a suction tube and a small metal scoop and whenever he digs out something wothwhile he delights in presenting it to me to see.

bhrgunatha··on Audacity may collect “Data necessary for law enforcement, litigation” and more
Maybe a musical synonym of Audacity, like Pluck.
bhrgunatha··on A foreign seller has hijacked my Amazon Klein bottle listing
I have a further question.

Since he has common law trademark, why wouldn't that still apply? Someone else is selling via Amazon in the US using his common law trademark.

bhrgunatha··on The Global Chessboard
Maybe it's a matter of intended audience.

As a philistine in those subjects, it was a fascinating read for me and introduced ideas I hadn't considered before (proven or not).

bhrgunatha··on Making invisible glue code first-class
> This is a really excellent topic to bring up -- the fact that glue code grows essentially quadratically.

I think this was the motivation driving Microsoft's Language Server Protocol.

https://microsoft.github.io/language-server-protocol/

bhrgunatha··on The 4:6 method for coffee-brewing (2017) [video]
If you aren't joking and genuinely confused.

They don't mean anything - they're used to show the idea of pouring water 5 times.

Use B grams of beans.

Use W = 3 * B * 5 grams of water

Basic method:

1. Pour 5 times (p0 .. p4) each using 3 * B grams of water.

2. Wait 45 seconds before you pour again.

3. Allow the dripper to keep dripping for 3.5 minutes.

Adjust sweet/acidic taste balance:

p0 - δ grams, p1 + δ grams - sweeter.

p0 + δ grams, p1 - δ grams - more acidic.

Adjust strength by dividing the final 9 * B grams of water differently:

stronger - pour less water more times.

weaker - pour more water less times.

bhrgunatha··on “Shared libraries are not a good thing in general”
I discovered that quite quickly after they switched.

More importantly (for any haskell developers using Arch), there are also static builds for stack, cabal and ghcup too although you then need to maintain your own set of GHC and libraries.

I can't imagine what it must be like to use the official packages since the haskell library ecosystem is quite fast moving.

bhrgunatha··on What's going on here, with this human?
I used to teach children whose internal state is generally easier to assess than adults.

I remember watching as one kid said to another "I believe in you" to help out in some moment of crisis. It struck me as odd - something cheesy they'd (probably) heard in a movie or cartoon.

But if they are saying that to each other then I could probably use it to communicate better with them as long as it was sincere.

I'd say it sparingly when I thought it might be appropriate or helpful. The reactions were surprising to me, not at the time I said it, but later on. I'm not suggesting I was a major influence that sets kids on the right track, but I think it helped out somewhat and for some reason that specific phrase seemed much more powerful than other forms of encouragement.

← PreviousPage 2 of 14Next →