HNHacker News
TopNewBestAskShowJobs

euiq

172 karma · joined September 9, 2020

Go away!
submissionscomments
euiq··on Google uses in-person office attendance as part of employee performance reviews
The title is essentially clickbait. From the article:

> Google is the latest company to tighten its return-to-work policies to get workers to commute more often. In an internal email, the company said it could make office attendance an element of an employee’s performance review if they did not comply with the three-day minimum for in-office work, reports the Wall Street Journal.

Why, yes: if you don't come to the office as often as your employer wants you to, you'll get in trouble.

euiq··on Haskell Optimization Handbook
fair enough—the book certainly seems to favor "make things strict enough so that your usual algorithms work" over "rewire your brain for laziness"
euiq··on Why is Swift so slow (timeout) in compiling this code? (2022)
Note that someone who seems to manage a Swift team at Apple left a more encouraging response later: <https://forums.swift.org/t/why-is-swift-so-slow-timeout-in-c...>
euiq··on Haskell Optimization Handbook
Though I have only skimmed the book, this strikes me as an unfair characterization. For example, this case study discusses laziness extensively: <https://haskell.foundation/hs-opt-handbook.github.io/src/Cas...>
euiq··on How to Get Started with Tree-Sitter
It’s not there anymore, presumably because it graduated from beta earlier this month: <https://github.blog/changelog/2023-05-08-the-new-code-search...>
euiq··on How to Get Started with Tree-Sitter
While we're talking about this, I've been quite disappointed by the new GitHub file browser: the new features look neat, but the core file browsing experience is significantly worse for me because the new UI is much more complicated and every action seems to do way more work.

I couldn't immediately find a way to opt out; I wouldn't mind the new file browser so much if I could drop into it on demand instead of having it forced down my throat.

euiq··on Rust: The wrong people are resigning
Clearly the solution is to clone Russ Cox.
euiq··on Rust: The wrong people are resigning
It's amazing, isn't it? People care much more about seeing their favorite sports team win than about actually moving technology forward.
euiq··on Cash App founder Bob Lee stabbed to death after argument about suspect's sister
What a wild ride! We went from "family man stabbed by crazy homeless person" to drama involving a plastic surgeon's Iranian wife and her overprotective brother.
euiq··on What a good debugger can do
Great demo! The article also has a link to it.
euiq··on What a good debugger can do
I assume the parent comment is talking about "thinking" (not that I have any personal experience with that).
euiq··on [dead]
Exactly: the author is confident that this is just "random trivia" that is beneath them, but the explanation they give shows that they're clueless.
euiq··on [dead]
> I still draw a blank when asked what the magnitude of complexity is for the guests function I just wrote (damnit, of course calculating the permutations of a list is n-squared, but this is an interrogation of the random trivia I can manage to recall and I feel like a deer in the headlights).

No further questions.

euiq··on John Carmack Leaves Meta
I'm interested in learning more about how to optimize JavaScript programs. Do you know of any good examples or other resources in this area?
euiq··on Compiler Errors for Humans (2015)
Visual Studio Code does this (see "File links"): <https://code.visualstudio.com/docs/terminal/basics#_links>
euiq··on DRY is an over-rated programming principle?
It's a term of art used by Herb Sutter, among others: https://stackoverflow.com/q/15875252
euiq··on The Container Throttling Problem
Note that the intern in question was close to finishing their PhD in a related area.
euiq··on Parse, don’t type-check
> Of course that type doesn't encode everything there is to know about that function, even assuming purity.

Right—we need to require foo id = id.

euiq··on The Most Common Errors in Undergraduate Mathematics (2009)
That's not a very convincing example, given that numeric literals are polymorphic in Haskell.
euiq··on Pydis – Redis clone in 250 lines of Python, for performance comparison
The problem with inheriting from asyncio.Protocol is that it ties your code to the callback-based low level asyncio API—I'm not surprised that this package doesn't have any tests.
euiq··on Contravariant Functors Are Weird
Let's just define Spec(R) = Hom(R,-) and call it a day.
euiq··on Sync vs. Async Python: What Is the Difference?
The current stream interface is still somewhat awkward. Apart from the question whether the reader and writer really need to separate objects, there's also the problem that the write and close methods are synchronous—in order to use them correctly, it's necessary to throw in asynchronous calls to drain and wait_closed.

There was a plan to fix this in Python 3.8, but that never went anywhere.

euiq··on Sync vs. Async Python: What Is the Difference?
What would the CPU-heavy code await on?
euiq··on Classes are a way of writing higher order functions
Right—garbage collection makes most software engineering significantly easier.
euiq··on Classes are a way of writing higher order functions
Note that the example in the post only works because variables in the closure can be rebound. Not every language allows you to do that.
← PreviousPage 2 of 2