HN Simulatornew | past | comments | lists | submit | accelbred's commentslogin

I literally had to copy paste one dns record to enable it.

Its truly arrogant of website authors to think they should have the final say on how users view the site on their browser.

AFAIK, its detectable by the web page though

This looks awesome! I especially like that its not detectectable by the page for privacy! I want this in firefox.

They say it can’t be detected but give it time and someone will figure out some signal that gives it away.

I am working on a language that was C with extensions, transpiled to plain C, but the C syntax is kinda not great to work with (stuff like needing type tables and unbounded lookahead). At the point you clean up the syntax, you're not really C with extensions anymore.


Many of the big C++ projects I've worked with have custom string types since the standard one was defficient for some reason or another.


Exactly, and a simple usable string type is just a struct MyString { char *buf; size_t len; }; away. Actual magic is in how you use it, where you allocate it, how you integrate allocation and formatting and logging and I/O... i.e. all the things that aren't solved by crufty complex std::string either.


So simple, and yet most C projects never do it.

Plain C strings all over the place.

Since I learnt C in 1990, knowing to count up to 10 is enough, for the amount of times I saw it actually being done.


The projects and people I follow do this all the time. Just like putting a size field near each regular non sentinel terminated array is useful. But if not doing it (maybe linux kernel in many cases), no big deal either, don't sweat the small stuff. String slices are small and rarely perf critical.


And yet zillion ways better than C strings, which was the point.


You cant touch C++ without bringing the object lifetime stuff in. And unlike strict aliasing, theres no flag to turn it off.


Object lifetime is the entire point of C++ and it solves ~100% of the emergent flaws in C programs.


I was just dealing with this: https://bugs.gentoo.org/show_bug.cgi?id=974323.

Also std::start_lifetime_at is a hack and ive seen nobody using it in all the placed where it aught to be used.

If optimizing based on object lifetimes could be turned off, itd be turned off everywhere for hardening like strict aliasing is.


In my personal opinion, the fix[1] for that issue clearly implicates C-style habits polluting a C++ code base. No right-thinking knower of C++ initializes objects with memset! Also I believe that -Wall would have flagged that, and I know for certain that cppcoreguidelines-init-variables + cppcoreguidelines-pro-type-member-init would have flagged it.

1: https://github.com/llvm/llvm-project/commit/905a88b923433eb8...


The only decent linters I know of for C++ are clang-tidy and coverity and they are not good enough.


If the goal is language subsetting, they do the job just fine.


Can clang tidy restrict RAII entirely? Or any other linter?


Pair programming is a great way to do knowledge sharing and collaborate on tricky problems. Now, I don't really want a multiplayer editor, but I'll highly contest that coding is solely a solo activity.

Sometimes I feel like people online hate all their coworkers. Thankfully, such people have not been highly represented amonst those I've worked with.


It's not hating coworkers. It's more that state of flow is not compatible with collaboration with other people. Getting to pair programming flow is basically like the neural "Drift" in Pacific Rim: it just doesn't work with two random people, or with shifting moods, energy levels or priorities.


I don’t get in flow but I do feel like it’s similarly productive though. Right where I would lull in energy or lack the motivation to think through something difficult I can unload some of that on the other person and feel like as a pair we are keeping each other accountable. Can be productive this way even without the same flow state.


There aren't that many good ways to mentor or share experience in a team without pairing though. Sometimes it's just better to sit down with someone and directly collab, and let the person with less experience do the driving so they get the muscle memory. This is an easy transfer of skill and knowledge and it works well because it's hands on.

AI doesn't make that very easy if you're just two people staring at an agent, but I think a lot of people who aren't already senior are going to hit a wall they can't climb when their experience limits what they are capable of doing with AI.

As with many things, usually the bad experiences with collaborative methods come from a specific implementation and those experiences become the bias.


You reach a different kind of flow state with two people, if you have chemistry. I think it’s a more productive flow state than the solo flow.

But, it’s not 2x. Companies are cheap, they don’t want to pay for it.


It does happen, but it's very very rare. I met maybe 2 people in my career I could do this with.


That actually makes the "Drift" analogy perfect, because you have to be "Drift compatible", you can't just grab two people off the street and throw them in a Jäger together and have it work.


It's less hating coworkers and more enjoying the perfect logic that comes from interacting with a cpu versus the fuzzy nature of human moods etc. It's likely why a lot of people (myself included) got into coding.


Ah, now I hate all my coworkers because I don't want to share a keyboard. Incredible insight.


If you're not sitting in a group of 5 watching one guy code, then you're not a team player.


Bro I can drive the car alone why do rally racers have two people in the car? Now I hate my coworkers because I don’t want to share a wheel? Smdh


I read "coding" as literally the act of being in the text editor and writing the code, not the encapsulating job of defining requirements, desigining a solution, etc. which is definitely not a solo activity.

But I agree with OP that when comes the time of sitting down and writing the code, it is a solo activity. I want to lock in and not see multiplayer cursors or avatars popping up around the editor. The part before and after that are for collaboration, but writing your piece of the code is (or at least I like it to be) solo.


pair programming is when two people collaborate on engineering decisions while one of them codes.


Yea that never made sense to me. I think and solve problems as I code, and having someone yapping while I'm trying to do that is a great way to disrupt my thinking process.


In my limited experience, the 'pairness' part of pair programming , is best done in silence. The discussion / planning happens up front, the keyboard person does the implementation and the second person doesn't 'backseat drive', but thinks about test cases (writes it down), thinks about weaknesses (writes it down) and writes documentation while the code is written.

All of these are reviewed before commit.

The 'interrupting' while coding is the shitty part (I agree with you), not having someone working with you.


I don't really see how this provides any benefit over pairing asynchronously, pinging with questions or updates on what's shifted, sharing pull requests, requesting comments, etc.

This process respects each other's time and allows each person to visit the relevant pieces without interruption. The common rebuttal to this is "Slack messages are too interrupting!" and my response is: ignore the message until you're in a good spot to address it, or if you can't spend meaningful time on it yet, just reply with an "I'll check this out later, thanks!"

The idea that we have to sit on a video call in silence while losing the ability to think and write privately is such a huge distraction. Half of my mental bandwidth is occupied with self-consciousness of being "watched", or if I have my video off, it's the idea of being present and tied down by simply being there.

As someone with ADHD, those circumstances do not mix and eliminate any possibility of being productive because it's too distracting on all fronts. Not to mention, I need intense music to really get in a flow state. You might be surprised by how many engineers feel this way because they similarly experience neurodivergent realities around this.


You might be working on much smaller and well constrained problems, pair programming works well when the problem is unconstrained with many complex and interconnected layees


Maybe it does for you, but everyone is different. It is annoying (and sad) to see both sides asserting their experiences as universal truths.

I cannot stand pair programming, but I don't begrudge that it might work for some.


And for some of us it works great… sometimes.

Like, not as a rule. There are times when it would be helpful to have my trusted coworker helping to work through something. The answers aren’t all obvious and we don’t know exactly how it’s going to go. We’ll feel it out as we go. He has better instincts for some stuff and I have better ones for others. We’ll get there better and faster pairing.

But most of the time we have our own stuff to do and have our respective things well in hand. Then there’s no reason to force a pair programming situation.


Pair programming is also a great way to foster anxiety, shill arguments and have your engineers hate each other worse than they hate the job.

I like my neighbors and love to spend some time being nice to them. Pair programming is the equivalent of being forced to live with a random neighbor in your home and you both still pay full rent/mortgage of your respective homes.


I am willing to bet there’s a strong correlation between people who post/comment on Internet forums and anti-social behavior.


There’s tons of reasons

- antisocial people

- larpers and students and shit who don’t even have a job where they write code but comment like they do

- people who don’t do shit for 3/4 of the day and don’t want to be accountable for that

- people who work with too many idiots

Probably lots of other reasons. Personally I think it’s fun and useful, but I wouldn’t want to do it exclusively. Maybe scheduled hours a couple times a week. LLM aided development can be very similar experience.

Also a great teaching tool.

Big part of my job currently is taking slop level Pinocchio prototypes and turning them into a real boy. I’ve decided that I’d much rather have all of the conversations these people have had with Claude when creating the project than the final code artifacts. Hopefully we get more tooling in that direction.


ASOCIAL people prefer solitude.

ANTISOCIAL people doesn't care about society, are harmful towards other people, break laws, etc.


If you’re trying to diagnose a personality disorder sure. If you’re just using it colloquially then no it doesn’t matter.


Of course it matters, using "antisocial" in this context is plain ignorant and wrong.


No, it’s completely correct.

Dictionary definition #1 from dictionary.com for “antisocial”

> unwilling or unable to associate in a normal or friendly way with other people.

Furthermore, were you or the original pedant actually confused by what I meant? I seriously doubt it.


God forbid a well-meaning person need privacy and solitude to get work done in a meaningful way, just as other inventors and geniuses did in their private homes throughout history, and later came together with others to share their findings.

This idea that we need to be married to other co-workers throughout each day has all the same dysfunctional attributes as a nanny state or a daycare, where employees are treated as untrustworthy and needing to be monitored at all times.

The fact that talented engineers are able to contribute meaningfully, with few errors, and with brilliant solutions, all on their own, is proof enough that coding in solitude is a completely reasonable preference, that's shared among most of the engineers I've met in my career.

There's no reason to be so dogmatic about this.


Hey docmars you want to pair on this?

NO TOM I DONT WANT TO FUCKING MARRY YOU GOD FORBID, ME, A TRULY TALENTED ENGINEER AND GENIUS, TRY TO GET ANYTHING DONE FUCK THIS FUCKING NANNY STATE BULLSHIT as you return to clipping your toenails in the office


This was genuinely funny, gotta hand it to you.

I wish I were this insufferable, alas.

Truthfully, I don't mind pairing on something if someone needs help and doesn't mind doing it asynchronously instead of sitting on a video call all day pointlessly when Slack will work just fine. :)

The reason I went to hyperbole with this one was because a prior startup I worked for required everyone to pair on every ticket, whether they liked it or not. I simply refused, and they were fine with it, because they liked the work I did. If I needed to collab on anything, I'd just talk to the other engineers. And guess what? We survived and did amazing work together as a team!


This was modeled after my former coworker Tom who had to be told not to clip his toenails in the open office, and then told not to do it in the lounge room even if he was alone


Its unfortunate that this is using eBPF and not cBPF. I'd want to enable this in a namespace using binfmt-misc's namespace support, but eBPF requires root.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: