HNHacker News
TopNewBestAskShowJobs

the-smug-one

841 karma · joined August 10, 2020

Not actually smug, at least not on purpose.
submissionscomments
the-smug-one··on Teaching other teachers how to teach CS better
Thank you! Learning is easy in the way that weight loss is easy (for all). The actual work to be done is easily defined and simply needs to be done, but that process can be much harder to go through for some than for others. Or perhaps you disagree even more?
the-smug-one··on Teaching other teachers how to teach CS better
Teaching the course content through lectures is overrated, in my opinion. I rarely went to lectures, but the ones I did go to I was there not because I felt a need to learn the course material but because I could in some way engage with the lecturer. One lecturer would talk about how things looked in "real papers", and how new algorithms would get published even though they lacked certain key invariants, and how stupid that was. Another one revealed key insights about the material which he had gained himself. This kind of knowledge exchange is far more important than the course material. You've got the chance to hear what and how some really smart people think about difficult subjects, that's amazing!

Learning is easy, you just sit down and you engage with the material in earnest. Whether that's course material or research papers doesn't matter too much. Figuring out other people's perspective without them explicitly telling you is way more difficult.

the-smug-one··on Unison Programming Language
What's the point of detecting that 1 + x + 1 is the same as x + 2 anyway? If I wrote it in one way, I meant it to be that way for a reason. Should it also be able to prove arbitrary code is semantically equivalent? Well, it can't do that for obvious reasons.
the-smug-one··on Reddit’s disrespectful design
i.reddit.com
the-smug-one··on The Teamsters announce coordinated nationwide project to unionize Amazon
>Amazon warehouse worker is not a long term job for most people that do it.

And why is that? I don't know but I doubt it is because they're "warehouse nomads". If Amazon warehouse offered stable jobs with good wages and benefits I doubt the turnover would look the way it does.

the-smug-one··on The Teamsters announce coordinated nationwide project to unionize Amazon
>Companies provide service to society.[...] How far would we go as a society if we're complete egoists? Not that far.

And yet publicly traded companies are legally bound to maximize the profit for the stock holders.

the-smug-one··on As religious faith has declined, ideological intensity has risen
To me, it sounds like they really hit you on a sore spot :).

What OP talked about regarding ideology reminds me of the stuff that Zizek talks about. I'm no philosopher, but the thought that ideology has subsumed religion doesn't seem too far fetched. We, as a species, do seem to have a tendency to form religions and hold different biases.

the-smug-one··on Calculus for Seven Year Olds [pdf]
I remember how frustrating it was to do this.

For me it helped to just be really explicit with it:

X + 2 = 3 X + 2 - 2 = 3 - 2 X + 0 = 1 X = 1

That basically unlocked it for me. I was older than 9 though :). For division I'd probably just say that you actually have (1/5)5A = (5/5)A = 1A, but that probably necessitates symbolic juggling to be something you already have as a skill.

Anyway, symbolic manipulation is interesting, even without letters.

the-smug-one··on Helix: a post-modern modal text editor
Good key chords matter.

Here are some of mine:

M-. jump to source

M-, pop back to previous source

C-x f r Find References

C-x f i Find Implementations

C-x f t Find Type

C-x r v Rename Variable

C-x c a Code Actions

And a bunch more. I'd like to have an analogue to jump back with my C-x stuff like I do with M-. and M-, - any emacs people have suggestions on how to do that?

I don't know how fast you are with the mouse, but I've watched my co-workers jump into source and they can be so slow. I believe that I can answer questions I have regarding the codebase faster than they can, I don't have to rely on my memory for trivialities.

the-smug-one··on Overkill objects for everyday life
Salt helps against hard water, AFAIK.
the-smug-one··on Magit 3.0
How often do you guys do really crazy stuff with git? I do some rebasing (interactively and not) and some cherry picking, very rarely do I touch reflog (in which case I do use the CLI).

What kind of race car stuff does git CLI offer that makes you have to go through weird contortions in magit :)?

the-smug-one··on Magit 3.0
It's probably too late for you :), but I use native-comp Emacs and it's blazing fast. At least lsp-mode+gopls is. I haven't gotten the chance to use this setup with Typescript's LS, but I've used gopls+clangd without slow downs.

Also, dang I miss coding in TS instead of Go.

the-smug-one··on This FSF form assumes everyone's full legal name can be written in ASCII (2011)
Clearly FSF can deal with their maintainers having non-ASCII names. Have you talked to a human being regarding this?

https://github.com/gcc-mirror/gcc/blob/master/MAINTAINERS#L4...

the-smug-one··on Working at a startup is overrated, both financially and emotionally
That's what every Swedish student's income is like :).
the-smug-one··on Go proposal: new package to provide generic slice functions
Given a call map(a, f) and a loop for _,e := range a { f(e); } both ought to have the same code size. Yes, map(a, f) will need to be inlined, but the for-loop is already inlined.
the-smug-one··on Go proposal: new package to provide generic slice functions
>The higher-order function style also tends to be much slower,

This shouldn't be the case. A HoF-call should be optimized into a JMP or be inlined directly. The issue of performance is more likely to come from non-mutating functions operating on datastructures which had mutation in mind.

the-smug-one··on Z3 Tutorial
TLA+ has been used at Amazon for proving high-level properties of their distributed systems. Very useful, because a fix in prod for a protocol is very costly. ACL2 was used to prove some floating point architecture that AMD used a couple of decades ago haha. Github recently bought the formal methods company Semmle (something like that) for static analysis of repos.

Formal verification is used in critical software, airplanes and so on.

The most popular form of formal methods are type systems, which I would say a normal SWE should learn about and understand. It's not typically characterised as that, but a type system is a proof inscribed in the program for which we guarantee that some properties hold... Sounds pretty formal methodsy to me :-).

It's a specialised area of study, but isn't that the definition of an area of study performed at a university-level?

the-smug-one··on Programming in Z3 by learning to think like a compiler
It's more likely to be used by someone who then implements a practical tool on top of it. I used it to prove relational properties of WASM programs, which is useful to prove security properties like constant-time or differential privacy. You can also use it to prove program equivalence, which I think would be neat for testing a compiler with.
the-smug-one··on New x86 micro-op vulnerability breaks all known Spectre defenses
How would the statically typed WASM open an even wider hole? Assuming you mean that the size of wasm's hole is larger than js, not that their combined holes are larger than either one.
the-smug-one··on New evidence that British workplaces are losing viewpoint diversity
>Everyone felt the other had a place in society

I'm sure that in the depth of their hearts the coal miners not only understood but also accepted Thatcher as a fundamental and important part of society.

the-smug-one··on New evidence that British workplaces are losing viewpoint diversity
"The Fall of Public Man" argues that we actually used to be more political and had to "put our cards on the table" so to speak. This would be as opposed to now, where we are very much able to hide our positions if we so please.

I don't know what polite circles would be, but I suppose some sort of aristocracy? Certainly gentile society in 1780s in France were not scared of expressing heavy political discourse in public. Nor were the rich Romans.

Edit: And just to be clear. Rich people may perhaps only speak politics with their closest friends, but they certainly act politically with the use of their capital. Imitating them by shutting up has no point and is detrimental to a democratic society.

the-smug-one··on Mal – Make a Lisp
Well, you certainly don't need that regex to implement a Lisp.
the-smug-one··on Mal – Make a Lisp
Regexes are at least useful for parsing numbers and symbols.

But yeah, that shouldn't be where you get stuck.

the-smug-one··on [dead]
Go is a crap programming language with a good runtime.

- No generics

- No true buy-in on the idea of a structural typesystem

- No sumtypes

- An anti-intellectual fanbase

- Exceptionally painful error handling

- Zero ability to abstract anything out without relying on the reflection package which leads to brittle and slow software.

They didn't do everything wrong though.

- It's great that they have a spec (I wish it came with formal semantics, but still)

- It compiles quickly and is easy to analyze (so tooling w.r.t. LSP is great and exceptionally fast)

Anyway, I never find programming in Go fun, and I find Rob Pike to be obnoxious. OK, that last part might just be me projecting how obnoxious Go is onto him.

EDIT: Fixed formatting.

the-smug-one··on Charm delivers Stripe's carbon removal purchase ahead of schedule
USA has close to a double per capita emission of CO2 compared to China. If you're worried about total emissions by a country, then I have a great proposal in which we divide China in 10 countries to effectively make their CO2 emissions completely irrelevant!
the-smug-one··on [dead]
I really like systemd, I even run Emacs as a systemd service. That means I have persistence of Emacs over my user session. I can close all Emacs frames (windows) and open up a file hours later and none of my work has disappeared.

Also, basically 0 wait time when opening a new frame, launches faster than gedit or kate.

the-smug-one··on Show HN: Farolero – Common Lisp style-conditions and restarts for Clojure
The Common Lisp Condition System: Beyond Exception Handling with Control Flow Mechanisms phoe is the author.
the-smug-one··on Dear Zuckerberg, We're writing to urge you to cancel Instagram for children [pdf]
Are you going to be launching cigarettes for kids tomorrow?
the-smug-one··on Traversing nested data-structures in various languages
Being disciplined is part of good engineering. To have clearly defined idioms is important, so I want to reinforce that this is not nit-picky.

You can argue that anything is nit-picky, under the guise of subverting good engineering in exchange for getting to be lazy.

the-smug-one··on Metis and Bodybuilders
This is pretty weird. Most sources that he uses for what BB:ers think are threads from bodybuilding.com (not a lot of pros spend a lot of time writing posts on there) and some place called outlift.com (never heard of that in my lifting life). This is like listening in on 1st year CS students to figure out what professional software engineers think.

If you really wanted to know what BB:ers think about rest time, why not see what they've said themselves? It's not like BB:ers don't talk about what they do and why they do it.

Just as an aside: strongerbyscience.com has pretty good articles (owner has MSc in exercise science and at least one guy has a Phd in this stuff, sources are extensively cited).

← PreviousPage 9 of 11Next →