Better HN
topnewbestaskshowjobs
Log inSign up

Agingcoder

1,724 karma · joined Dec 19, 2017 (8y ago) · 732 submissions

Submissions

comment 5y ago · link · parent

We do the same thing, but with a statically typed language.

We had started by distributing the changes manually across the team, which was slow and introduced bugs. We then switched to the fully automated approach, which was significantly fastet, and bug free.

comment 5y ago · link · parent

You can't : if I were in their shoes I simply wouldn't believe you, and would leave as quickly as possible.

You could try giving them 'unbreakable' contracts (pay X with X big if you end up firing them) but even then, they know that if it's only about money, they will eventually be fired.

Basically, it looks like you now have one giant trust issue.

If I were a bit cynical, I'd say it's a great way for US management to get rid of the entire Australian team without having to deal with the complexities of firing everyone at once (which might be difficult or expensive in some countries, I don't know about Australia ).

comment 5y ago · link · parent

You might be interested by pernosco, written by the same people. It's rather spectacular.

https://pernos.co

The recording overhead is the same (it leverages rr) but you can explore your bug to your heart's content.

comment 5y ago · link · parent

Rr was initially designed to reproduce flaky tests I think. They then realized that they could modify it for reverse debugging.

The recording overhead is quite acceptable, about 50%.

Rr also has a 'chaos mode' which changes the thread scheduling, and which greatly facilitates finding the 'unhappy' path.

comment 5y ago · link · parent

There is cross-platform support - just ada-market specific ( qnx, vxworks, linux, windows, etc) and for all kinds of embedded architectures.

I don't think osx is a target market in any way : their customers are unlikely to use macs in production.

comment 5y ago · link · parent

Ada is not a a commercial language. It's free, and the standard is free as well.

Adacore's support is excellent - you're talking directly to gcc/gdb devs. There is no intermediate layer. I've hit a number of nasty technical issues ( compiler bugs mostly), usually fixed within 48h. They then provide you with what they call a 'wavefront' which is essentially a patched version of the compiler which is supported as well.

It is true that the ada community is small, but there is no real other contender in that space ( embedded, formal verification, qualified toolchains, etc).

Edit: nvidia uses spark/ada (from adacore), it's not clear to me what other options they might have given what they want to do (video presentation in the link)

"AdaCore + NVIDIA Partnership | AdaCore" https://www.adacore.com/company/partners/nvidia

comment 5y ago · link · parent

The paradox is that in spite of the huge costs, very large companies are still moving to (or using) the cloud.

I've had this discussion many times where I work, and we've refrained from using cloud services since they are extraordinary expensive compared to what we can do internally.

Yet, people seem to be convinced that prices are ok, and that going outside will let them reduce their infrastructure footprint.

For some reason I don't quite understand, people tend to be attracted by the cloud, even when it makes no sense economically whatsoever, and talking sense into them is surprisingly difficult.

So yes, it seems obvious that people will choose the most cost effective solution. However, it seems like they don't!

comment 5y ago · link · parent

Yes, I actually had a graph theory session with 6 year olds ! We talked about graphs, graph coloring, eulerian paths, etc all with pencils and paper. It was a 'talk about your job to schoolchildren' day, and I thought they might relate to graphs.

It was so successful that all kindergarten teachers in the same school started doing it as well.

The unexpected part was the other parents, who looked at the poster the children had made about chromatic numbers complete with examples : quite sadly, they were a lot more scared than their children!

comment 5y ago · link · parent

(I assume you mean that by op's argument, we should abolish police)

You make them accountable/actually punishable if they kill someone ?

As to the death penalty, it's a bit different : you need law enforcement, you don't need the death penalty.

comment 5y ago · link · parent

Sorry I wasn't clear. They think they are making their point quite strongly with very explicit language, but are wrapping it in all kinds of polite conditionals and ifs and hidden meanings, making it, well, less explicit : they are being indirect.

Your cat is on your kitchen table, looking at the chicken. Me: Indirect : is the cat supposed to be on the table ? Direct : your cat is about to eat the chicken! get away cat!

Obviously, to one culture, the 'is the cat...' version is quite explicit and forceful. To the other, not at all.

https://multiculturalyou.com/2020/06/22/direct-and-indirect-...

(I didn't read the whole thing, but the first two sections or so are pretty much what I meant)

comment 5y ago · link · parent

There is another aspect beyond raw vocabulary and grammar, and that's unspoken cultural assumptions :not abbreviations and slang, but real misunderstandings caused by different understandings of what seems to be a set of perfectly obvious sentences to both sides .

A branch of my company went through a merger with another branch in a different country, and with a different language. Needless to say, it was difficult, and people didn't all take it well. The interesting part was that both sides thought the other side was being actively hostile, and were brandishing emails as 'proof'.

I was eventually asked to do something to reconcile both sides of the new merged team, since I am a native speaker of both languages and understand both cultures. I read the emails, and was flabbergasted. Side A could read email from B as hostile, but side B had genuinely sent something they thought was perfectly ok, and I could see why. The other way round was the same. To be more specific, some cultures are far more direct than others, and what seems offensive to one is perfectly acceptable to the other. The other way round would be saying something 'forcefully' but very indirectly, and the other side understanding it as 'no' when it meant 'yes'.

I ended up solving the problem by organizing a very nice lunch, where everyone realized the 'others' were actually nice and friendly human beings, and that email was not always the best way to communicate.

comment 5y ago · link · parent

Thanks! I was wrong then.

comment 5y ago · link · parent

It depends on your allocator - ptmalloc, the default linux allocator - is open source, and there's plenty of very robust open allocators (jemalloc, mimalloc, tcmalloc, etc). Understanding how your allocator works can be very important in certain contexts.

On windows I'd expect the default allocator to be a black box, but I might be wrong.

For garbage collection I strongly recommend this book (on top of the source code of your gc if available!) https://gchandbook.org/

comment 5y ago · link · parent

Ah ! Thanks for this. Being single threaded does not prevent you from having your process being migrated from one core to another though, no? Or do you mean that pcap captures are pinned?

comment 5y ago · link · parent

Indeed.

I ended up reading quite a bit about congestion control while investigating a different issue (sending data from a 25gb box to a 1gb one over a 10gb/100ms latency link didn't work well since the bigger nic would saturate the smaller one which then dropped packets, and this caused the tcp window to shrink significantly ), and it was extremely interesting. The whole problem of having multiple agents competing with different strategies and incomplete information to maximize their network throughput also reminded me of economics.

Tcp pacing essentially solved the problem (and if not available brutally traffic shape).

comment 5y ago · link · parent

It was perfectly reproducible.

The original symptom was very low throughput, which is what prompted the investigation . Without tcpdump, low throughput and high reordering, with tcpdump, high throughput ( which is why I couldn't figure out what was going on).

I'd be very interested if someone with kernel experience could tell me what's specific about tcpdump.

comment 5y ago · link · parent

Excellent article !

I got hit by the exact same issue which is described in the fermilab paper, namely packet reordering caused by intel drivers. It took me several days to diagnose the problem. Interestingly enough, the problem virtually disappeared when running tcpdump, which, after a lot of reading on the innards of the linux TCP stack, and prodding with ebpf, eventually led me to conjecture that it was a scheduling/core placement issue. Pinning my process clearly made the problem disappear, and then finding the paper nailed it.

Networks are not my specialty (I come from a math background, am self taught, and had always dismissed them as mere plumbing) , but I have to say that I came out of this difficult (for me) investigation with a great appreciation for networking in general, and now enjoy reading anything I can find about them.

It's never too late to learn, and I have yet to find something in software engineering which is not interesting once you take a closer look at it!

comment 5y ago · link · parent

I don't think I want to compare them - I dislike them both! One is too basic and cryptic, the other one is overly complex for a shell, and in the end, I want to use neither.

I'm not sure what the ideal shell would look like though. Maybe an actual (simple and expressive) programming language with a way to 'lift' statements ?

comment 5y ago · link · parent

It seems that MS has been investing quite a bit in its native/c++ toolchain over the past 2-3 years. Judging by what I've seen at the office, it wasn't in a very good state (very slow to build/link in particular, and very slow debug binaries ) .

Is this new, or is it just that they publicize it better? (I'm not very familiar with the windows dev ecosystem).

In any case, it's good that they improve it.

comment 5y ago · link · parent

>Some people enjoy socializing at work.

I do. I have small children, don't have a lot of time in the evenings, so work is my main social meeting place (granted, there are weekends with friends, but weekdays are much harder).

During the day, I want to talk to real, physical people, have lunch or coffee with them (probably a cultural thing), and talk about things. I sorely miss it.

While I understand that some people can cope with skyping people all day long 5 days a week and have no physical interactions, I find it incredibly wearing in the long run, and am not sure that most people can. It's a bit like comparing facebook and going to a cafe with friends : sure, both allow social interactions, but the quality of said interactions is vastly different with the remote ones fundamentally lacking.

I'd happily have a day of wfh per week though - perfect for uninterrupted, focused work!

comment 5y ago · link · parent

I remember my padi instructor (British, in Malaysia) as being completely paranoid, which was a good thing.

He essentially told us that any missteps would have very nasty consequences, and spent most of his time badgering us with safety precautions. He also encouraged us to dive with a guide, do refresher dives, etc.

The only downside is that I don't dive anymore now that I have kids, since I believe it's dangerous, and I'm worried I will make a mistake...

comment 5y ago · link · parent

While I'm getting (much) older as well, I have found that I'm much more focused when I want to learn something.

Unlike when I was 16 and essentially behaving like a sponge, I need to decide that I'm going to learn something, and actively go for it. Once I have turned the switch on, I can learn, and more efficiently than when I was younger since I have some kind of plan/target, and years of experience have taught be when I don't understand/think I know but don't and how to fix it.

In other words, I have traded raw natural learning ability for 'I'm slower but more efficient'.

comment 5y ago · link · parent

I suggest you tell them! They'll probably be happy to get some feedback.

If I'm honest, in spite of it not being perfect, it's much better than regular printf. The other very nice feature is dataflow (click on a variable value, and it tells you where it comes from, and it handles copies seamlessly), which makes a large number of debugging tasks trivial.

comment 5y ago · link · parent

(I have already replied to another comment with the same suggestion).

Pernosco offers the best of both worlds ( debugger, print), along with a few magical features.

https://www.pernos.co

With it you can print anything present in your recording and step, and do anything you'd do in a regular debugging.

comment 5y ago · link · parent

Yes, it's called pernosco, and it's quite remarkable. However, it works from a recording of your program.

https://www.pernos.co

comment 5y ago · link · parent

Why is it easier to halve with the imperial(I assume that's what you mean by 'English') system? Could you give an example?

comment 5y ago · link · parent

I find it interesting that the candidate is expected to interview the company as much as the company is interviewing the applicant.

It implies a significant degree of balance in power between employers and potential employees (ie, there's a shortage of software engineers in general, not only the wizard like ones, so there's pressure on the hiring side) which I'm not sure exists in many industries ( unless they're looking for specifically strong people who are usually in demand and not available ). In other words, for some jobs/in some other industries you probably just can't ask these questions without either meaning 'I'm going to be annoying to manage' or 'I don't understand that I should be grateful to just have a job'.

Does it make sense, or am I completely wrong?

comment 5y ago · link · parent

Security is not my line of work, but back in the days I spent a while exploring the field (I especially enjoyed reverse engineering / subverting software ).

Why is this 'operational discipline' remarkable? I'd expect this to be common sense (including waiting for two weeks) , especially if I was a state actor and had spent a whole bunch of money on it? Or do you mean that the vast majority of hacking operations don't even bother to do this?

comment 5y ago · link · parent

Indeed. However it can be bought in many other cases. Malta (full eu member) essentially sells citizenship for about 600keur.

"What price would you put on a passport? - BBC News" https://www.bbc.com/news/business-41013873.amp

"Everything you need to know about the Malta Passport" https://www.globalcitizensolutions.com/malta-passport/amp/

Since Malta is part of shengen space, a Maltese passport is highly valuable.

1
2122232425