Better HN
topnewbestaskshowjobs
Log inSign up

Beltalowda

5,211 karma · joined Jan 21, 2022 (4y ago) · 1,591 submissions

Submissions

comment 2y ago · link · parent

Cheers; I've always difficulty mapping those pprof graphs to actual concrete code and I never managed to get anything more useful out of it.

This is the biggest take-away from this post to be honest; had no idea it could do anything like that. Sometimes it's the little things...

You can get something similar with the CLI using:

  go tool pprof -weblist='mypkgname' cpu.out     # Generate HTML and open
  go tool pprof -list='mypkgname' cpu.out        # Generate text to stdout

comment 2y ago · link · parent

How did you generate the timings on: https://benhoyt.com/images/go-1brc-profile-r9-source.png ?

comment 2y ago · link · parent

> got burnout and disgust at the modern tech hiring practice.

In my experience it's even worse outside of tech.

Because I really need a job I've just been applying to everything. Minimum wage: I don't care. In a way I'm actually looking forward to just show up, do my job, and go home, without stress.

But I get almost no response on those. And I actually spent MORE time for cover letters for those than the tech stuff. On tech I get a response (interview or rejection) for about 1 in 4. Outside of tech? About 1 in 30.

I guess "15 years CV as software dev, that guy is too smart for us" or something like that.

I keep reading about "labour shortages" for lots of low-skilled jobs... Hmkay...

Also not eligible for social security because I'm technically homeless (as in: renting "unofficially").

Might be properly homeless soon... No idea what I'll do.

I don't have a right to work in tech or a high salary, and fine, there's a downwards turn. No problem. But that I have no options beyond "burn all your savings and go homeless fuck you" has left me rather ... disappointed.

Anyway, what I'm trying to say is: it's not "tech hiring" that's the problem. It's just "hiring" or "companies" or whatever.

comment 3y ago · link · parent

A good Belter never wastes anything.

comment 3y ago · link · parent

I find myself wondering if my email is broken. Which is to say I get very little reply.

Compare this to a year ago when I got a reply to almost every application I sent out.

I'm kind of kicking myself for being so picky; I haven't had a job in a few years and running out of money (I was never that well-off, but coming from a working-class background I don't live an expensive life). I've had a few bad experiences and I wanted to find something I really liked (I actually had a very well paid "Silicon Valley type" job for a company most here will know last year which I quit after 3 months because they gave me fuck all to do and I felt their engineering ethos was horrible – it just didn't feel right accepting a huge salary and not working for it).

comment 3y ago · link · parent

The conflation between "not a morning person" and "lazy" is completely ridiculous, and seems to prevail mostly in countries with a "protestant work ethic" background.

I've literally been fired from jobs where I was one of the better performers for the singular reason for struggling to be there at 8am every day, and where this didn't matter at all for the position if I started at 8am or 10am (for some positions it obviously does matter). That I often worked longer than many others didn't seem to matter; people take it as a marker and that's that.

5:30am is utterly ridiculous; that's just the middle of the night.

comment 3y ago · link · parent

On punchcards having it as the highest character (with all holes punched) is the only way you can reliably do "delete" or "ignore" outside of having a special dedicated hole for it.

comment 3y ago · link · parent

You can still use multiple windows, but it hasn't been the default for a long time.

comment 3y ago · link · parent

Murdering one person is murder; murdering a substantial number of people in a region is genocide. Scale can definitely change the fundamental nature of something.

comment 3y ago · link · parent

I wll strt mttng vwls frm my cmmnts t rduc nrgy cnsumptn. Svng th plnt n vwl t a tm!

comment 3y ago · link · parent

That depends on the settings used for less; AFAIK the default for many distros is to display control characters.

comment 3y ago · link · parent

> this type of policy changes on a whim

Ehh...

"I want to share another idea in this post to keep it open-source [..] Let me know what you guys think" is not a "policy change on a whim". It's an idea. It was not "walked back" on, because it was ... just an idea.

Your comment is a horrible misrepresentation of what's actually in the post.

comment 3y ago · link · parent

The downside of that is that piping to less won't display colours any more either, so then you need "progname -color=always" or some such. Some programs solve that with a built-in "pipe to terminal" feature, but I always find that a bit annoying.

I don't know anything about terraform, but I've written some applications where I intentionally don't automatically change the output (which in my case is usually bold text, I don't use colours much) because I expect no one will ever use the output for scripting . That's not "poor programming", it's a choice because there is no perfect solution that fits 100% of the cases.

I suspect that may probably be the best choice for terraform as well, but I never used it.

comment 3y ago · link · parent

There is no "50 years of technical debt". If anything, a significant amount of complexity has been removed compared to the 70s and 80s when everyone and their mother was making wildly incompatible terminals (actual terminals that is, not software terminal emulators).

You don't really need to know anything about shells to write a CLI app, other than basic shell conventions (- for flags, things like that). You don't even need to know all that much about terminals, just some bare basics if you want to do colours or whatnot. All of this can be summarized in a page or two.

If you want to write a ncurses-like library: that's a different story. But then it's no longer a CLI app.

comment 3y ago · link · parent

That's kind of what aliases are for.

comment 3y ago · link · parent

It's useful if you want to write interactive applications from scratch ("curses-like"). Beyond that ... probably not so much.

comment 3y ago · link · parent

You don't need to "step through 40 years of organic development" unless you want super-fancy things like an interactive TUI with mouse support or whatnot (and even then, it's not that hard). For most regular CLIs you need a few control codes which are pretty much universal today (setting text attributes, clear line) and that's it.

CLI apps are probably the easiest applications that accept user input to make. Compared to GUI or web apps the amount of knowledge you need is almost trivial.

comment 3y ago · link · parent

Repost from a few days ago (61 comments): https://news.ycombinator.com/item?id=34315499

comment 3y ago · link · parent

No doubt; same in Netherlands (more pigs than people in the country). But there's been improvement over the last 20 years on the animal welfare front, at least in the Netherlands and presumably Denmark too. And routine administration of antibiotics is banned everywhere in the EU now, AFAIK without too many exceptions.

comment 3y ago · link · parent

If someone gave me a big bag of money then working on a better dating site would probably be what I'd do with it. I think it's very hard pull off as a "personal project" though, because a dating site needs people to be useful and attracting people is neither free nor easy. And you also need some form of "content control" to weed out the dickpics and other assorted assholery, which is also neither free nor easy.

> Of course, the whole premise of dating sites is wrong. The best way to make connections is in person, by going places regularly and seeing the same people frequently... building some non-romantic connections first which may grow into something more. Dating sites assume that if "I think I like you" and "you think you like me" then we are a match!. This sets up big expectations too soon...

In principle, I guess, but my experience is that many social spaces of all types are overwhelmingly male. There are probably some commentaries to be made about that, but I'm not sure what.

And while it can set up certain expectations, I don't think that needs to be a bad thing, necessarily.

comment 3y ago · link · parent

Also there's less need for it in the first place as welfare conditions are usually better. Who could have expected that livestock that's not kept unhealthy conditions tends to be healthier.

comment 3y ago · link · parent

You can just replace "men" with "people" and it still works.

comment 3y ago · link · parent

Seems like some way to be better aware of "service days" would be the solution (e.g. reminders or the like)?

The second seems like a more difficult problem to solve on your own; it's really up to the city to clearly demarcate where you're allowed to park and where you're not. 10cm on 10 metres is kind of ridiculous. This is a political thing.

I don't really see how this data can meaningfully help, other than maybe some sort of "lots of people have been fined in this street, so be aware to check where you're allowed to park"-type of warning.

comment 3y ago · link · parent

IMO the big advantage of languages like Go in this space is that you can ship a binary to your users and that will Just Work™. Shipping a Python tool tends to be significantly more complex either for your users who will have to set up Python + dependencies, or for your build (e.g. the Python AWS CLI just ships an entire Python environment, which is a "solution" of sorts I guess, but it's not very easy or simple to do).

I don't think Go has to increase more friction in the dev workflow, but it probably does require a little bit (one-time) more effort to get it right.

comment 3y ago · link · parent

I think what we've slowly come to realize is that "liberalizing trade" only really works if everyone shares roughly the same values. Even trade between the EU and US can be stressed at times due to this, and they largely share the same high-level values. But not always, and can differ quite a bit on details.

comment 3y ago · link · parent

Indeed, that was my point: it's not an isolated incident, but a pattern.

The people in charge (in politics or business) are in charge due to the current system, so they have very little incentive to change it and have a lot of incentive to keep it as it is. Why doesn't Labour push for a fairer electoral system even though the current system is generally biased towards the Tories (and has for many decades)? Because when they are in power they are in power due to the current system.

This also works through to the middle class: if you're having a good life then you're having that due to the current system. Why change it? It's not a coincidence that people who are least established (the underclass, students, oppressed groups) tend to be the ones advocating for change, but they're also the worst positioned to actually enact such change.

So change happens through drastic events such revolutions, which brings their own risks and often don't change things for the better. You'd expect that people are familiar enough with history to pre-empt this, but it seems not. "Ah, I'm sure it'll work out in the end" seems to be the prevailing attitude. Maybe, or ... maybe not?

comment 3y ago · link · parent

Everyone deflects responsibility to everyone else.

Consumers say government should do something or that businesses should change their ways. Businesses say what they're doing is legal and merely catering to consumer demand. Government says businesses should "self-regulate" or consumers should choose different.

You see this pretty much everywhere, from climate change to those ridiculous SUVs that are a danger to everyone to basic animal welfare in food production, etc.

comment 3y ago · link · parent

We could simply give the coal workers a sort of "pension".

40k people at $60k a year is $2.4 billion/year, which is a tiny fraction of the annual $4.8 trillion federal budget. You can structure parts of this in different ways outside of a blanket cheque, such as ways to incentivize starting businesses, credits for free education, or whatnot. It's still a lot of money, but the benefits are probably worth it, IMO. If $24 billion/year in student loan forgiveness is possible then I don't see why this isn't.

Politically it's a non-starter so I don't expect anything like this will happen. The GOP seems more concerned with simplistic "culture war" chest-beating and the Dems don't seem overly concerned with the plight of the working class and have their own style of simplistic culture war chest-beating (albeit less egregious).

comment 3y ago · link · parent

We've seen the same thing with tobacco, asbestos, lead, etc.
12345
54