skysight-inc/HackerNews huggingface dataset:
> Syntax highlighting is a complex problem, because it needs to be fast enough, and the more token types you have, the longer it takes.

Yes, it scales with the number of tokens. Why wouldn't it? This isn't a problem. It's 2015, we have ~4GHz umptheenth core computers, we can do this in real-time.

> Each time you type a character, you have to parse the code (clang is used here), select the according color, and draw the text

You seem to have no idea what is actually happening here. You don't need to rerun the whole parsing step at each character if your tool understands the language, only when you hit a token that changes the parser's state (so when you enter a paren, you're no longer typing an identifier, so now we need to reparse.) There are a huge number of ways to optimize this step from there, but I don't think anyone is actually employing any of them yet, either because they're too complicated or computers are just so fast we don't care (like maintaining a document AST and simply updating the nodes as they change around so you can get away with vastly simpler "reparses").

The actual layout and rendering of text is then done - each OS has their own text layout engine, and there's several open source ones (e.g. Mozilla and Blink/Webkit have their own text layout kits, Pango does it on GNOME, etc). Color highlighting is a part of text rendering, which happens next, which also every platform has it's own solution for (like, e.g. Cairo, an image compositing library, which uses FreeType, the Windows or Mac font rendering systems for rendering glyphs).

What should be colorized/bolded/treated as different is usually tracked by a set of span data structures (e.g. line number X, character Y to character Z should have this set of attributes applied).

> My guess is that sublime text completely shortcuts this problem by using webkit to draw its own text surface.

Sublime Text implements its own editor widget. Here is the author noting some bits about it: https://news.ycombinator.com/item?id=2822114 . Shipping Webkit is not an easy task, nor is it a small one in disk footprint. I'm not sure how you randomly came to the conclusion Webkit had to be involved.

The rest of your post seems as if it was generated by some kind of buzzword Markov Chain, so I'm ignoring it.
Depending on the subscription level, you get access to the Microsoft software catalog and can basically download and keep all the licenses you need.

This isn't really something you buy as an individual unless you're a consultant or running a small shop but it's great for enterprises to get the IDE and all the production software as well (Windows, SQL, etc).
See also: The Pitfalls and Benefits of GNU Make Parallelization

http://www.cmcrossroads.com/article/pitfalls-and-benefits-gn...
Show HN: A game where you can play on your own drawings
Broccoli.js uses directory tree as the primitive

http://www.solitr.com/blog/2014/02/broccoli-first-release/
Absolutely not in my opinion. What about students that have to work while going to school? I had to do this and I can assure you that it really hurt my GPA. Other more well off students will of course have higher GPAs because they can afford not to work and can pay tutors. These students who have worked full time or have faced other difficulties will not be able to explain why their academics are lacking if it's entirely academics based.

I also think essays and interviews are great ways to assess the candidate's true interest and compatibility with programs.
On investigation (found the press release: http://www.bbc.co.uk/mediacentre/proginfo/2015/14/codes-that...) the final episode covers 'convergence' which seems to mean 'interoperability'.

Lack of any mention of C/C++ is probably the most glaring oversight. There's an interesting story to be told here...
Smart way to link and allow bypassing the paywall. Thanks.
Extensive discussion: https://news.ycombinator.com/item?id=9283249
I want to stick up for the difference between "not that useful" and "not useful." I have a tablet (a cheap Android one). I use it to read, and to check email and browse the web while in bed. I like it. It's to some extent useful.

But of my computing devices (smartphone, tablet, laptop), it's the least essential of my devices, and the one I've paid the least for. It has the narrowest use case. If I had to replace my tablet usage with smartphone usage, well, I wouldn't be perfectly happy, but I'd live.

That is, I think, the story of tablets. Apple convinced a lot of people to try tablets. And, you know, it's not like tablets go out and kill your dog. They're fine. If you've got one, you'll use it every once in a while. They also don't spontaneously combust after one year, so it's hardly a surprise that the total number of "people who own a tablet" is increasing.

But sales are falling because they aren't that useful. They aren't massively more portable than laptops, they aren't massively more useful than smartphones. There is no single thing that they do really, really well that's highly useful to a large share of the population.

I think this is a really illustrative example for what's going to happen with the Apple Watch and the smart watch in general. Apple has a deservedly strong brand, they will get a lot of people to buy the Apple Watch at first. And, you know, having a watch, people will say, "Sure, I use it." But instead of picking up momentum onstoppably, as smartphones did, they'll sort of... languish. There's undeniably a use case for smartwatches, just as there's undeniably a use case for tablets.

It's just not that useful.
Doesn't PrEP have serious side-effects?
Couldn't Americans import a wider variety from less stuck-up countries?
Yeesh what an overwritten article. I plowed through it because this is relevant to my interests but man this could've been 3 paragraphs. I'll try and sum it up:

-People don't use condoms mostly because they are uncomfortable

-Current condoms are highly suboptimal for anal sex in particular

-Materials other than latex are generally difficult to get to pass FDA tests, and it looks like there is some disagreeing science about why. All condoms seem to be good at blocking pregnancy, some, like polyurethane and lambskin condoms, have disagreeing science about how well they stop the transmission of STDs (including HIV).

-New condoms sometimes get blocked because of somewhat antiquated tests (specifically sizing tests)

Overall there was not a lot of information here. It follows someone named Resnic, loosely, who claims to be making a new revolutionary condom, but who ultimately decides to change his condom back to latex because it's so much easier to manufacture in the US. It's not clear what his key innovations are that will make his condom more useful/comfortable to more people.

Overall the point that a better condom would get more people to use it makes sense, but the article doesn't make the case that one is on the way, or explain what one even would be. Yes, a better material might transmit heat better, but there are obvious downsides, especially with regards to Africa, where STD transmission is the primary concern, not pregnancy.

If there is one conclusion I take from this article it's that if you are in a committed relationship where you are not worried about STD transmission and are primarily concerned about pregnancy prevention, and do not like latex condoms, give lamb skin or polyurethane condoms a shot. Otherwise you're probably best sticking to latex.
I recommend this company: https://thisisl.com/

You buy one, they give one away model.
They also use less toxic ingredients in general.
A lot of the names that it threw out for me just looked like random strings of letters.
> what the Germans do and start segregating students by ability soon after elementary school

It's not that fascist.

For one, the parents decide which schools their kids go to, the states can only give recommendations (which are regularly ignored by Special Snowflake Parents).

Additionally, the decision is not final. Students can (and do) switch to a higher school form if their grades are good enough, and work their way from the lowest school form to university.

And after a recent reform, they don't even need to, as vocational schools (for which all students are eligible to after 9 years) are now able to grant bachelor degree equivalents.
Can you provide a reference for your claim that the US government's "ability" to classify hackers is laughable?
Any news, insight or updates on why it is unmaintained anymore?

That always seems a bit shady and suspicious
i started a degree in cs last year and i noticed: most cs people i met @ my university have BIG problems with getting their hands dirty by writing some code. excellent in math, but not able to write some simple for-loops. finishing university without being able to code is kind of poor...
but i agree - abstraction is very important to handle complexity.
You have to enter your one sentence pitch first. Maybe the site's ulterior motive is to steal start-up ideas.
It's integrated with iOS at a level no other device will ever be because Apple makes it. If you are interested in a smart watch and have an iPhone there is a very strong argument for the Apple Watch over everything else.

Will that be enough to make these kind of devices more popular? I'm not sure, I'm interested to see what happens.
39 Tips to Kill Conversion-Blockers and Boost Sales
Why Field Level Updates Matter, and How They Work in MongoDB
Thanks for the answer!

It is a great film!
Yeah, better trust US companies who are subject to NSA, which has been proven to require no backdoors in software /s
In Brazil too. Being used to get in touch with strangers too now, just like your cellphone number. Business contacts, flirts, everything.

One of the biggest mobile service provider here (TIM) is betting big, advertising a mobile plan that gives you unlimited internet usage through Whatsapp. Everything else has a usage quota, internet through Whatsapp is unlimited (and I wouldn't be surprise if Whatsapp is not paying a penny for this kind of advertising)
“I have a super power, which is mathematics.” (2011)
What you are saying contradicts what is posted here:

https://github.com/Microsoft/dotnet

".NET open source projects typically use either the MIT or Apache 2 licenses for code. Some projects license documentation and other forms of content under Creative Commons Attribution 4.0. See specific projects to understand the license used."
You dont see a chilling effect when the choice is either host your content on github or be blasted off the internet?

Lets not forget this wasnt an easy thing for github to handle. Their service still isnt running at 100% normal. Not to mention the cost burden they're currently dealing with.
The cool part is, its not only a specification but an implementation.
The Truecrypt developers left for an unspecified reason. Anyone claiming otherwise is speculating.
Lean manufacturing works right up to the point where one of your vendors gives you a bad part. Your choice is to either shut down a line or have excess backup supplies at which point there's no need to have been lean.
Browsing on a hotspot where 2s becomes 10+s?
It would be interesting to see a university degree where the running theme is, "We don't teach computer science we teach programming!"
Yes, the summary was helpful. I think GP is merely saying "please make it clear that you are cutting-and-pasting from the post itself"
The iPod, iPhone, and iPad all entered markets well after they were established and against well-financed competitors with a good track record (including some of the companies you mention by name). Yet, the Apple products took off.

In retrospect we can look back and identify reasons that they took off over existing competitors. But at the time they were announced, there was quite a bit of doubt that they could or would succeed.

This doesn't mean that the Apple watch will do the same thing--it could certainly flop. It just means that based on history, it's hard to know in advance, based just on the keynote and ads, whether or why an Apple product will beat existing competitors.
How Does It Feel Technologically to Live in an Occupied Country? [Part 1]
Why is that a proper reply/
Can someone tell me why so much attention is paid to Truecrypt? Is it that popular? I thought openssl or mozilla's crypto engine are the most used.
I wonder if they offer any access to trustzone? That would be pretty cool.
I'm curious about what the proposed alternative for jeans is. I typically own three or four pairs at a time, and I wear them for at least 6 or 7 years--often much longer. I don't know whether from a water conservation perspective that's economical or not, but it's plain to me that it's a peculiar item to add to any chart that also includes rice, coffee, or almonds.
Apparently Apple tried to make Watch a better health device with some of those features.

But the technology just isn't there yet - at least not in a watch form factor.

Obviously a med-lab on your wrist would be a killer device. Unfortunately Watch isn't it.
I got voted down yesterday for linking this kind behaviour to the Salem Witch Trials... but I stand by my point: Fear of what they're ignorant about and starting witch hunts to eradicate it is part of American history... you may cast it to the annals of history, but with the undertones of Islamophobia, xenophobia and racism that constantly play out in the media demonstrate that it's still alive and kicking in the halls of politics. This is just another form of the same thing - fear of their own ignorance.
New Facebook Office
>So Facebook has become akin to your public "phone book" listing for younger users.

This makes sense to me. I am 21 and "use Facebook" every day (i.e. open the Messenger app). Almost everyone I know is on there and I am on several group chats with both online and real friends. It's very useful.

Haven't logged in the actual Facebook site in a while, though.
EFFector April First edition
Based on experience in both the U.S. and Danish university systems (not the German one, but I believe it shares some similarities), the U.S. university education has a bigger focus on interdisciplinarity, where you focus on a major but also are required to take courses in other disciplines. The Danish system focuses specifically on the major.

If you major in CS in Denmark, you will take CS courses and only CS courses, to a fairy close approximation (due to staffing this might include 1 or 2 courses taught in the math department, but that's about as far outside the CS department as you're likely to get). Whereas if you major in CS in the U.S., it's frequently the case that there is a "common core" everyone has to take that includes other courses. For example, I did my CS degree in the U.S., and I had to take about 4 semesters of natural sciences (w/labs), 1 of engineering, 6 of mathematics, several humanities courses, etc., in addition to my CS courses. In Denmark a CS student is very unlikely to ever find themselves in the natural-sciences, humanities, or engineering departments (in Copenhagen they aren't even in physical proximity).
in Mexico the two biggest carriers offer too plans with unlimited Whatsapp, but also include twitter and facebook.
JavaScript, first class IOT citizen
Give them 3rd dimension (ie. water tank), make droplet that can grow and divide and maybe you've got origins of life.
Right, there are absolutely no wars going on right now.
Americans have greater equality than Germans?
After many years of DevOps and configuration management, I've learned to think of developers as children...
Do you offer any access to trustzone?
Yes and plenty of people make it clear when they're quoting the article.
I haven't read all your posts, but it seems like you've spent some time in China. You articulate matters as I'd expect a mainlander Chinese to do so, eg Western governments, or "sovereigns" as you say, restricting freedoms to maintain a harmonious society.
Well, they "use" the licenses and then amend them considerably (those licenses grant you patent use permissions, while Microsoft doesn't). The licenses are still there, only with a nice juicy amendment on the side, which basically says: "You know all those permissions granted to you by the license? Well, were taking most of them away now, thank you".

The legal instrument by which those permissions are taken away is patents, which is actually worse than copyright because patents are sneaky. See those DannyBee comments I linked to for an explanation.

In any case, Facebook does something similar with React which also "uses" the BSD license, except not really, which is why Google, for example, have already said they can't use Facebook's open-source projects.

Facebook keeps the project open source, except adds an unrelated auto-destruct mechanism; the CLR isn't even really open source (because you don't have permission to freely modify the code or derive from it). I don't know which is worse...
Funny Melon Sorbet Recipe Video
Were people actually asked "Facebook" instead of "Facebook or Messenger"?
I think the key difference is that Sony and Android both approached the watch as a smaller phone. You can play angry birds on it, and you can play music, and shop online and do everything that a phone can. In that sense they haven't built a new device, they built a miniature phone with a wristband.

So whatever Apple is building, it's definitely not an "also-ran" because the category doesn't exist yet. Whatever wins this category will look and feel markedly different from a smartphone, just like how the first real smartphones looked and felt different from their predecessor "smart"phones like the razr and blackberry.

Whether Apple can bring a viable product to the market remains to be seen.
An interesting take. I've always been something of a programming-language junkie motivated by the feeling that there must be clearer, better ways to express things. Classp was motivated in large part by my dissatisfaction with having to write a recognizer and warp it into a parser and then turn the parse tree into an AST. Why can't I just express directly how the AST is represented in the target language?
Or, to sum up even more succinctly:

- Government regulations have stifled innovation, thereby making existing products less safe, less comfortable, and less used than they would be otherwise.

In other words, nothing new.
Probably not. The FDA controls all drugs and medical devices sold in the US, not just manufactured here.
I've used SCons for processing audio files recently and it has worked pretty well for me; multiple targets are handled just fine.

I did have one percieved speed problem, but this scons calculating file checksums to see if it needed to re-build targets; this is usually a good thing, but if you're working with large files it might be better to use the MD5-timestamp Decider instead.
Karen, an App That Knows You All Too Well
And San Francisco has a population density of 17,867/sq mi. DC is a city with draconian height limits and a relentlessly suburban feel.
Atomic, Composable Financial Transactions: The Power of Haskell's Purity and ADT
Android Security 2014 Year in Review [pdf]
Is there a similar list of React components for the web?
C++ with asm.js + WebGL effectively bring back desktop programming to the web.
I like the idea of the dash button a lot. Even with one click ordering on my phone with the Amazon app that is logged in automatically I still didn't order toilet paper right away when I saw I only had two rolls left this morning. I think if I had had a dash button I would have. And though that sounds silly I think many people operate the same way.

I also want the dash button but have never used Amazon's Subscribe and Save. I think subscription services are advertised as reducing your mental overhead but for me they can increase it as I am worried I will automatically buy something I don't want or forget to cancel the subscription. Plus with things like toilet paper I don't know how often I need to order it, a dash button solves all this.
Yeah even in India many operators provide such packages for whatsapp and facebook.

But I think it kinds of breaks net neutrality!
Reconnecting Diners and Chefs to Ensure a Better Food Future
It prevents your computer from loading undesired piece of JavaScript in case of a MITM attack.
It doesn't prevent things if the server itself serve you malware, but that's another story.
Experimenting with Rust on iOS
Starting a dev shop and the many iterations of our own version of 20% time
I'm not sure how it helps to have a backup supplies of bad parts?

It should be obvious that quality control across the entire supply chain is vital to make lean work -- and indeed that is how Toyota and others does it: They work very closely with suppliers.
There has been no large scale war between major powers since WWII, let alone between the world's leading superpowers.
Guy who started out in math and ended up with a blended math and CS degree here. Their definitely were some parallels, but even in a program where they tried to combine the two, it didn't always mesh. I felt more like upper level math was a springboard for algorithms and proofs, so that by the time I got into algorithms I could say "hey I already have been doing combinatorics proofs very similar to this."

This should not be conflated with hacking though and software development. You can do both of those without any strong background in mathematics. Alot of software development and hacking is just using things people with CS skills built. I do not have to understand quicksort to use the native library sort.
No I mean people like Donald Knuth - in this paper he talks about programs as 'codes' http://link.springer.com/article/10.1007%2FBF01758770.
If those companies wanted to subvert your TrueCrypt installation, they would have an easy time of it.
They may not use it in the same way, but the fact that they are using them to make life decisions is pretty huge:

http://time.com/3762067/college-acceptance-instagram-high-sc...
As Fred mentioned in the comment below (or above) we are planning on supporting web components in the (very) near future.
San Francisco, CA | Amsterdam, Netherlands | Famo.us Industries

Famo.us is a free and OS JavaScript platform for building mobile apps and desktop experiences. The difference is its JS rendering engine and 3D physics engine that gives developers the power and tools to build native quality apps and animations using pure JS. The next release will allow the use of WebGL, DOM and Canvas together.

We are looking for a number of people to join the team. All positions are full time, on site, with full benefits and equity in our SF or Amsterdam offices. Thanks for checking us out!

www.famo.us/jobs

Technical Program Manager

Product Manager

Sr DevOps Eng

Sr WebGL Eng

DevOps: QA Eng

Curriculum Engineer (Technical Writer)

Sr Release & Support Eng

UI UX Desigers

Design Technologist

Backend Systems Engineer
How Teens in USA Really Use Apps
Does AirBnb really only charge 3% as the article says? I thought it was closer to 10%.
There are independent implementations of TrueCrypt on-disk format like tcplay[1],cryptsetup[2] and zuluCrypt[3].

TrueCrypt,the binary application may break without further development but its on-disk format will continue to thrive as more applications pick it up as a mean to support cross platform encryption format.

[1] https://github.com/bwalex/tc-play

[2] https://gitlab.com/cryptsetup/cryptsetup/blob/master/README....

[3] http://mhogomchungu.github.io/zuluCrypt/
"Now here’s a great paradox for you: If a silver bullet did exist, it would probably take the form of the realization that silver bullets don’t exist." -- Mind blown for the day :-)
Yes, my comments are limited to MRI. A full-body CT scan is a very large dose of radiation.
Did they rush you with an attack?
Sounds like something out of Anthem.