Readit News logoReadit News
throwaway91111 commented on Concurrency in Swift: One possible approach   gist.github.com/lattner/3... · Posted by u/spearo77
rbehrends · 9 years ago
1. I think you may not realize what state of the art tracing GCs can accomplish. IBM's Metronome has pause times down to hundreds of microseconds.

2. It only takes freeing a tree with a few thousand nodes for it to become an issue. It happens in C++, too (heck, there've been cases where chained destructor calls overflowed the stack [1]). The reason why you don't hear more about it is because pause times just aren't that big a deal for most applications. In forum debates, people always discuss triple A video games and OS kernels and such, but in practice, only a minority of programmers actually have to deal with something even approaching hard real time requirements. Generally, most applications optimize more for throughput rather than pause times.

3. Yes, and it can be a problem for C/C++, too. It's rare, but not non-existent. Note that pools can actually make fragmentation worse for long-running processes.

4. Weak references work if you get them right. But for long-running processes, even a single error can accumulate over time.

> On the GC side, it seems like you typically get bursty, unpredictable performance, in both time and memory. Modern GCs work very hard to keep collection pauses as short as possible, but almost inevitably that means keeping garbage around for longer, which means using a lot of memory.

This ... is not at all how garbage collectors work, especially where real time is concerned. Not even remotely. I recommend "The Garbage Collection Handbook" (the 2011 edition) for a better overview. And ultra-low pause times are generally more of an opt-in feature, because they're rarely needed.

[1] E.g. Herb Sutter's talk at C++Con 2016: https://www.youtube.com/watch?v=JfmTagWcqoE&t=16m23s

throwaway91111 · 9 years ago
One note, in video games allocations are a major source of slowdown; don't allocate in your inner loop! Use object pools and arena allocators.
throwaway91111 commented on Superhuman is what Gmail would be if built today   techcrunch.com/2017/08/18... · Posted by u/Stanleyc23
blibble · 9 years ago
if it's a chrome extension there's nothing stopping a court forcing Google to add a modification for a certain user

no different to having your javascript decryption routines done by a website

throwaway91111 · 9 years ago
Sure, but presumably if you're worried about it you can sideload your own version.

Nonetheless you're absolutely correct; i would prefer firefox to chrome.

Dead Comment

throwaway91111 commented on Superhuman is what Gmail would be if built today   techcrunch.com/2017/08/18... · Posted by u/Stanleyc23
londons_explore · 9 years ago
I consider email a bit of a dead tech.

Outside the workplace, it's rarely used for personal messages anymore. It's limited to confirmation messages, promotional mailings, forgot password links and that's about it.

The days of email are over. Everything moved into silos like WhatsApp because they offer instant responses email could never offer and a nicer UI.

throwaway91111 · 9 years ago
What are you imagining the hayday of email to have been like? It sounds like you're describing AIM in the 90s, or SMS in the early 00's. Before that there was IRC if you wanted realtime responses. Email has always been async.

Mind you, nobody has ever introduced me to a friend via social media.

Meanwhile, SMS is still going strong. Who needs an app?

throwaway91111 commented on Superhuman is what Gmail would be if built today   techcrunch.com/2017/08/18... · Posted by u/Stanleyc23
oneplane · 9 years ago
So it's a local email client. Basically, what we already have but written in a less efficient language...
throwaway91111 · 9 years ago
Yea, but this enables things like e2e encryption without losing a search index.
throwaway91111 commented on NBC’s Snapchat news show gains 29+ million viewers in its first month   techcrunch.com/2017/08/18... · Posted by u/janober
grepthisab · 9 years ago
This is great, and I'm not really surprised by its success. The stuff they have on there now is just total, absolute garbage. Right now it's:

"Courtney (one of the karsidhins) is an Egyptian Goddess"

"How Much Porn is Too Much Porn"

"Is this the Big L for Drake"

I just cannot imagine caring about any of this stuff, and it uses a lot of data to just load the previews. It's so annoying I did my first Instagram story this week.

Good to see snapchat is putting together some content that you wouldn't see in a tabloid magazine. I realize I probably sound like an old man, which I am not.

throwaway91111 · 9 years ago
> karsidhins

Unrelated, but it's astounding how well that name communicates despite being terribly spelled.

throwaway91111 commented on Tech companies: make remote work part of your diversity and inclusion efforts   medium.com/@margotcodes/t... · Posted by u/margotcodes
CabSauce · 9 years ago
I meant innovation and progress in the sense of the sharing of good ideas, and solving shared problems. If a remote job only involves some kind of repeated task, it could probably just be automated.
throwaway91111 · 9 years ago
Thank god most code requires no innovation at all, and thank god i am the one automating others out of the job!

Unless you're working on research, it's hard to buy physical proximity reducing throughput; just latency.

throwaway91111 commented on Tech companies: make remote work part of your diversity and inclusion efforts   medium.com/@margotcodes/t... · Posted by u/margotcodes
jdc0589 · 9 years ago
innovation is relative. Sure, innovation on a global or market scale might not be common or necessary, but within the context of a single company the definition is broader.
throwaway91111 · 9 years ago
True, but I am highly skeptical most people will have issues producing this level of innovation from a coffee shop.
throwaway91111 commented on Google removes Gab app for violating hate speech policy – The Verge   theverge.com/2017/8/18/16... · Posted by u/rbanffy
stri8ed · 9 years ago
"as well as a sexist memo from a Google engineer"

This is why I no longer read the verge. Important to separate opinion from facts.

throwaway91111 · 9 years ago
This is why you finally give up on the verge? What would you refer to the memo as: a cool-headed rational argument? I don't even think the engineer understood what he was arguing for; misogyny isn't hard to see, regardless of the intentions.

The weirdest and most uncomfortable part is that he cares enough to alienate his employees, but not enough to encourage productive discussion. It seems like bitterness and resentment towards women.

While I understand why you might not like the phrasing, it speaks deeply about you that this is the one of thousands of verge factual errors you choose to criticize.

throwaway91111 commented on Concurrency in Swift: One possible approach   gist.github.com/lattner/3... · Posted by u/spearo77
breatheoften · 9 years ago
Why should ARC imply leaks?
throwaway91111 · 9 years ago
It doesn't.

u/throwaway91111

KarmaCake day889December 25, 2016View Original