HNHacker News
TopNewBestAskShowJobs

hyperjeff

139 karma · joined November 30, 2015

physics, math, history, philosophy, experimental music, keyboard hacking, programming.
submissionscomments
hyperjeff··on New features coming in Julia 1.7
> Yes, it's just muscle memory and you can always re-train it, but there's very little return for my investment.

As a data point of one, I've found the return to be enormous and the investment suprisingly small. You have a whole lifetime of typing ahead, so what's a small investment of time compared to that? Just something to consider.

> As far as I'm concerned, any byte set to any value above 127 in any source file should be a compile-time error.

People can vote by using the languages and tools they want, but I have been waiting for that limitation to die for quite some time. I also use function names longer than 6 characters. That said, I realize I'm lucky enough to be in charge of my own programming environments and don't have to worry about its adoption in unknown limited scenarios.

> I can see an argument for allowing non-ASCII characters inside string literals and comments, but with non-ASCII identifiers you're just looking for trouble.

Again, just as a data point, I've never found this to be an issue (if one is prudent and not obnoxious with it), though the language support needs to be in place. In my main language these days, Swift, it's fine. Julia and Kotlin too.

hyperjeff··on New features coming in Julia 1.7
> Whatever reading comprehension advantage they may carry is completely negated by the fact that they can't be typed from a regular keyboard.

There's a curious blindspot among coders with regard to customizing their main interface with their machines. Keyboards are heavily customizable.

Some wins are extremely easy: If you want instant access to all Greek letters on a Mac (e.g.), you can have your caps lock key toggle between your standard layout and the Greek layout. (no \alpha, just α.) The rabbit hole runs deep from there if you are adventurous. Look at all the option key symbols you don't use. Swap them out for nice things like real arrows, ∈, and whatever you fancy.

Maybe you have restraints or biases about work code being all ASCII, but typeability is up to you.

hyperjeff··on What's the deal with tab size (8 spaces) in the GitHub UI?
This presumes one isn't using real tab characters in their code. (No idea why they claim tabs are 8 spaces, as they're their own character.) The rest of these arguments are just curious decisions by a certain community. The point is for the visual indentation to be up to the end user, seasoned to taste. Requiring some code viewer to stick to n spaces is unfriendly. (I'd sooner quit programming altogether than follow the above rules.)
hyperjeff··on MIT Mathlets
Working very well on my (3rd gen) iPad Pro, fwiw.
hyperjeff··on Problems with ancient musical scales
Especially Carlos’s Beauty in the Beast, one of my fav albums. It seems to have a strong Indonesian influence in places, and I’ve since found similar exotic tunings in music from there.
hyperjeff··on A Mathematical Keyboard Layout (2018)
Some nice symbol selection here. It’s a great thing to customize your keyboard layout. On the Mac side, there’s a nice tool called Ukelele: https://software.sil.org/ukelele/
hyperjeff··on Whimsical Guide to Compensation
“4 weeks of paid parental leave” — I’d change this to 4 weeks of paid caregiving.
hyperjeff··on I think Catalina 10.15.4 broke SSH
I agree that usually one uses a higher level API, but I've worked on commercial apps that use Metal both for graphics and compute. The code is not so unweildy as is suggested here. An old triangle test app I have here shows only about 100 lines of graphics code.
hyperjeff··on Pastel: A command-line tool to generate, analyze, convert and manipulate colors
Every shell can make its own version, but here's a wrapper in fish which I named pstl:

  eval (echo "pastel $argv" | sed 's/ | / | pastel /g')
Now you can

  pstl "random | mix red | lighten 0.2 | format hex"
hyperjeff··on Translating math into code with examples in Java, Racket, Haskell, Python (2011)
Yes, well said. Math is not any form of programming, and programming is not math. Studying the relations between the two can be very helpful, and the difference itself is interesting. One may have specific reasons to us FP to cleanly decouple from certain kinds of side-effects, but there’s nothing un-mathy about mutability, and there are times when it’s a fine choice.
hyperjeff··on Jerks on the Internet: what my first DDoS taught me
turning off #blog-post's padding and the .blog-content-card's left & right margins makes the layout nice on a desktop.
hyperjeff··on Ask HN: Physicists of HN, what are you working on these days?
Ex-PhD student in general relativity here, also slowly going thru that book. If anyone wants to start a reading (slack?) group together, I’d be interested. I have no one to talk to about this stuff IRL.
hyperjeff··on Eliminating Robocalls
Isn't this exact feature available via Do Not Disturb? I have DND on 24/7, and you can quickly turn it off for Lyft/etc if needed. If you make groups within your contacts you can even hone the whitelist and can fairly quickly mod it.
hyperjeff··on Python with a Cocoa GUI on MacOS
macOS (in its NeXT-based lineage) has always come with many scripting languages (php, perl, python, ruby, applescript, awk, *sh, etc) as part of a standard unixy setup, even before Apple themselves made use of them per se in the system. While they make use of Python currently, it's there also just to enable whatever things a user or a 3rd party may build.
hyperjeff··on My First Virtual Reality Groping
Of course, the author would agree that it's not close to real-life assault. If I said, "I shot a bear in virtual reality," it would be missing the point to complain that it's nowhere close to real-life bear shooting. No one said it was real-life, quite the contrary.

The story does bring up a central trouble spot in multiplayer gaming: no mechanisms in place for holding players responsible for being an asshat.

hyperjeff··on Show OS X notification when long running cmd finishes and terminal not in focus
oh, geez, yes of course. sorry, old habit from before the say command.
hyperjeff··on Show OS X notification when long running cmd finishes and terminal not in focus
also fun is to append `osascript -e 'say "all done!"'` or somesuch if you're within decent earshot. you can even pipe in context-specific info.
← PreviousPage 3 of 3