Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 4y ago · link · parent

You'll have a harder time finding work, as there aren't a lot of Rust jobs. That's why it's a signal that a person loves their craft - there's little financial incentive in learning it. When it comes to finding work, pick a mainstream language. This will change over time as Rust becomes mainstream, which I think is likely.

comment 4y ago · link · parent

I think I hit a nerve with this one. If you put out a job ad for any mainstream language (Java, JavaScript, C++, among others) you're inundated by applicants who have no business even working in this industry. If you put an esoteric language like Elixir or Rust, you get a smaller but much higher quality pool of applicants. That's my personal experience, I don't have hard data to back it up. Paul Graham once wrote about this effect in his Great Hackers essay [1].

Of course, the flip side of that is with a smaller pool of applicants, filling the position may not be any easier. It is harder to hire a poor candidate though.

John Carmack has actually played around with Rust. But I would like to reiterate that when generalizing about a population based on statistics, you might be correct more often than you'd be wrong (.e.g. men are more aggressive than women) but you can still easily find individuals who are exceptions. That you can find an exception doesn't disprove the rule. You still have to treat people as individuals, and not as a population. That should go without saying.

[1] http://www.paulgraham.com/gh.html

comment 4y ago · link · parent

I'm just a programmer who's been doing this for 20 years. I don't have the credentials of Mark, who is a legend. But I fully agree with him. There will be specific exceptions, but if you have the choice between Rust and C++ you would be making a big mistake to not choose Rust. The language is simpler, cleaner, safer, and more enjoyable to work with. The build tools are far more pleasant. The IDE experience is comparable. The hiring market is way better for Rust because it's not mainstream. Programmers currently using Rust are superior to programmers using C++, statistically speaking. There's a vast difference between individuals, but with only that one data point you can tell quite a lot. People learn C++ in college. People learn Rust because they love their craft. I stopped using C++ after I learned Rust. I still use Go sometimes, when appropriate, and I use other languages in my day job. I have a lot of experience in C++, much more than with Rust. The borrow checker still drives me mad. I've worked in over twenty languages over the years. Languages are tools, try to be impartial and pick the best tool for the job. Your personal tastes don't matter unless it's your personal project.

comment 4y ago · link · parent

I've also hit on doing this as well. I find it really helps to organize my thoughts, uncover edge cases, etc before I start to write code.

Then I might start sketching the implementation with function signatures docs, types, loops and calls, and gradually start filling it in beginning with the parts that are less clear to me.

comment 4y ago · link · parent

I don't think you'd even feel a magnitude 2 quake. Maybe it's different in such a tall building or maybe it was stronger in this area.

comment 4y ago · link · parent

They don't even matter when you're poor. We got rid of pennies in Canada. Prices are the same, but the final bill at the till is rounded to the nearest nickel. You don't lose anything, just the weight. I'd like to see nickels go away as well.

Now that I'm using US currency again the whole penny thing just seems pointless.

comment 4y ago · link · parent

Just as crazy is that we still have the penny. Worth less than the metal it's made out of. If you see it in the street, you leave it there. When you get home you empty the change from your pockets, and the pennies just end up taking up space in a drawer somewhere. Not worth enough to even bother counting to change at the bank.

comment 4y ago · link · parent

Rust doesn't help with implementing low level primitives like this, you'd have to use unsafe code.

comment 4y ago · link · parent

We don't know much, but I do think we know enough to say it's unlikely. We've never seen any evidence for intelligent life outside of Earth. Using Bayesian logic, that gives pretty good odds in favor of it being of natural origin.

comment 4y ago · link · parent

I agree it's very unlikely that it's something of artificial origin, but if it's just a rock it's far from uninteresting. It would be the first material recovered from outside our own solar system. It could be surprising in all kinds of ways.

comment 4y ago · link · parent

I remember paying $120 for a letter from Panama to the US via Fedex almost 10 years ago. And Fedex has a decent presence in Panama. It's not cheap by any means in one-off scenarios.

comment 4y ago · link · parent

Must be a DNS thing, it also works for me in Firefox for Android.

comment 4y ago · link · parent

It is not very effective from what I've seen. They would have been better off contracting with Pfizer or other Western companies that had effective vaccines.

Cheap made in China crap that doesn't work. I kid, sort of.

comment 4y ago · link · parent

Even at current prices he has millions of dollars in stock. People think in illogical ways, but I feel the reason must have been more than just financial.

comment 4y ago · link · parent

The solution is relatively simple, look for a job that doesn't do location based pay. Out of 8 offers I recieved earlier this year, three had location based pay, and I politely declined all three (ok, maybe with a little contempt in my voice) and told them that policy was the reason why. Your not here to change their policies, just move on and tell them why you did (after the new gig is secure.)

comment 4y ago · link · parent

This takes me back to some blissful days spent optimizing an integer compression scheme in AVX2. It's really a difficult instruction set to work with. The authors comment about a set of oddly shaped Legos is very apt. It often doesn't have instructions that cross lanes and often lacks the thing you need, so you find yourself hacking around it with bit operations and lookup tables. AVX512 is a huge improvement, but it still hasn't caught on in a big way over seven years later.

comment 4y ago · link · parent

I've watched crypto for years with interest, I've worked in the field, speculated in it with my savings, used it for international transfers, spent it, etc. That is to say I'm not some armchair critic.

I find myself lately viewing crypto as mostly a bad idea, or a bad implementation of an idea with potential, or even outright as a Ponzi scheme.

These smart contacts are really a bad idea. We have contracts in life with lawyers, these tend to work out pretty well because we can use our human intelligence to arbitrate them. The idea of code as law is really dumb. I say that as a programmer who works on code all day. Computers are dumb like your calculator. They do exactly what you tell them to. Which sounds great until you realize how hard it is to describe what you want in a way the computer can understand. That's why I make a good salary and people think my job is difficult. The reality is computers often do what you tell them, but it's not what you wanted. Rather you have the instructions wrong or you made a mistake. That's why software is riddled with bugs. Avoiding that is very, very, very difficult. Nobody gets it right. These crypto finance bros will definately not get it right. And when they get it wrong, there's no human, no court to appeal to. How's that an improvement?

comment 4y ago · link · parent

The suez canal is at sea level.

comment 4y ago · link · parent

It's really the combination of cameras plus internet.

comment 4y ago · link · parent

I haven't tried copilot in languages less opinionated about style, so I'm not sure how well it handles that case. In Python, TypeScript, and rust it seems to work well. In any case I use auto format on save, so that fixes some of the potential formatting issues.

comment 4y ago · link · parent

It's really more like a smarter autocomplete. I haven't tried it on a third party API yet, we don't use many at work. I work in a startup on a Python and TypeScript code base. To give an example, last night I was creating a unit test and copilot filled in the assertions. It missed one it couldn't know about, and it got two wrong. But it was a lot faster. The most amazing case to me was with a function to transform URLs to an image resize service. There was a bug in the function, it needed to return URLs ending in .SVG as-is. I went to fix the bug by typing "if" and copilot filled in the `if url.lower().endswith(".svg") return url`. It knew about the bug before I did. Too bad it couldn't do a code review when I originally wrote the function.

They have a 60 day free trial. Try it out, it's one of the most interesting changes in developer tools in a while. I feel like I'm living in the future sometimes when using it.

comment 4y ago · link · parent

I don't think UBI can work. I love the idea of it, but as soon as you have a democracy and state provided income, it's too easy to vote yourself a raise. Look at countries like Argentina, Spain, Greece, Venezuela, where there are or were a huge percentage of people on the dole. Their economies collapsed. You can't keep squeezing a small upper middle class to pay for everyone. We're pretty much at the limit there as it is in many countries. I think UBI is fundamentally at odds with human nature in a way that would prevent it from being successful at scale.

comment 4y ago · link · parent

As a new user of copilot for the last three months, I can't disagree more. I was initially skeptical, and I have noticed it often produces code that looks good but is wrong. However, it still saves me enough time each day to pay for the monthly subscription - in one day. That's a 30x ROI. I imagine it only gets better from here. I wont go back to programming without it.

comment 4y ago · link · parent

At those rates, it's a fantastic career. However, compared to software most careers fall short. I feel incredibly lucky that I chose software and that I love it. I was intentional about it, in that I chose software from when I was a teenager because I wanted to be rich and that's where I saw the money. 25 years later, I'm not rich (not yet anyway, haven't given up) but I'm comfortable. I'm probably quite poor compared to software engineers of my age, but it's been an amazing career so far, and it's far from over.

comment 4y ago · link · parent

We're in no danger of that even over ridiculous timescales.

comment 4y ago · link · parent

These are owners, not employees. Basically contractors that manage all the subcontracting in a construction project.

It can be physically exhausting work, and long hours for sure. Still, it's impressive that they can pull in those kinds of figures.

comment 4y ago · link · parent

It's definately not true. In Vancouver, Canada where there's been a bull market in housing for over thirty years straight, builders make a pretty good living. I've met some earning 250-400k a year. As a software engineer, I felt I was in the wrong business. That profit is part of the cost to build, yes. But it also doesn't have to be that high, that's really enabled by market conditions.

comment 4y ago · link · parent

Actually now I'm thinking you might be trolling.

comment 4y ago · link · parent

That's horrific. The crazy thing is I think you might be serious and not trolling. It's like something out of a Dilbert comic.

Typing is good, anyplace you can get the computer to check more of your work - the better. There are practical limits and trade-offs as always, but some typing is better than none.

Microservices are usually a terrible idea. I know they're popular, but I've only had bad experiences with them. I strongly recommend against microservices in most situations.

1
464748
184