HNHacker News
TopNewBestAskShowJobs

dmit

6,769 karma · joined February 21, 2011

submissionscomments
dmit··on How to not rewrite it in Rust
Alternatively, you could have C/C++ as a third, discrete category somewhere in the middle of the C <---> C++ spectrum. For people who like namespaces, or overloading arithmetic operators for mathy vector/matrix/etc stuff in order to make the code more readable.
dmit··on Why UTC is used as the acronym for Coordinated Universal Time
Much easier to paint a bike shed on Mars than over here.
dmit··on Trains in Switzerland are not allowed to have 256 axles
Previously: https://news.ycombinator.com/item?id=12071240
dmit··on Verb-Noun vs. Noun-Verb
Interesting analogy. Only after reading this comment did I realize that my mental model has been somewhat similar. Although if I had to write it down, I'd phrase it in terms of data structures.

If you have a sparse matrix of nouns and verbs where cells show whether a given verb(noun) pairing is valid, indexing by noun is clearly more efficient, because most of the time you know exactly what you're operating on, but not necessarily what the operation you want is named. The variables are likely right there before your eyes, a couple lines above the cursor, but the functions are spread out all over the code base.

dmit··on Sleep Deprivation in NBA Players
I think we're basically in agreement that it's a great shame when important information is not reaching the audience it deserves because of how it's presented. It's a neat parallel to the other thread in this topic about how the overall product might be improved by reducing the number of games played in a season.

It seems wild to me when people basically shoot themselves in the foot by going "tl;dr", but also if you're the author, it's up to you to present your message in a easily comprehensible form - nobody owes you their time and attention, it has to be earned.

(FWIW, this site doesn't allow downvoting direct replies to one's posts, so it wasn't me who downvoted (nor flagged) your sibling comment.)

dmit··on Sleep Deprivation in NBA Players
Oh yes, absolutely. My answer seems dismissive because I mostly follow the NBA, but in fact the relationship between the number of games, ticket prices, and factors affecting attendance is a fascinating topic.
dmit··on Sleep Deprivation in NBA Players
11 out of 30 NBA teams had 100% home game attendance last season. 18 teams were above 95%. There's not that much margin for improvement there.

http://www.espn.com/nba/attendance/_/year/2019/sort/homePct

Edit: I can't find the numbers for courtside attendance, but it's possible that ticket income for the teams at the bottom of that list is either lower or higher than the overall % suggests, depending on how in-demand the highest priced tickets are.

dmit··on Sleep Deprivation in NBA Players
Their loss.
dmit··on Japanese ninja history student gets top marks for writing essay in invisible ink
I think physicists won't mind if we extend the "observer effect" to cover this case.
dmit··on Why is hi-tech Japan using cassette tapes and faxes? (2015)
I have a friend in Japan who used to own a small seafood restaurant. At the end of the day, before closing up shop, she would send a fax to her supplier at the local fish market with a list of things she needed for tomorrow. Take a printed form, circle the necessary ingredients, fax it. Got any additional notes? Just write it at the bottom. Only took a minute.

A modern solution for this use case would be a custom website or a mobile app. Now, even if you disregard for a moment the cost of developing/running/maintaining those things, the UX and reliability of paper and pencil for this use case is far superior to mucking around on your phone or PC.

dmit··on Processing 40TB of code from 10M projects with a dedicated server and Go
s15 seems to be skewed by a bunch of JavaScript projects including Font Awesome, which stores the bathtub icon as s15.js for some reason (note that s1 through s14 are unused, so it's not just consecutive numeric ids). https://fontawesome.com/v4.7.0/icon/bath

Plain 15 is trickier. GitHub's search is too fuzzy to see a pattern at a quick glance, but again it seems that JavaScript is the culprit with a disproportionately high number of filename:15 results compared to filename:14 or filename:16.

dmit··on DoorDash confirms data breach affected 4.9M customers, workers and merchants
Show a histogram. Logarithmic scale, number of accounts affected.
dmit··on Show HN: Noric-bot – A bot to stress-test text-based MUDs, written in Scala 3
How can you say "_____ doesn't have this problem (unless you use wildcard imports" when all of the languages you listed allow wildcard imports? (Or just dump all their garbage symbols in a global namespace.)
dmit··on Show HN: Noric-bot – A bot to stress-test text-based MUDs, written in Scala 3
Anecdotally, this is a non-issue depending on the tools you use. IntelliJ IDEA and Metals both have Go To Definition support.
dmit··on Show HN: Noric-bot – A bot to stress-test text-based MUDs, written in Scala 3
That wouldn't quite work because all of

> Unsound, inconsistent, overly complicated, poorly abstracted, improper paradigms

apply to the current stable version of Scala as well. You'd be comparing Typescript as it is in production right now to a best case scenario of where Scala could end up in a couple years.

dmit··on Scala on Track to Support Java 9 Module System
Backend web services. Scala has top notch tools to model domain objects, handle a high volume of incoming requests, process transactions (including async ones). tl;dr: like the JVM and dislike root causing NPEs? Scala might be for you.
dmit··on A database of Facebook users’ phone numbers found online
You're exactly right. Add in the fact that Facebook can pose this as a puzzle to be solved, and attract a steady stream of sharp young people who can solve the puzzle without being bothered too much by the ethical consequences of solving the puzzle.
dmit··on Names do not transmit meaning
Ah, you're correct of course, as is TJSomething. While Cats and Scalaz don't provide a Functor instance for Set (and neither does Haskell for Data.Set), it's not for the reason I mentioned.
dmit··on Names do not transmit meaning
In Scala a Set is "mappable" because it has a `map` method that goes over its elements and transforms them using the provided function. But it is not a functor, because its `map` does not obey the functor laws. If you take a Set of integers and pass an `isEven` function to `map` you will get a Set with a different structure (as long as there were originally at least two odd or two even numbers of course).

`Mappable` provides short-term comfort due to familiarity, but to do so it sacrifices precision that is essential in the long term.

dmit··on Names do not transmit meaning
Even more impressively, the poem is also sometimes used (untranslated) in classes teaching English as a second language. So you don't need to be a native speaker to intuit the intended meaning.
dmit··on Names do not transmit meaning
Some thoughts on the matter:

1) Are there domains where naming things is easier? Perhaps even trivial? As a layman in both, biology and astronomy come to mind. Where you just find a Latin word vaguely describing what you see, and if nothing comes up you just pick a name of a famous person from your field that doesn't already have something named after them.

2) If non-English languages are also considered, are there any where naming things is easier? Have to keep in mind that a "good" name maintains a balance between descriptiveness and brevity.

3) Can this be considered as an advantage of point-free style?

4) Is naming things in programming hard as in "building a spaceship" or as in "making the NBA"? That is, can you name all the things if you put in enough effort, or are some things simply unnameable?

dmit··on 5000 years ago Sahara was a green landscape with lakes and rivers
Hate to be the "Source?" person, but were you there at the time?

If not, please update Wikipedia with references to your original source of information.

(Wikipedia doesn't admit original research.)

dmit··on Anna Karenina Principle
In criminal investigation, success is also multiplicative:

Success = means * motive * opportunity.

dmit··on Please Add RSS Support to Your Site
I don't know where exactly xkcd lands on the web comic popularity scale, but let's be conservative and say Top 3. The xkcd RSS feed embeds the image (and alt text) into posts. That is very clearly a deliberate decision. The comics themselves are also CC-licensed.

I feel like Randall Munroe is doing well for himself. The math is probably different for smaller players.

dmit··on Giving up on Julia (2016)
This article talks about either the insignificant (startup time, syntax), the fairly straightforward to fix (FFI, documentation), or both (printf performance). The title of the page implies that these are intractable problems, and nothing in the content suggests otherwise.

As far as Julia criticisms go, the Dan Luu post felt like it focused more on the right things (https://danluu.com/julialang/, circa late 2014). Of the two, that's the one I'd like to see a follow-up for.

dmit··on Don’t underestimate grep-based code scanning
Sorry, replying to you while responding to the parent because their post is already flagged.

Annatar, both the Rust compiler and ripgrep are available as packages in pkgsrc. The number of hoops one needs to jump in order to use this tool on your niche platform is exactly one. And that hoop is not even on fire.

Keep moving those goal posts though. Hopefully you can move them far enough to keep the Venn diagram of your mistruths and people who recognize them completely disjoint.

dmit··on Don’t underestimate grep-based code scanning
Illumos is also a supported platform (SPARC and x86-64).
dmit··on Scala 2.13 is now available
And all of them are Zalando. =)
dmit··on Switch from Chrome to Firefox
One of the points brought up about the changes being made to content blocking in Chrome is that it was an engine change. So no, switching to Edge or Opera or whatever might not do anything to help. I'm guessing Brave is the one Blink-powered browser that is likely to become an exception.
dmit··on Ian Lance Taylor's Response to “Go Is Google's Language”
Logging in to Google Groups has been mandatory forever if you had logged in to a Google account before in that browser. If there are no traces of past login sessions (such as when using Incognito mode) then it opens just fine for unauthenticated users.
← PreviousPage 7 of 11Next →