skysight-inc/HackerNews huggingface dataset:
> BM/SIMD searching is never heard of by a regular developer in modern boring language

Of course not, because it's usually implemented in the standard library of whatever language you're using. But if your strings aren't stored in contiguous memory, then having to flatten every string into contiguous memory before searching also presents a significant performance cost.

> What's the reason to concatenate prematurely AND by hand, if it could be done automatically and only if needed?

I feel like you're missing my point. My point isn't that "contiguous memory is better than not contiguous memory." My point is that "contiguous memory strings are bad design" is completely unwarranted outside of the context of a specific use case. Outside of specific use cases, the only thing we should be doing is discussing trade offs, and not declaring a monopoly on what constitutes "bad design."
Funny you got donwoted the exact last time amazon inventory practices were under scrutiny here at hn there was plenty stories of people getting empty boxes and ipad cardboard cutouts

edit: dug out that discussion https://news.ycombinator.com/item?id=13924546

but there are plenty similar.
I always click the unsubscribe link. I get maybe one or two unwanted emails every week.
I recently tried to access an Open Access paper.

Apparently it's only open to users with university library access. Otherwise you have to pay for it.

I emailed the author directly and he sent me a PDF.
It might help to point out that the core team only froze the spec during Christmas last year or year before and have therefore just started on performance in a way. If you check the perl6 weekly site you'll see significant progress on a weekly basis (ex: Lists sped up by 1500%).
I was T.A. for COMP-520, Compiler Design, at McGill University for two years, and it was the best job I've ever had. The compiler project had not been updated in 10-12 years; my adviser trusted me to make a new, interesting project. I was paid by the department for 5 hours of work per week, but I poured in more than 35 per week to design, document, and implement a subset of Go

My hard work paid off immediately. Students were more interested by a language that was new, modern, and used in the industry than by the previous language that was used, Wig. As a result, enrollment jumped from 12-14 students to 45. Though it was a subset, and much of what makes Go interesting was removed (concurrency, interfaces, GC) it was still an extremely demanding project. Many times I thought that the project was too big, that we needed to cut back, but the students were real troopers and chugged through (by the way, when did 20-year olds become so smart?! I was never this bright when I was their age!) and all teams completed the project and made me very proud.

You can see the page for the first year of the class, along with relevant documents at http://www.cs.mcgill.ca/~cs520/2015/
> Oh, that's easy - because the US has been a racist country for decades and no-one has had the balls to stamp it out.

That explains why they exist, but not why new groups form today still.
From the article

"Although Linux provides a kind of asynchronous interface for reading files, it has a couple of significant drawbacks. One of them is alignment requirements for file access and buffers, but NGINX handles that well. But the second problem is worse. The asynchronous interface requires the O_DIRECT flag to be set on the file descriptor, which means that any access to the file will bypass the cache in memory and increase load on the hard disks. That definitely doesn’t make it optimal for many cases."
Alex Nguyen filed the only formal net neutrality complaint
Both 16-bit machines, but vastly different CPUS. Motorola 68K vs a Toshiba of some sort. They bot have Zilogs for sound though, so maybe SNK used some code sharing there?

End of the day, SNK wisely chose to create unique experiences based on their arcade games for the system, but it was ultimately crushed by the Gameboy Color and Pokemon.
If you have LaTeX installed pandoc will interpret the inline latex when converting to pdf.
How to Answer the Most Common 50 Interview Questions
I've been using Rider and it's been pretty good. This shouldn't be a surprise. Remember that JetBrains started with ReSharper. This is basically their home turf.

That said, third party IDEs can always be expected to be slightly behind the first party stuff. But in this case I think it's worth it and might actually be a good litmus test for adopting the next releases.
As frivolous as you think 418 is, people use it.

You honestly can't, in this situation, be the judge of what is "frivolous use" and what is not.
How to integrate React into an existing app
NorthVolt Starts Biggest Fundraising for $4B Battery Plan
Unfortunately my flat is too small for me to justify a networked kettle...yet ;)
Doctors (at least, in the US...) actually get relatively little nutrition training, compared to the actual experts, registered dietitians. You can find one near you one their association web site: http://www.eatright.org/find-an-expert
Without products of complex industrial you are pretty much this: https://en.wikipedia.org/wiki/Lykov_family

I'm not sure if any self-sustaing fan would want that.
I have contributed a lot to open source, and this entire quote is entirely alien to me.

Usually people who don't contribute talk like that (but I do not know if that is true in the case of the quote's author).
While I'm inclined to agree with you the makers of SOAP don't seem to share your opinion. Any SOAP fault must be send with an HTTP 500 according to the spec.
Honestly the main reason it works like this is that it was my first foray into Rust, and I found JSON parsing a bit of a pain, whereas matching status codes was very simple. If we expand it to return different options in the future then I'll probably rework it.
Um everyone was Solar? They feed their animals solar raised fuel, AKA hay and oats.
Pretty sure he was making a joke about the use of the term driving.
The Belgian Congo was a miserable episode in history by all accounts - often considered one of most terrible examples of recent colonialism. Something to bear in mind next time next time you are chomping down on a delicious Belgian chocolate what with that industry being a direct legacy of colonialism.
Does this post contain any other argument than "I think it is too hard"?

Except for handwriting based solutions like the very cool Nebo app, I really don't think there is a better way to enter formulas, and it can be learnt in a matter of hours.

Writing complete documents in LaTeX is perhaps a bit more verbose, but then he can use some of the methods suggested here, like pandoc.

Spellchecking he can have if he wants, and even WYSIWYG.

It's worth noting also that if you're aiming for a career in math or physics, not learning LaTeX isn't really an option.

EDIT: I referred to the Nebo app as 'MathPad', which is an older incarnation of the same idea, Nebo is MUCH better.
How to convince investors you’re an expert in Artificial Intelligence
> So you think he wrote the memo in bad faith and/or ignorance. Just say that. Why argue that it says things it doesn't?

This is the "only the literal words should be taken" argument - but words can have contextual meanings above and beyond their literal meanings.

"Urban crime", for example, literally just means "crime in an urban environment" but is often used as a dogwhistle for "crimes committed by POC".

Same with Damore's memo - he may not literally have said the things people are seeing but - if you assume it was written in bad faith (which the pseudoscience and "I'm just asking the questions" would indicate) - the dogwhistles are clear.
Yeah, for the past five years I've been like, "Oh look, Tesla! Aww. Oh look, Tesla! Aww."
Angry Birds Set to Lay Golden Egg with $2B IPO Value
Aaron Swartz's influence on open publishing is still unfolding more than four years after his untimely death. The forces arrayed against open publishing are formidable: governments and big business.

It's good to see a nation's universities working together on this.
A lot of it already works. If you want to play with 2.0 now, you can download it from here:

https://github.com/dotnet/cli/blob/release/2.0.0/README.md#i...
It's worth remembering it still could flop, although I think that's becoming less likely.

Bitcoin and other cryptos really depend on government opinion of them. The main reason cryptos have been reaching new highs over the last few months is because some governments are making moves to legitimise them.

However, I think as cryptos become more popular governments will have to question their use case. The problem is it's really hard to say what they're actually useful for other than for some shady uses such as tax avoidance and black market transactions. Of course - as many advocates are pointing out - they could be used as a replacement for the US dollar and other state run currencies, but then we must recognise they'll be a direct threat to our worldwide central banking systems, and then we must question why governments would tolerate that?

If the US and/or EU started pushing back against cryptos because of these reasons they would likely crash.

I actually think too many companies accepting bitcoin could be a very bad thing in the long run. No government is going want to see a significant proportion of their economy's transactions being made in cryptos for obvious reasons.

Bitcoin's only hope (in my opinion) is to be seen as a kind of Gold 2.0 - a more convenient store of value, which would wouldn't risk dilution through inflation and is also more secure from geopolitical risks.

But even then you have to question if it's really a better store of value than gold. Sure, the Bitcoin network is pretty safe, but its value will always come with far more risks than something as fundamental as gold.

I think people are really over hyping Bitcoin and cryptocurrencies right now. I have a few friends who have poured thousands of pounds into bitcoin and various alt-coins with zero research over the last few weeks. It all feels very similar to the dotcom bubble to me. People keep saying this is the future without much reasoning and are then validated by people who don't know any better investing thousands purely from speculation which continue to raise the price and continues to validate the incorrect assumptions of others.

If you don't believe me just go ask someone you know why they invested in cryptocurrencies. I guarantee they'll say something like, "because it's the future", or even worse, "because it has gone up by X in X amount of time".

But who knows. My fears could be completely wrong. Perhaps everyone is right and bitcoin will be the currency to replace all currencies and the US, EU, and China will just let that happen as the cost of all the tools centralised banking provides. Or perhaps for some reasons it will just remain as a significant competitor to worldwide currencies and governments won't mind that despite the costs and risks. It's just my two cents.
The secret tunnels are much deeper.
I am curious why someone wouldn't use IBM Watson for this? It seems it's better suited for production and serious use cases than PyTorch or TF.
From what I can see, sendfile isn't really async, it still returns the number of bytes written or error status, and nginx probably needs to wait for that to e.g. log the results, handle short writes, or proceed with whatever next operation must be done to the socket (like closing it). No idea why aio_write needs offloading, though.
> I always felt like patents shouldn't exist for ideas, but only for implementations

That's how it works. You patent the mechanism of achieving an end given some input, not the idea of it.
Whisperlodge: An ASMR Spa for the Senses
Data Breach at UC Health and Healthcare’s Ongoing Struggle
The file size limit is 4/4.5MB.

I work at Virtru. The short summary is that we make a client-side encryption extension for the content of your email. There are certainly things we can do to reduce the file size. However, the business value of doing so is limited, particularly in the context of an extension. It is also much more limited when Firefox itself is vastly less popular than Chrome today and we have no issues from Chrome.

We use webpack, so all our dependencies, which may not be optimized for file size for browser usage get pulled in as well.

As I previously stated, so not sure why I'm having to repeat this, that the entire process due to the minification creates a huge barrier for any business that is trying to fix things in a reasonable amount of time. You get thrown into an admin queue, which moves at a snail's pace, EVERY time you upload a new version you have to add instructions again, EVERY time there is a different reviewer with the same question you have to answer them again. Mozilla isn't sitting there actually reviewing your source code in an intelligent way. We were dinged on 2 uses of eval. What is hilarious the uses came from within very well known libraries, jQuery, and Bluebird. If they were really reading the source code, they would have known that we didn't write that, 1 of the uses we never call the function that contained it, and bluebird is using it as a de-optimization strategy to prevent a function optimization that make objects fast.
Oil is solar in the same sense
Not confidential -- Vexlio's written in C#, and uses Xamarin.Mac for the bindings to the Mac world. PDF and PNG are both generated by the Skia library (skia.org).
What should I do to increase my chances of getting a comp sci job?
Hi,
I am currently studying towards a degree in computer science (also minoring in stats and biochem). I'm a bit worried about finding a job in the future as the industry is really competitive. I would like to get a job in data science, but I'm keeping my options open.

I know when applying for jobs I should definitely have a portfolio for my own personal projects. I plan on doing that this summer, but I'm just not sure how complex my programming project should be or how many individual projects I should have.

Also, I'm not sure if I should focus on planning and programming my personal projects or if I should focus on other extracurriculars to build up my CV or resume; should I also volunteer, tutor students, and join university clubs/programs? Should I try and win various "leadership" awards and scholarships? I think I will try to do both but do you think I should really focus on one thing rather than the other? What do you think employers prefer? Also what were your experiences when applying for jobs?

Thank you for your responses :)
Stop getting excited and not doing are two different things :) Of course I'll continue recycling, using renewables and making sensible transportation choices. There's no negative with any of that, so why not. It's just hard to get excited about the impact of it all when one considers the sheer numbers behind animal agriculture.

Should also note: both films are very persuasive - plan to spend a few weeks now fact checking before I dive in to a vegan existence.
I really think Racket's Scribble has a chance to over take Latex. https://docs.racket-lang.org/scribble/

Scribble is well designed to be a more readable Latex with the ability to be beautifully type set.

Example:

#lang scribble/base

@title{On the Cookie-Eating Habits of Mice}

If you give a mouse a cookie, he's going to ask for a
glass of milk.

Pandoc is a great tool to use if all you need is Math. http://pandoc.org/MANUAL.html#math
> there has to be a media for them to express their ideas.

No, there doesn't. Nazism had its chance. We fought a world war over it. I think popular opinion came down on the side of "hang Nazis and prevent this ever happening again."

> there should be a rule similar to net neutrality

Unfortunately, Trump and his cabinet are against net neutrality.
We get told many things. That we are fundamentalists, that all software cannot or should not be free, that the GPL is too restrictive, that we are anti-business, that we spend more time arguing politics than getting things done, that we are passé because Apple and Microsoft are releasing some free software. Someone like bkuhn gets to hear things like that all the time. It's nice for a change to not have to argue against each of those points.
Currently works perfectly for me with English and German where I place \selectlanguage{UKenglish} and \selectlanguage{ngerman} in front of the appropriate paragraphs. Hyphenation then simply works.
One page portfolio landing page for all types of freelancers
Because the audience of the Economist is mostly English-speaking and who doesn't like a good ego-stroke, eh?
They say why in the article

"The asynchronous interface requires the O_DIRECT flag to be set on the file descriptor, which means that any access to the file will bypass the cache in memory and increase load on the hard disks"

They even go into how no interface has been surfaced yet that allows determining whether a file is in cache or not. Also how FreeBSD's aio interface doesn't have the same limitations
It's totally different, yet somehow this reminds me of Daniel Temkin's Entropy language, which is basically a language with bit-rot built into it:

> Entropy is a programming language about giving up control. All data decays as the program runs: each value alters slightly every time it's used, becoming less precise. An Entropy programmer needs to abandon the pursuit of precision which most programming demands -- often working against years of habit -- in order to program effectively. Any output from an Entropy program will be approximate, and the more the data is accessed, the more random it will become. The programmer has, at best, a short window to get his/her idea across before the program corrodes. The program itself is not altered -- so the next time it runs, it is restored to its original condition, only to decay again through its next run.

http://danieltemkin.com/Entropy/

EDIT: I guess it reminds me of Entropy language because deterministic behaviour from chaos is about as opposite in spirit to giving up and embracing decay and entropy as you can get.

Which he has combined with the classic Eliza program[0] to create (imo hilarious) Drunk Eliza:

http://danieltemkin.com/DrunkEliza/

[0] https://en.wikipedia.org/wiki/ELIZA
Word change tracking is for word users like democracy. It's a bad system, but all alternatives are worse.
The honest answer -- Microsoft has a lot of people with experience in building these things, so they aren't making the typical mistakes that Atom made with their architecture. For example: Atom was rendering dom nodes for your whole file -- not just the parts that were visible. Using the DOM as a stateful container of all that could be visible does not scale really well.

Compare to something like the ACE editor (an OSS editing component that you can plug into any website) which is lightning fast -- it only renders what you see though -- but the filesize is not at all relevant to the performance.

These are all techniques that people who ever wrote complex UI toolkits are incredible aware of. I don't think that describes anybody who worked on ATOM ever, which means they just have to relearn and re invent this stuff until they get it right.

Generally, these days a lot of developers get a lot of experience combining existing technologies. Proper engineering skills, or even being aware of the data structures you are using and their algorithmic complexity, how cache friendly it is -- all of this is prioritized much less now.

So Atom answers a simply question. Has hardware become significantly fast to not care about proper engineering? No, not really and it never will. If your datastructure is structured in a such a way that inserting a line all the way at the top requires a relayout of every line below that, for example, you will run into real limits.
Things You Need to Understand About Life Insurance
Well, they're not really new groups - militia and the klan have been around for decades. They just like giving themselves new names because, like all angry idiots, they start infighting and splintering from each other.

Although, yes, the GOP have been enabling and emboldening them for the last (at least 5 but really many more) years - now they have a whole bunch of people who support them in the WH that are dismantling anti-WS task forces etc.
Always ask, did they invest hard cash or did they invest with crypto and that has the value of 100B?
Things are getting a bit recursive now. This thread was discussing the ethics and legality of the phenomenon of paying influencers to plug products in the first place. The article is about exploiting that phenomenon.

That said, the accounts in the article are fake, yes, but they claim to be real. That's not fiction, it's fraud. If they had set up the accounts to clearly state that they are fictional characters, and still gotten paid to endorse products, then it's a lot more like product placement in movies.

(Hmm, I wonder if you could actually pull something like this off. Most major social media celebrities do appear to be fairly highly engineered personas, the leap to pure fiction doesn't seem to be that big)
Networking at events where you are customers are can be the start of a sales funnel.
Leveraging Vertica Performance by Reducing CPU System Calls
Not sure. According to Jack Churchill's wikipedia page (worth reading - the long bow is only the half of it), he wrote a book about his exploits.
My grandmother (at age 70) had a crescent-shaped burn on the back of her eye (edit: ie. retina) from viewing a partial eclipse as a child. She couldn't "see" the burn, likely because her brain adjusted to it.
> Self-published, unknown journal gives me none of that.

How can you know that?

Edit: I don't know why I get the downvotes. My question might be naive, but its serious. I think it is not self-evident why an unkown self-published journal couldn't give you that. Elsevier was also once unknown. For me it sounds like a logical fallacy, but I wanted to know your take on it. It's pretty cheap to just downvote me for asking.
I was really, really happy, though, that Linux is supported. The gaming situation on Linux has improved a lot over the years, but the number of available titles is still far behind Windows.
This is why I built www.thankyouopensource.com At least you can write a thank you note to the maintainer.
Some people just have no money. I pirated tonnes of software as a kid because I couldn't afford any of it.

One thing I've seen that generated a lot of good will in me was a company that said "if you can't afford a license, email us". Depending on the margins you have and the software you make, that could work for you as a way to communicate with your users.
Hypocrisy is amazing in most of the world.

I was international student and met many at my university. It was mind boggling how almost everyone would celebrate their cultures' conquests & wars and at the same time call Western conquests evil and the worst thing.

It was also amazing how most of the Western students would agree that Western imperialism was horrible but never argue against glorification of other cultures horrible wars.
Here he uses the parentheses to clarify that not everything is printed in Computer Modern, but only that things are typically printed in Computer Modern.
This script creates Google Slides with AdWords data to automate presentation
The money for the research does not come from Elsevier nor the journals, at least not in Germany. If they could get rid of Elsevier and go open access, they would have more money for the science.
We now have lots of problems with fake news. It makes me think: what if the same thing will happen in science?

Well, already two-thirds of published scientific research cannot be reproduced http://www.bbc.co.uk/news/science-environment-39054778
I dislike that the author called using a font other than CM "advanced". Since the mid-90s, it's been just \usepackage{fontname} in the header to change the set of base fonts to some other combination that looks good together.

Yes, you need to learn to do that, but it's nothing compared to all the boilerplate you need to get a basic LaTeX document working.