HNHacker News
TopNewBestAskShowJobs

grandempire

496 karma · joined February 2, 2025

submissionscomments
grandempire··on Zig's new LinkedList API (it's time to learn fieldParentPtr)
I see. I am noticing the main difference is that forward_list manages the lifetime and allocation of nodes and that having a pointer to an object is equivalent to a pointer to the node (could be implemented as a helper).

The layouts look the same?

grandempire··on Hacktical C: practical hacker's guide to the C programming language
C++ better represents the machine?
grandempire··on Hacktical C: practical hacker's guide to the C programming language
Many of those languages do not have pointers - which are fundamental to how modern instruction sets work.
grandempire··on Hacktical C: practical hacker's guide to the C programming language
> but that'a not what computers are

Which language more accurately represents hardware then?

grandempire··on Hacktical C: practical hacker's guide to the C programming language
Which other popular language more accurately represents a random access machine of fixed word length?
grandempire··on Zig's new LinkedList API (it's time to learn fieldParentPtr)
I’m all about data-oriented design, but I don’t think this is true - you need their unique characteristics in almost every project.
grandempire··on Zig's new LinkedList API (it's time to learn fieldParentPtr)
Is there any generic implementation which is not intrusive? I expect C++ forward_list to look like

struct Node<T> { Node<T> *next; T x; }

grandempire··on Googler... ex-Googler
So you’ve heard the risks. What would be the benefit? And why would it outweigh those risks?
grandempire··on Googler... ex-Googler
> I take it you’re worried about vengeful ex-employees abusing their access privileges to break stuff on the way out?

In extreme cases. But also just sowing discontent. Looking to grab value they think they are owed. Generally lots of people who are upset and probably feel mistreated and have very little to lose.

I actually think there is a small but real chance of violence as people like OP feel like their identity and way of life is threatened.

Have you been in a situation like this before?

grandempire··on Math 13 – An Introduction to Abstract Mathematics [pdf]
It’s great that they have opportunity. What’s unfortunate is this means if you aren’t in early, you are never getting in. The greatest indicator of whether you will be a math professor is whether your parents are math professors.
grandempire··on Googler... ex-Googler
For what? He’s probably getting fantastic severance so his time is best spent on the next thing. The employer isn’t going to get more work - it’s not wise or safe to let layed off individuals roam around the office.
grandempire··on Googler... ex-Googler
> blog, snippets, podcast, talks, youtube, social media etc.

In ZIRP every cent is positive ROI

(Not intended to be a comment about OPs individual performance or skill)

grandempire··on Math 13 – An Introduction to Abstract Mathematics [pdf]
Accurate, but also true that if you are research bound you typically enter at the year 2 or 3 level, already having finished calculus, and maybe linear algebra in high school.
grandempire··on Open guide to equity compensation
Ignorance is a big problem too. One time I had someone offended when I asked if their insurance plan qualified as a high deductible - they didn’t know it was a legal classification and thought I was accusing it of being expensive.

I’m not anti-startup but the VC backed startup culture of the last 10 years or so has been pretty souring.

grandempire··on Open guide to equity compensation
Startups have this weird psychological purity testing I have never seen outside of religious groups.

Effective organizations understand you actually don’t need to look inside the box. If someone is continuing to do good work for you it’s working. You don’t need to second guess their reasons why, or give them a reason to question their commitment.

grandempire··on Open guide to equity compensation
I often had startups offer me a number of shares with no explanation for the percentage ownership or the number of total shares.

I said I have to value them at zero without more information and they would act all offended when I asked for more (happened at least 3 times).

This suggests to me that founders either don’t understand the mechanics themselves or are preying on lack of financial understanding.

grandempire··on Mistakes and cool things to do with arena allocators
This is arguing about the definition of an Arena.

It’s like if I say a stack only has push and pop, and you tell me you can search though and find another element.

grandempire··on Pentagon to terminate $5.1B in IT contracts with Accenture, Deloitte
I’m actually proposing a new one - not a going back. One where we fix our budget to be sustainable and better help our citizens.

I’m open to proposals about what to do about social security because it MUST change.

How about instead we have a forced savings account that you cannot withdraw from. And the government has some matching component.

Senior centers also seem to be a low cost community investment.

grandempire··on Trump exempts phones, computers, chips from 'reciprocal' tariffs
I didn’t know HN was coming around to how regulation and bureaucracy are anti-competitive.
grandempire··on Trump exempts phones, computers, chips from 'reciprocal' tariffs
Are the tariffs good or bad?
grandempire··on Why I Program in Lisp
C++ does this and the decision to make is to capture by reference or value.

Environments aren’t a thing in Haskell etc. does that mean it’s not functional?

grandempire··on Why I Program in Lisp
That has nothing to do with the value/pointer distinction.

And “close over” semantics differ greatly depending on the language.

grandempire··on Rust to C compiler – 95.9% test pass rate, odd platforms
Because they happen at compile time?
grandempire··on Why I Program in Lisp
> I'm sure you are aware there is ultimately a chicken and egg problem here.

You should learn more about compilers. There is a really cool idea waiting for you.

grandempire··on Why I Program in Lisp
JavaScript and Python have adopted almost every feature that differentiated Lisp from other languages. So in comparison Lisp is just more academic, esoteric, and advanced.
grandempire··on Why I Program in Lisp
What is the impact on the user of having first class functions vs first class function pointers?

Last I checked when you implement lambda in lisp it's also a pointer to the lambda internally.

grandempire··on Pentagon to terminate $5.1B in IT contracts with Accenture, Deloitte
Yep, those are only the options - social security or hunter gatherer.
grandempire··on Pentagon to terminate $5.1B in IT contracts with Accenture, Deloitte
Yep, the image portrayed of every other government department is scientists in white coats looking at cancer cells in a microscope, or doctors bandaging soldiers coming off the battle field.
grandempire··on Pentagon to terminate $5.1B in IT contracts with Accenture, Deloitte
This is what I replied to in my comment above:

> Two things can be bad at once. The IT consulting can be too expensive. Cutting it all at once with no other plan can have disastrous consequences.

grandempire··on Pentagon to terminate $5.1B in IT contracts with Accenture, Deloitte
This is a nerd fantasy where you imagine your skills and expertise are what keep society turning.

Computer problems are fixable, and they are secondary, and there are many people and services who can be hired to fix them.

← PreviousPage 4 of 18Next →