skysight-inc/HackerNews huggingface dataset:
Working on my algorithm and abstract data structure implementations. Linked Lists, Binary Search Trees, Hash Tables.
What do you think about
http://viewflow.io/
https://github.com/viewflow/viewflow ?
Are you sure that this didn't happen already?! ;)
Things like alignment support didn't come out in g++ until 4.8 [1] but now you could start actually do most of what the EASTL is doing aside from the access to private members

[1] https://gcc.gnu.org/projects/cxx0x.html
> What's next, DRM in cats?

Yup! Except foxes:

https://en.wikipedia.org/wiki/Domesticated_silver_fox
Increasing SASS Compiling Performance or “When Every Second Counts”
The book is quite good for elementary distributed systems theory. You would not want to design sophisticated systems from nothing but the principles in that book but it does a nice job of outlining the areas of theory that you need to understand in order to excel at it. Each of the chapters hints at topic areas that require a much deeper dive if you want to master distributed systems. Like Wikipedia, it is merely a starting point. For example, the discussion of greedy routing theory barely scrapes the surface of what is known about designing distributed system with approximately optimal aggregate system throughput.

You can get by in many cases without fully understanding the topics in this book. Most popular distributed systems that exist today ignore fundamental concepts in at least one of the theoretical areas discussed. But that is also why distributed systems tend to be brittle or exhibit mediocre scalability. The book doesn't fully explain why some of these areas are important but if you study each of the subject areas, it will become obvious.
Well, yeah, I agree that the SPL types are nice to have. My complaint is that PHP's only first-class array type is a weird array/map combo. Have you ever seen anything like that in another language?

The SPL types are definitely a welcome addition to the language, but they feel like add-ons. Definitely not first-class. The standard array functions don't work with SPL types (array_map, etc.) even though the SPL types are iterable.

More to my point, missing from SPL is a dynamically-sized array that's not based on linked lists. Linked lists don't have O(1) lookup. This type of array really should be first-class, but it’s completely missing from the language. Please correct me if I’m overlooking something!

That said, I believe having separate, first-class, dynamic arrays and maps would strike a better balance of dynamism, performance, and predictability compared to the single existing first-class array/map.
To elaborate, I'll paraphrase Adam Carolla by pointing out that the worst thing you can do is give someone a free house in a place they don't want to live. You'll find that person unhappy, clinging to the free house 30 years from now. Indeed, I think most of us here derive our most intense satisfaction from creating and pushing forward. It's not hard to see how a system that makes a handout contingent on not advancing could have unintended effects. Again, I'm not suggesting that we let people die in the streets. I'm suggesting that the stuff DFW is sympathetic to is a much softer form of charity than that.
While the C++ language is indeed a superset of the C language, the paradigms of modern C++ have almost no overlap with those of C. See for example the string qsort vs string std::sort elsewhere in this thread.

The myth in "To understand C++, you must first learn C" is not that C and C++ are unrelated. The myth is that learning C helps you understand C++. The reality is that telling people to learn C first is an excellent way of getting them to write really bad C++ when they switch over to C++11.
what I can grasp is like 1. be socialized and 2. be dynamic for the change overall from these essay.

How can you be dynamic?
you have to be watchman of the society.

if anything wrong in my perspective, please correct me
What is wrong with 16 hour shift?
As much as the rotation idea is interesting, and can be beneficial on the surface, I'm not sure if doing so on a recurring basis provides more value than interruption and the setup/teardown costs of context switching.

Sure, a non engineer could learn a thing or two about how code works, and an engineer as well on handling support, but I'd be cautious about these sessions leading to a false sense of understanding how things actually work, which might eventually lead to, for example, a support person making wrong assumptions about an issue a customer is having just because he/she paired on the relevant code base.

IMO cross disciplinary 'rotations' should happen naturally, instead of making it explicit on a certain day in the quarter. Engineers should have exposure on a day to day basis on what customers want as well as have exposure to the product and business side of things in the planning stage of a sprint, understanding why a story or task is prioritized the way they are, etc. Same goes for non engineers like product managers or support personnel who often deal with engineers on an ongoing basis, and the sharing of technical knowledge should come naturally with each discussion.
Thanks, we'll keep that in mind for the next survey. That's something we went back and forth on - those are always some of the most interesting fields, and we didn't want people to consider the field as unimportant and skip it because they were optional. On the other hand, I can see that it would be annoying for it not to tell you you're missing fields until you submit. Maybe we can try editing it tomorrow to do a quick a/b test and see if it has an effect on % (good) responses for those questions...
This sounds like an amazing idea to me as well. I have half a mind to make this. Maybe a simple version at first with HN type style then progress to talent matching and more. Thoughts?
Ask HN: Startups for Startups, Health Innovation for the Self Employed?
Today I saw Pact Health (https://pacthealth.com/) and have had previous experience with Sherpaa (https://sherpaa.com/), but is anyone aware of any companies that are bringing this new wave of health care and insurance innovtion to people who aren't employees? Artists, Freelancers, Very Early-Stage Startups, etc... Thought I'd take a flyer and not quite sure this is an ASK:HN worthy question so feel free to delete...
real sad to see that such a small percentage of the population is gaining so much. I'm for more progressive taxing. Education isnt return the amount it used to. Though I'd love it if more people studied - I don't think the top 0.1% should be allowed to enjoy so much.
I guess that'a a perfectly fine attitude assuming you never share any code with anyone.
You still haven't demonstrated that you understand what "passive voice" even is. I think you'll find this article doesn't make particularly frequent use of it.
For at least half of an hour, most requests failed with 503.
Thats the primary reason I would buy a kindle over an iPad. Its not comparing e-readers and books, its comparing a bright screen with books.
The study ignores real e-readers with e-paper displays that mimic dead tree books extremely well. They also have a sample size of 6 for each of the 2 groups...
It is both nice and concerning, that an ubiquitous element of a ubiquitous language has that much potential for performance optimizations after 19 years of development. The optimizations were not even complicated hacks for edge cases, just a simpler implementation overall.

But then again, PHP itself being stateless between requests is quite fast already, nice to see even more performance getting squeezed out. Imagine the decrease in global energy consumption due to this change. :D
Oh? Lifetimes are that flexible? It's been a long time since I looked into Rust, so I had no idea. I would thought it was difficult to decide when to free an object, if it is linked to by two separate data structures and one of them goes out of scope.
As long as somebody is "creating jobs" you have nobody but yourself to blame for your hardships. It is like a pacifier to stick in the public's mouth.
You know, it can't be a false flag until there's actually a flag. Has anyone claimed responsibility for doing this yet?
Probably the only useful line in the article:

> The light emitted by most e-readers is shining directly into the eyes of the reader, whereas from a printed book or the original Kindle, the reader is only exposed to reflected light from the pages of the book.

So it's talking entirely about brightly backlit tablets, not e-readers with e-ink.
Just because some people posing as anonymous rejected the hypothesis it doesn't mean no other people posing as anonymous still accept it.

Also, you seem to ignore the fact that many people posing as anonymous would take part in an action like that regardless of what they believe. Anonymous has always been more about "doing it for the lulz" than politics, even if the ones posing as "doing it for the politics" are overrepresented in the medias.
> An even more accurate premise is that in some common and important interactions, people tend to be on average be approximately well-informed

I think that's often an unwarranted step to take - I'm MUCH more comfortable with the "act as if" formulation than I would be asserting that people actually are even approximately "well-informed" in most contexts. (Or "rational", for that matter.)

To illustrate the problem, consider an industry which is at least somewhat competitive. There is a wide range of available business strategies. Some of these strategies are dumb, but it might not be obvious which. Companies still have to make decisions, so they pick strategies. They might copy a market leader, flip a coin, hire physicists, hire astrologers...but somehow they PICK A BUSINESS STRATEGY.

After a few years, the businesses that happened to pick a particularly DUMB strategy go bankrupt; their businesses collapse and get bought; resources get reallocated to better use.

After many rounds of this game, a LOT of fragile, unlucky, or dumb business strategies have failed. A few remain that seem to work pretty well, and every company still going is trying to follow one of the more-successful strategies.

We now have some idea which strategies work but don't necessarily know WHY. There is institutional wisdom ("we've always done it THIS way") in the winners that they themselves might not understand.

In short, the economic environment (given some simple premises) tends to select for being efficient, regardless of whether people understand why what they are doing is efficient. Figuring it all out does probably happen eventually, but the order of cause and effect might be reversed - you try out the strategy, see that it works, scale it up and perhaps THEN figure out why it works. That's why I can describe companies as acting "as if they were rationally well-informed" even though I know that the individuals involved not only do indeed have a bunch of random "behavioralist" biases (the usual criticism) but in many cases they may actually lack conscious deliberate knowledge of why they do what they do.
Something which using Make would've fixed, incidentally. One of the neat things about Make is that you can define arbitrary dependencies (e.g. pill_strings.go depends on pill.go) and Make knows to rerun the tool when needed.
Those who ignore Autotools are condemned to reinvent it. Poorly.
The Kindle Paperwhite has a very blue tinted light. I'm not sure about other lighted eBooks, but I dislike that they specifically called out light emitting vs reflective surfaces. As far as I'm aware the colour of the light makes a much bigger difference to melatonin production than the source of the light.

EDIT: Looking at the actual paper they were definitely aware of this with measurements of the colour spectrums of different tablets, unfortunately not including the Paperwhite. Disappointing journalism skewing the story as normal.
We use Cassandra as main feed storage. We chose Cassandra over Redis (the other storage backend supported by stream-framework) because it was easier for us to operate it (scaling up/down servers, backups/restores ..) and because it has built-in support for multi datacenter deployments.
We just need f.lux[1] for our tablets.

[1] https://justgetflux.com/
Twitter? Facebook? Other social media..
What about a way to escalate to my own team via chat? That way you field general inquiries and make it look alive (chat that goes to "leave a message" just sucks), but the moment someone is getting serious or has an in-depth question, you can tx them to me.

I think this is s good idea. At my last company, we did live chat, and it was very popular. But the constant interruption to our few developers wasn't feasible. And later, it was hard to get salesguys to make sure they were really always available. Taking the front load off is excellent.
Cars degrade in value pretty strongly based on age, not just mileage. For example, a 2009 Toyota Camry with 5,000 miles on it, base 4-Door sedan, in excellent condition, shows a Kelley Blue Book price of about $13k (in my zip). It would've been about $18k new.

But your point is taken, a great deal of the equity burn on a car is mileage-related.

(Especially when you consider that if there are three users of a rented driverless car, it drives more than 3x the distance than would three separate owned vehicles for the users -- it must, after all, shuttle itself between users.)
Lua also have hybrid array, maps and object. It does work well when implemented in a sane way. Lua has different way of iterating the table if you want an array or maps.
An introduction to Clean Architecture
The well accepted definition of an e-reader is "a mobile electronic device that is designed primarily for the purpose of reading" (from wikipedia) and most (all?) of those devices are reflective as opposed to LCDs which are backlit.

"They spent five days reading from a paperback and five days from an iPad.". If only iPads were used, I don't believe the word e-reader is appropriate.

If you use an e-ink display without a built-in light, there are no reason this would be any different then using a book (as mentioned in the article but it's not only about "the original kindle"). Also there were tons of studies about the effect of light on sleep and especially blue light emitted by LCDs, most e-reader makers use a warmer light if I'm not mistaken.

EDIT: elaborating
It said farming is the oldest industry. Maybe that is more true?
tldr; version:
It reduces the number of network roundtrips (and server overhead) needed to keep clients in sync (great for mobile) and addresses the fragmentation issue between the various server & client implementations of the sprawling IMAP protocol.

By moving to JSON and HTTP it also makes the barrier to entry a lot lower for client developers and opens up the possibility to improve speed yet further with GZIP and websockets.

All that while being able to stay compatible with legacy IMAP servers via a reference proxy provided for free by Fastmail.

Edit: Oops I've just noticed your handle so apologies for assuming you didn't read the article. I guess you've read it and still don't see the benefit. In which case would love to know why you think it's a wasted effort (personally, I think it looks like a welcome refresh).
Since 2012, Amazon's high-end Kindles (the 2012 Paperwhite, the 2013 Paperwhite and the 2014 Voyage) shine light directly into the eyes. It looks just like a backlit display although technically the light and the diffusion panel are in front of an opaque (e-ink) display, not in back of a translucent (LC) display. On my Paperwhite, it is impossible to turn this light off -- only to dim it.

Also, I dispute the OP's contention that reflected light on s paper book is any better; certainly, a normal bed-side lamp is worse for the sleep of anyone sharing the room with the reader.

EDIT. Although like I just said, an iPad probably has less of a deleterious effect on sleep than a Kindle Paperwhite does, it is probably possible to do better in the current market. Specifically, Samsung makes a tablet (the Tab S, which comes in 10.5- and 8.4-inch versions) with an OLED display, which has the advantage over LCD displays that the portions of the screen that are supposed to be black do not emit any light at all. Especially if used with software that displays red or orange text on a black background (to minimize the blue-ish photons) an OLED display is the best choice in the current smartphone-plus-tablet market AFAICT if protection of sleep is the main consideration.

EDIT. Oops, I forgot to include my main reason for preferring the iPad to the Paperwhite: on iOS, Settings > Accessibility > Invert Colors reverses black and white. Combined with the fact that many iOS apps like Safari and iBooks normally present a white field broken only by text and thin lines, the use of "Invert colors" probably results in less light entering the eye than a Paperwhite since (unless they changed it since I last updated the software on my Paperwithe a couple of months ago) you cannot alter the Paperwhite's default color scheme of black text on a white background. I will concede that the Paperwhite's brightness setting goes a lot dimmer than the iPad's does, but I consider that consideration to be trumped by what I just wrote, and, again, neither Paperwhite nor iPad comes close IMHO to an OLED display used with decent software.
The Paperwhite's LEDs front-light the display just like a reading lamp front-lights the pages of your book. It may look just like a backlit display, but the distinction is important.
The problem for me is that I didn't find THE trusted system.

I use Evernote, OneNote, Google Keep and Simplest Reminder on Android but I'm not satisfied with this motley organization.

I think the Apple ecosystem has better tools for GTD (Omnifocus, Things etc) but right now I can't afford to change my systems.
Wow, really. That's awesome!

My initial happiness when I got server-side rendering working complete with ajax calls on the server was short lived once I realized none of my forms worked until React had chance to load and run.

I'm really glad someone else out there has noticed this issue and is attempting to tackle it.

Although I was hoping I would still have control of how I build my forms while I do it. Do you think it would be possible to separate the form submission and redisplay functionality from the widget library part of newforms?
This is one reason why I use a European model Samsung Galaxy S3 (GT-I9300) for ebooks. It includes "mDNIe" which gives you very flexible OLED display configuration on rooted phones. You can completely turn off the blue channel and remap blue to green so blue things remain visible. I use the "Galactic Night" app for switching between mDNIe modes.

To further reduce light exposure I use gray (remapped to yellow) text on a black background (very dark because the display is OLED). I set the screen brightness to maximum in FBReader to avoid PWM flicker, and reduce the text brightness to compensate. I also disable the phone indicator LEDs. I don't find reading like this to harm my sleep.

The one problem is that the mDNIe mode very briefly flashes to default when the phone is first turned on from standby. I think this could be fixed with a kernel patch but I just avoid looking at the screen then.
Does Torvalds write anything in C++?

The kernel and git are in C
Any kind of bright light at night is going to reduce your melatonin production. This problem goes all the way back to the introduction of incandescent lighting, e-readers are just the latest chapter.
> My complaint is that PHP's only first-class array type is a weird array/map combo. Have you ever seen anything like that in another language?

Um, Javascript?
Not as true any more. Are you familiar with value categories in C++11?
Well, we'll just have to disagree on whether the distinction is important in the current conversation about effects on sleep.

(Kindle paperwhite owner and frequent iPad user here.)

What is it about the photons entering the eye that you imagine makes the "frontlit" display of the Paperwhite better than a backlit LCD display?
Are you sure that the callback can be inlined though? How would that work, the calls through the pointer would be replaced with the function body? I would assume that qsort itself could be, but that wouldn't help much.
It would have been nice to see performance comparisons too - though I understand the new codebase might not be optimized for performance yet.
how about HN itself!?
The Paperwhite isn't a backlit display.

The LEDs in the Paperwhite Kindles do not shine light directly in the eyes: the leds shine from below the screen towards the top end of the screen. As it exits the LEDs, light is reflected inside a light guide from which it exits towards the display from specific holes, much like a leaky fiberoptic cable[1].

The directionality and position of the LEDs, and the existence of the light guide, are precisely the differences which make the Paperwhite unlike a backlit display.

[1] http://www.nytimes.com/interactive/2012/12/26/technology/lig...
Patrick's writing serves as a great supplement to PG's essays: real world analysis of "slower" growth software businesses. For engineers interested in alternate models of creating a company, these annual write ups help one develop an outline for the financial, business, and engineering lifestyle required to get something off the ground. Thanks Patrick, after working at VC backed startups, these types of posts actually encouraged me to go out on my own!
Exactly. And where you have a society dominated by entities acting entirely in their self interest you are likely to get instability. Society formed through the complex interplay between selfishness and altruism. An individual in the evolutionary sense is not merely contained within the physical body he inhabits, but is spread among a group of people who share, in part, the genes that describe him. As such the individuals within a genetically related grouping behave at times in a manner beneficial to the common good. This allows the machinations of society to grow in complexity over time. It allows more optimal configurations in the phase space of society to be sought out. Without this interdependence between actors, you fall foul of extreme short termism. We have pure rational self interest on a pedestal and ignored the altruism component for various historical reasons. We find ourselves in a dynamic which is destructive to the pursuit of globally optimal configurations of society.
This article is poorly titled. Disappointing since the BBC is capable of better journalism than this. They should be specific that it is backlit LCD screens (especially LED backlights since their spectrum is predominantly in the blue range which simulates morning) rather than what is typically meant when someone says E-readers, ie: readers that use E-Ink panels which are not backlit and thus rely on ambient light.
F.lux has this study on their webpage.

https://justgetflux.com/research.html
http://www.pnas.org/content/early/2014/12/18/1418490112.full...

I was really hoping for research comparing F.lux to a non-backlit screen; this seems to tell us what we already knew.
For the presidency, under which the power to enact or prosecute torture lies, there's been no chance for a third-party candidate in my lifetime (and I've seen one election, 2000, thrown in the wrong direction because too many people voted for Nader).

In any event, 3rd parties often look so honest and admirable because they've never had to hold power and make tough decisions. If any of them managed to hold power for a significant portion of time, we'd be clamoring to vote them out of office for their misdeeds all the same. Part of politics is about accepting the dirtiness of the game and doing the best with what you have. I'll throw my support behind the party that's good enough for me, and has a chance of actually bringing about some meaningful change.
For Android, try Lux Auto Brightness. I have been using it for years both on my phone and tablets.

* https://play.google.com/store/apps/details?id=com.vito.lux&h...