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

Some become easier, yes. But I don't think it's that easy to tell how many threads access a channel. We have runtime race-checkers precisely because we don't know how to check that at compile time. Whether the specific case of channels in Go is easier, I don't know. You can in Rust because the language makes you specify which threads owns what and two threads can't own the same thing at the same time (as I understand it anyway.)

comment 9y ago · link · parent

They have Dmitry Vyukov, who's better at that kind of thing than me. If they want to fix the problem, they don't need my help. I would rather publish my work, and if they want to adapt it for Go's channels, they can do that with my blessing.

To me the tricky part seems to be how they need an implementation good for all cases. Performance engineering is all about tradeoffs. Memory usage, throughput, latency are often competing requirements and you have to choose one. Furthermore, unless they can somehow statically determine how many threads access a channel, they have to use a MPMC queue, which is a performance anti-pattern.

I would modify the language (maybe just make() builtin) to allow specifying what type of Channel is needed where, SPSC, MPSC, SPMC, etc. But we all know how that would be received.

comment 9y ago · link · parent

Furthermore, channels are slow. I only use them when performance doesn't matter, and even then I end up rewriting them into a mutex half of the time and simplifying the code in the process. It was a nice idea in theory, but the implementation is full of usage pitfalls and performance issues.

I use queues of my own implementation when I really need performance. But then I have lots of experience with that, and I have the implementation of maybe the world's highest throughput SPSC queue, outperforming the Lynx queue that was featured here on HN earlier in the year. I'm still trying to make time to write that up properly as a blog post (I hate writing blog posts.)

comment 9y ago · link · parent

Patreon is not going to replace all of the advertising supported websites...

comment 9y ago · link · parent

Then do it well and become a billionaire. I think many have tried and there's a fundamental problem with the idea if it never works. It's not just a matter of doing it well, you have to fix whatever everyone else has missed. I think the problem is the idea itself, it would explain why nobody gets it right.

comment 9y ago · link · parent

You're both right in that people make good content for free and for pay websites, but you're dead wrong if you think advertising dollars is not also a motivation. You will lose good content.

comment 9y ago · link · parent

Micropayments have never worked well on the internet, not for technical problems, but likely more that the market isn't really there. I know I just want free stuff and I'm not going to pay to read a news article or blog post no matter how well written or researched.

So at the end of the day there is still no viable alternative to advertising supported content. Kill advertising and you'll take the content with it, because many of the content producers and curators won't waste their time for no return.

I don't like ads, but I like my free content, and ads are an acceptable way of financing it.

Edit: I get that some of you really don't like ads, but the quality of comments here is abysmal. You guys are living in some kind of dreamland if you think you can just kill of advertising and not lose something in the trade off (PS imagine a world with no Google, Facebook, Twitter, Instagram, Snapchat, etc.) I honestly expect more intelligent commentary from HN, consider both sides of your argument.

comment 9y ago · link · parent

What immediately occurs to me (and I apologize if it's been asked already) is that you likely have to offer slightly below market prices to be able to make a decent profit and mitigate the risks. So someone in a neighborhood with a better than average home will not be enticed by the lower price and will likely sell through conventional means. Someone with a below average fixer-upper, will see the price as very attractive and sell through you. So anything that's just predicated on expecting homes listed on your service to be centered around the average value will not work. How do you account for this sort of thing if you don't see the house?

Also in a forclosure situation the owner needs to make a quick sale - your service would look very attractive (a killer niche of the market for you guys.)

comment 9y ago · link · parent

I think you're right in that any lasting solution must come about because it's in our best short term economic interests - because, by and large, it's how we make our decisions

comment 9y ago · link · parent

Wouldn't it be better if people in the Middle East would just get along? While we're dreaming of things that are out of reach for the time being.

comment 10y ago · link · parent

Go is a language exactly like that, but I still use lock free algorithms. The reason is even with a private per thread data structure you don't have atomic higher level operations like enqueue. So you need to disable interrupts around the data structure methods, both for the OS and the Go runtime. That will cost you more than a lock would, and afaik it's not possible from userspace on Linux (if it is I would love to know how!)

comment 10y ago · link · parent

You wouldn't use this kind of queue on an architecture like that anyway, just use a lock and a regular queue (the lock is not avoidable anyway)

comment 10y ago · link · parent

I specifically pay extra and fly longer to avoid the US when possible because the experience is so bad. That's money the US economy misses out on. Especially since it's much less likely that a US airline is involved.

comment 10y ago · link · parent

Echoing what colandrman says in a peer comment, current computers are shared mutable memory, and at least in x64, i.e. servers, coherent too. Immutability is nice, message passing is nice. It's certainly easier to reason about most of the time. But often (not always, sometimes it can be faster) there's a performance price to pay because you're layering an abstraction over the base computational model.

I specialize in lock-free everything mutable programming. It's a bloody nightmare to write correct code in an environment like that - but when done well it performs better than anything else.

comment 10y ago · link · parent

No, unless you setup VPC peering between the shadow lightsail VPC and your AWS VPC, otherwise you'll be charged at least the $0.01/GB on egress, and maybe the $0.01/GB on ingress into lightsail too (not sure, the wording makes it ambiguous, one would have to try it.)

comment 10y ago · link · parent

Not to mention much less user friendly.

comment 10y ago · link · parent

EC2 to S3 is already free. That's not true for all AWS services though. Also interzone bandwidth is charged at 0.01 leaving AND entering, making it the same as inter-region bandwidth costs. If lightsail is truly free for that it's a game changer.

comment 10y ago · link · parent

And piss away $3500/month just on rent for a one bedroom? No thanks. If I was single and living in SF I'd go for one of those hacker houses for sure.

comment 10y ago · link · parent

The fuse box is normally located in the garage anyway. It strikes me that it should be fairly cheap to install a higher amp hookup for the car in that case.

comment 10y ago · link · parent

Oh god, imagine being in a self driving car that does it's computing in the cloud - and then you enter a tunnel.

Obviously cars are not really power or space limited and they can't rely in connectivity. But it's funny to think about anyway.

comment 10y ago · link · parent

This can work and be a great, profitable business. But a lot of these kinds of markets are winner takes all. Which is why companies compete with VC money to be that winner. You don't have great chances of doing that without VC capital if you have VC funded competitors.

But your objective may not be go big or go broke - and you may well end up personally happier for being more balanced in your life. That's perfectly fine in my opinion, and very underrated here on HN.

comment 10y ago · link · parent

Actually I think these mostly succeed against Facebook where governments create an artificial environment by blocking Facebook.

Perhaps the most successful of the social networks that competed against Facebook on even terms was Orkut, and it's gone now.

Markets with strong network effects, like social networks, tend to be winner takes all. You'll never upset the market leader by making a marginally better product. If it's not 10 times better AND can't be copied by the leader you've got no chance really.

If Facebook is replaced it will be by people shifting to a different paradigm, not to an incrementally modified version of the same thing.

comment 10y ago · link · parent

It's for comments like this that I bother reading the comments here on HN. Thanks for distilling a complex subject into understandable-to-a-layman terms.

comment 10y ago · link · parent

You can do all that and be civil. It's not an either/or thing. Downvote.

comment 10y ago · link · parent

Also it's tough to stay really excited about something for years. I find the bursts of energy come in fits and starts. There are days the code just flows and others where I can't seem to motivate myself to work for more than fifteen minutes at a time.

comment 10y ago · link · parent

Just a heads up, after passing 50 hours of assignments and interviews, I turned down an offer from IBM because they wanted to own my side project. Stay clear of big blue if you like doing side projects, their legal dept is overzealous.

comment 10y ago · link · parent

Most people probably assumed the posters are male. More programmer dads out there than programmer moms. You seem to be a little defensive?

comment 10y ago · link · parent

Much saner than abusing templates for this purpose. Faster, better error messages, and miles more readable. I look forward to the day when all the metaprogramming inside boost is rewritten to use constexpr.

comment 10y ago · link · parent

An IoT device is not going to have a satellite hookup. The things are about the size of a pizza.

comment 10y ago · link · parent

Well I doubt that zombies would readily suck up that much time, but VCs would rather all their portfolio companies take bigger risks if it increased the chances of a runaway success. Much better for a VC if twice as many of their companies fail, but they get just one more unicorn. All the returns come from unicorn companies, it follows a power law distribution.
1
163164165
184