Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,498 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 9y ago · link · parent

Not true at all, there are 20-50x speedups for some of the functions that have been optimized into Go assembly. Specific cryptography routines for which CPUs have dedicated instructions. Those are the kinds of places where you'd use it. If you want to write assembly because you think you can generate better code than the compiler, you probably can, but it also almost certainly will be underwhelming as you say. It's only really worth it when you're using instructions the compiler won't emit, like specialized crypto, math, bit counting instructions, or SIMD instructions.

comment 9y ago · link · parent

Plus you'd need a way to clean up the dead birds. I know my mother loves all her birds that come to her bird feeders (she names them!), she'd never install a wind turbine around her house.

comment 9y ago · link · parent

There's a floating wind farm being deployed off Scotland, so this could be possible in the future: http://www.bbc.com/news/business-40699979

comment 9y ago · link · parent

I also found this surprising. Cloudflare specifically always took the stance that it's not their place to censor the internet, which is why they permitted extremist/terrorist content[1] that people were pressuring them to remove. It amazes me that they kept that, but deleted the alt-right stuff. Now I think these alt-right websites are disgusting, but worse than ISIS?

[1]https://www.theregister.co.uk/2015/11/18/cloudflare_ceo_rubb...

comment 9y ago · link · parent

I know they're just a convention, but that was a mistake. It should have had more first-class language support so that they have stacktraces at least.

I'm seriously beginning to think that even with the limitations, panic is a better error handling mechanism for all exceptional error cases. At least it has stacktraces and doesn't clutter the code with error boilerplate. I don't think I'd be able to convince anyone of that on a real project though, I'd have to try it on a personal project.

comment 9y ago · link · parent

It's interesting how you think it's possible to do massive reforestation in Brazil and Africa. Think about massive reforestation of Europe or the eastern USA and I think you'll see the fundamental problem with it. That land has already been put to other use (mostly agricultural use) and cannot simply be reforested. The government would have to repurchase the land from each individual land owner to do that which is not at all practical.

comment 9y ago · link · parent

Which to be clear, is a language design mistake. Go would be a much more productive and friendly language if errors would just have stack traces on them when they're created. There's no reason to have the poor developer adding dozens of debug prints all over his (and sometimes third-party) code manually into every place that could have returned the error just to try and discern where it comes from. Or grepping for strings in the error message, or throwing darts at printouts of the source. That's just a massive step backwards from what we've had since the 80s and 90s. I know Go prides itself on being simple, but really the errors are too simple and we're all worse off because of it.

comment 9y ago · link · parent

I think ES6 javascript is actually a decent language. But the way it's used is terrible. Slow transpilers that give all the disadvantages of a compiled language - but with the type safety of a dynamic language. Asynchronous code that is slightly better with promises and async/await, but horrifying to debug with stacktraces that are often completely useless. NPM with its plethora of low-quality packages - yet it's not uncommon for packages to have hundreds of dependencies. And when you try digging into those packages to understand what they do, because there's no documentation, you find a mess of javascript magic. Globals, nested closures, "coroutines" using yield and function references and a dozen magical libraries that are nearly impossible to untangle. I found the development experience to be slow and extraordinarily painful. I actually find PHP easier to work with (but more soul crushing to write.)

I would much rather use Go or C# or C++ or Java (well Kotlin, because I don't like to write Java) the development experience is just so, so much smoother.

comment 9y ago · link · parent

Indeed, forget goroutines and channels. The most innovative thing Go brings to programming is gofmt. Between that and the simplicity of the language, it makes it so easy to dive into large foreign code bases and actually understand what you're reading. That's one of Go's strengths.

comment 9y ago · link · parent

My understanding, which is admittedly drawn from HN "napkin math" , is that at current prices for solar and wind, nuclear is a non-starter. That trend is only intensifying. It seems to me that nuclear could have been a good option, but because we've neglected it for so long, squashed innovation with regulations (not necessarily complaining that it didn't need the regulations!) it is uncompetitive economically and will likely stay that way for the near future. Amazingly enough even coal is uncompetitive in many parts of the world now too. The future is starting to turn green under the invisible hand of market economics.

comment 9y ago · link · parent

Arizona is in the car-centric USA. You walk straight from your car with AC into a shop with AC via the shortest path possible.

Spain, like most Europe is a lot more pedestrian/cyclist friendly and I'd imagine that traffic drops off a lot during the heat of the day.

I live in Canada which isn't anything near as hot as Arizona or Spain and I walk/cycle everywhere and I specifically avoid going anywhere from 11am-2pm in July/August if I can help it. sample-size=1, your mileage may vary.

comment 9y ago · link · parent

PlentyOfFish? That was pretty much a one-man operation for most of its history, they got bought for a billion IIRC.

4843.

Can a CPU function without RAM, using the internal cache instead?(electronics.stackexchange.com ↗)

6 points · by eloff · 9y ago · discuss

comment 9y ago · link · parent

On RAM, yes. On random IOPS and throughput to the 28.8TB NVMe storage - no comparison.

comment 9y ago · link · parent

$5.40/hour to rent one of these bare-metal bad boys:

OCPU: 36 Memory: 512GB Local Disk: 28.8TB NVMe SSD

That easily mops the floor with AWS and Google on price/performance ratio for running high end database servers. I suppose that shouldn't come as a huge surprise that Oracle's cloud offering would be good for running databases.

comment 9y ago · link · parent

Can you imagine the havok when terrorists figure out they can program cars to hunt and kill pedestrians in crowded spaces? Currently the terrorist needs to drive the vehicle, which makes it a suicide mission. How much more deadly would it be if it was reduced to just the cost of the car and a low chance of getting caught? How can we defend against this?

comment 9y ago · link · parent

Except after taxes and expenses you're lucky if you're saving $1000/month at that day job. After 40 years, assuming 5% annual compounding on your investment, which requires to be almost entirely in risky investments like stocks, you could end up with 1.5 million. On the other hand, 3 million after taxes out of the initial windfall of 5 million, at 5% return would let you pay the exact same expenses while still growing by over $5000/month. You'd end up with $30 million at the end of 40 years. Huge difference.

comment 9y ago · link · parent

"most startups today go out of business because they raised money" citation please.

comment 9y ago · link · parent

How can you check if an IP is good or spammy? It would be nice to get an elastic IP in the cloud, test it for spamminess, and give back the bad ones. Catch and release fishing for IPs.

comment 9y ago · link · parent

If you're non-resident in Canada, you only have to pay tax in Canada on Canadian-source income. Unfortunately, yes that includes a pension.

To be non-resident you have to spend at least half the year outside the country and have no residential ties to Canada like property, dependents, bank accounts, health insurance, etc.

See: http://www.cra-arc.gc.ca/tx/nnrsdnts/ndvdls/nnrs-eng.html

comment 9y ago · link · parent

Yes that's correct. Although, if you're working remotely you're not likely to be making much over $100K, so it may still be worth it. Your take home may still be close to working in the Valley, and your cost of living, excluding food will be less than half.

I'm Canadian though, so I don't have to deal with the long-armed-fingers-in-my-pockets embrace of Uncle Sam. Every other country in the world is sensible enough to only tax residents.

comment 9y ago · link · parent

Yes, that more or less sums it up. Plus you have fewer job opportunities and career mobility as well as higher taxes and rapidly rising real-estate prices in both Vancouver and Toronto. I think Canadian software engineers are crazy to stay in Canada.

I'm a Canadian software engineer living in Canada, but I'd never consider working for a Canadian or US company here and earning Canadian dollars - it just makes no sense. I work remote only (these days only part-time.) It isn't such a great deal as it used to be for me now that I have to pay Canadian taxes, but it was bloody fantastic when I used to live in Panama and legally paid no tax of any kind other than 7% sales tax.

comment 9y ago · link · parent

There are non-temporal loads and stores that bypass the cache, but last I checked the non-temporal loads don't actually work with cacheable memory types - this may have changed by now.

The cache partitioning in Broadwell can help with this. If you have a very noisy background task that accesses a lot of data (e.g. like garbage collection scanning), you could partition it with a small slice of cache so that it doesn't evict the data the rest of your application uses. I got myself a Broadwell Xeon v4 for my desktop specifically so I could play with this feature.

comment 9y ago · link · parent

Classic tragedy of the commons. Prices for fossil fuels don't account for the negative externalities, the costs of which are borne by all life on Earth and heavily biased to weigh on future generations. The people in the future that don't consume any fossil fuels will pay the heaviest price for their ancestors' carelessness. One could fix this quite easily just by taxing fossil fuels enough to factor into the negative externalities - except you'd have to legislate that, equally, in every country on Earth (or at least the G20.) But the temptation is for nation-states to cheat and advantage their own economies over the others by not passing that kind of legislation, Trump-style. I don't think it will ever happen, it's all quite sad and future generations will rightfully curse our short-sightedness.

comment 9y ago · link · parent

I'm skeptical because the paper seems to make no attempt to rule out ordinary matter causes for the gravitational lensing. That violates the golden rule #1 of publishing a paper, be your own critic. One should point out and address the biggest flaws in one's argument, and these people didn't seem to do that.

4856.

First-ever “image” of dark matter?(earthsky.org ↗)

1 points · by eloff · 9y ago · 1 comment

comment 9y ago · link · parent

You don't get real threads in Python thanks to the GIL - only one thread at a time can be executing Python code.

You can use processes to get around this, but it's often not as performant or convenient. Computer hardware shifted to multi-core a decade ago and Python was left behind because of that little bit of technical debt.

It used to be my favorite language, but I've since moved on to Go, both for the better performance and multi-core story, and for the static typing.

comment 9y ago · link · parent

Roughly 40% better compilation speed. Nice. Performance numbers from the bottom of the CL:

All benchmarks are from my 8 core 2.9 GHz Intel Core i7 darwin/amd64 laptop.

First, going from tip to this CL with c=1 costs about 3% CPU and has almost no memory impact.

Comparing this CL to itself, from c=1 to c=2 improves real times 20-30%, costs 5-10% more CPU time, and adds about 2% alloc.

From c=1 to c=4, real time is down ~40%, CPU usage up 10-20%, alloc up ~5%

Going beyond c=4 on my machine tends to increase CPU time and allocs without impacting real time.

comment 9y ago · link · parent

All of these can be summed up as the chicken-and-egg paradox, or network effects. You need users to make the app useful, to get more users, to make the app useful.

Look at how other business get around that, e.g. facebook launched to just one market first, Harvard students, then slowly expanded out one market at a time.

comment 9y ago · link · parent

Leaving aside how odd it is to see a "competitor" give business model advice, open core is a perfectly fine open-source business model. Pure support based models, with very few exceptions, leave too much % of value on the table to make a strong business. Purely closed models take away too many freedoms from the customer (but can be very successful nonetheless.) Open core is a very reasonable compromise. The problem with InfluxDB is that they pulled a bait and switch - they launched looking like they were going to be fully open, and then went back on that later.

But at the end of the day any compromising on open-source ideals is going to piss someone off - heck even just choosing one OS license over another is going to piss people off. It doesn't matter. In business you need to have a thick skin to stick to your conviction about what is best for both customers and the company - whatever that may be.

1
161162163
184