skysight-inc/HackerNews huggingface dataset:
‘Biggest predictor’ sounds like hyperbole. Though, if true, it would be useful to know. Money could then be directed to research and policy that helps increase IQ.
Yes! It's functools.wraps*, though. :)
> I can't help but wonder whether this is all just a show

Do you know that the garbage that is "recycled" in the USA used to be sent (until Dec 2017) directly to China? This is one of the scams of the century. Nobody knows what China does with the material they cannot use, and in fact they just decided not to take it anymore.
> Internally the encryption scheme was called CSS, chosen by people who I assume didn't code websites much.

"CSS" in this case stands for "Content Scrambling System." It may well predate the common use of CSS (stylesheets) on the web. They both originated around 1996.
Well, it _seemed_ nice. Regardless, I'm a bit more concerned with back-office scaffoldings myself. Any pointers?
Introducing pkgsign: package signing and verification for npm
Man. This is awesome. And also, you know, terrible. I think I really dig the detection evasion measures the most. Smart.
> Indexing & substrings are common, too.

Indexing code points in both UTF-8 and UTF-16 requires reading the whole string up to index location. Substrings are the same as well.

> Right, and for 1 billion Chinese speaking people UTF16 is 2 bytes/character, UTF8 is 3 bytes/character.

That's true for a text file without markup. But most text is not like that in 2017. HTML is probably the most common text format nowadays.

So let's see how a popular Chinese language website does.

curl http://language.chinadaily.com.cn/ --silent | wc -c
52678

curl http://language.chinadaily.com.cn/ --silent | iconv -f utf8 -t utf-16le | wc -c
93368

So UTF-8 seems to be quite a bit more efficient in this case, 52678 bytes. When converted to UTF-16, same page was 93368 bytes.
There's also this take on differentiating datatypes: https://codewords.recurse.com/issues/three/algebra-and-calcu...

Reading this makes a lot of the operations in colah's article feel more intuitive. (To me, at least. I'm no expert here.)
Reductionist arguments based on narrowly-scoped rodent studies are not appropriate in the context of long-term human motivation.

"Motivation is a chemical state" is a tautology in the context of psychology. Every human behavior and emotion derives from the chemical state of the brain. If someone is chronically unsatisfied with their life, would you reduce their concerns to "Happiness is a chemical state"? Stating as much does not add value to the discussion, nor is it actionable.

Likewise, in the context of human motivation it's not relevant to discuss rodent lever-pushing behavior following acute administration of large doses of high-potency DAT inhibitors. If someone is unhappy, would you provide links to studies showing that rodent display increased liking behaviors after administration of a potent opioid?

Stimulants like Adderall do induce generic motivation in the short-term, but that's not anyone is discussing here. Implying that stimulants are a source of motivation is dangerous advice. The motivational effects are largely temporary, and quickly give way to tolerance. Note that the attention-improving effects mostly remain in this case.

Drug abusers who seek motivation-boosting effects from stimulants either give up after tolerance sets in, or they settle into patterns of dose escalation in a futile attempt to outrun tolerance.

Dopaminergic stimulant abusers often have extremely high motivation during their binges, but it does not translate to anything useful after marathon obsessive cleaning sessions or internet binges. That's because motivation, in the context of what we're discussing here, is far more complex than just modulating your brain's dopaminergic systems with chemicals. Motivation is a much broader topic that involves discipline, goal-oriented behavior, prioritization, self-reflection, and many other complex phenomena that can't be reduced into a singular brain chemical like dopamine.
What makes you think GP didn't understand the context? I don't get why people bash other people for saying objective truths just because they think the other person doesn't understand why.

If they can't/won't ship up to date third party software, they shouldn't ship the third party software at all.
The domain under discussion is scripting and specifically comparisons with Bash. Python 3 has not achieved anywhere close to the platform deployment that Python 2.7 has. When the common OS distributions you're likely to need to script on ship with Python 3 as the default rather than python 2.7, we can start using Python 3 in random comparisons with shell scripts. Until then, Python 2.7 is the language for comparison no matter what rhetoric you want to employ.
One thing I learned about pcmpxstrx is that it's surprisingly slow: latency of 10-11 cycles and reciprocal throughput of 3-5 cycles on Haswell according to Agner's tables, depending on the precise instruction variant. The instructions are also limited in the ALU ports they can use. Since AVX2 has made SIMD on x86 fairly flexible, it can sometimes not be worth using the string comparison instructions if simpler instructions suffice: even a slightly longer sequence of simpler SIMD instructions sometimes beats a single string compare.

The SSE 4.2 string comparison instructions still have their uses, but it's always worth testing alternate instruction sequences when optimizing code that might use them.
I think of it more like a wake.

In "The Masque of the Red Death" they shut themselves away from the rest of the world. There's no correspondence from that to the end of core developer supported Python 2.
Canine couture cuts a dash in Italy's fashion capital
California has become the world’s sixth largest economy
LaTeX must be escaped in order to prevent LaTeX injection.

AFAIU, numpy.savetxt does not escape LaTeX characters?

Jupyter Notebook rich object display protocol checks for obj._repr_latex_() when converting a Jupyter notebook from .ipynb to LaTeX.

The Pandas _repr_latex_() function calls to_latex(escape=True † ).
https://github.com/pandas-dev/pandas/blob/master/pandas/core...

†* The default value of escape ️ (and a few other presentational parameters) is determined from the display.latex.escape option:
https://pandas.pydata.org/pandas-docs/stable/options.html?hi... *

df = pd.read_csv('filename.csv', );
df.to_latex(escape=True)

Or, with a Jupyter notebook:

df = pd.read_csv('filename.csv', );
df

# $ jupyter convert --to latex filename.ipynb
Thanks! I'll remember that if I'll need to buy a house.
Quite different from a modern key debouncer circuit like http://zipcpu.com/blog/2017/08/04/debouncing.html .

The modern FPGA circuit first passes the input through two latches to synchronize it to the system clock, and then has a digital counter to add a delay to rapid bounces. Here the delay is analog, and there is no clock input: the output digital signal is still completely asynchronous.

I wonder if they needed a second module to synchronize the signal and avoid metastability issues, or maybe that doesn't matter at the low clockspeeds they were using?
How could you have been quoting Simone de Beauvoir and then positing that her supposition is a "mistake" made by Feminists? Seems paradoxical on its face?
Half the upvotes are probably for the Rick and Morty reference.
> What isn't PC on Hacker News is the idea that it isn't society who is against women as programmers, but the environment built by "us". That maybe it isn't this environment that is more accepting than all others, but that "we" just fit in.

I don't find your comment un-PC, because I fail to understand it. What are you trying to say?
>[...]despite decades of preferential treatment, despite women being educated in number much higher than men.

Decades isn't that long a time to overturn social structures that have existed for centuries.
I find it a bit sad that, instead of optimising the existing REP CMPS instruction to do vectorised compares like they did with REP MOVS/STOS and block copies/writes, Intel introduced another even more complex instruction that itself requires a bunch of additional support code to use. I certainly don't think it's a "good use of CISC".
Spectre and Meltdown vulnerability/mitigation checker in shell for Linux
HN Classics: As We May Think (1945)
Because "lag" implies that Apple is going to catch up, which is not the case. jeremiep's response is that Apple won't ever (under current management) update to GPLv3.

It's not a lag, it's a deliberate avoidance.
(I worked at Opera during the WebKit/Chromium transition and work at Mozilla now. But in both cases I'm just a normal individal-contributor type employee with no special insight into strategy or decision making).

There are always options. Opera could have doubled-down on Presto; putting more people on the core team, and focussing efforts to keep up with, and surpass, WebKit/Gecko. After all, that's basically the option that Mozilla took, which has resulted in Firefox Quantum. Would that have worked? It's hard to say. I would guess not, but I'm not sure the alternative really did either. Maybe Opera was already too far down the web-compat death spiral to engineer a way out. I don't know of a long-term bet like Rust that could have come good at the right time.

Certainly the top-level culture of the organisations was different; Opera's leadership were very concerned with maintaining/maximising the value of their shares, whereas Mozilla is more clearly driven by ideological goals around the success of the open web. Opera also had a (historically well justified) belief that they could do more with fewer engineers than other compaines. That seemed to work up to a point, but once the difference in resources became too great it was hard to change the approach.

Certainly one lesson is that it's hard, maybe impossible, to be a niche browser with a unique rendering engine. That is arguably a failing of the web, but nevertheless it's a strong indication that arguments that e.g. Mozilla should aim Firefox at small ideologically-driven markets are dangerous. One interpretation of the Opera history is that they were too focussed for too long on the subset of users who wanted a browser with lots of features and configuration possibilities. A product that suits those people might be actively offputting to other users, so inhibiting marketshare growth when faced with competition targetting simplicity and sane defaults.
I was thinking more like FDR in the 1930s.
Flowmaker: JavaScript to SVG flowchart generation extension for Vscode
Flying is ocean pollution.

By emitting that large amount of co2, you are disrupting the ocean co2 flux, reducing o2 available and causing acidification. The warming caused by the thermal capacity of the co2 melts the polar ice , cooling the oceans and reducing their salinity. Plastic is relatively a small problem.
I teach online workshops on intermediate Python to several hundred developers each month, scattered globally. Since these are engineers in the work force, I start each class with a quick poll about which version they primarily use on their jobs: 2.7, or 3.x.

18 months ago, the results were typically 20% Python 3, and 80% Python 2. Over time, the ratio shifted. In recent months, it's VERY consistently 60-70% Python 3; one class it was 80%.

As I tell those students: sooner than you think, having only Python 2 on your resume will make it look dated.
"We fixed the ozone layer and stopped acid rain. We can fix this. It just takes commitment."

That's not a good comparison - ozone layer and acid rain were caused by very specific externalities that were relatively easily substituted with "better" ones that didn't cause (for instance) ozone holes and acid rain.

Carbon, on the other hand, is the least common denominator of human activity - so much so that even our breath produces it. I don't see any possible patterns of human existence on the earth that are ex-carbon.

Carbon output is a simple function of population in a way that ozone and sulfur are not.
Extracting CO2 could very well be possible.
The JVM has a number of cool features that enable you to efficiently drop down into C (FFI) yourself: these tricks aren't just for built-ins.

A quick overview:

- First there was JNI. JNI means that you write method stubs with the "native" keyword. Then you run javah, which gives you some C glue code that you eventually need to compile. This is very fast, but it's annoying because now you need a tool chain everywhere. The Python equivalent of this is roughly writing CPython extensions.

- People thought JNI was annoying, so Sun developed JNA. JNA lets you bind a library directly: all the magic comes with the JVM, and you can just dlopen something and call some syms. This works fine, but it's very slow. The Python equivalent of this is roughly ctypes.

- Most recently, there's JNR and jnr-ffi. They do a very clever trick: you use JNI to get to libffi, and then you use libffi to call everything else performantly. You get roughly the performance of JNI, with the convenience of JNR. The Python equivalent of this is roughly cffi.

JNR is way more usable than I thought it would be. I develop caesium[0], a Clojure libsodium binding, using jnr-ffi and a pile of macros. I gave a talk about this at Clojure Conj (recording [1], slides [2]) if you're interested.

To be fair: this code uses intrinsics, which means that it's implemented differently than the three methods shown above, so it's still slightly different. It's just not different in a way that's meaningful to you unless you're working on the JVM itself :)

[0]: https://github.com/lvh/caesium
[1]: https://dev-videos.com/videos/Lf-M1ZH6KME/Using-Clojure-with...
[2]: https://www.lvh.io/CCryptoClojure/#/sec-title-slide
I don't understand why npm even has the facility for a user to remove public packages.

It defeats the entire purpose of using a public repository.
Why do you want to move off of Django?
CTCI puts an emphasis on interviews whereas this book is only about competitive programming.

CTCI tries to make interviews about competitive programming, this book is about competitive programming itself.

CTCI offers some high level problem solving advice, and a list of exercises. This book elaborates provides a framework for understanding the exercises and elaborates on techniques for each type of data structure.
That's an interesting perspective, and one I hadn't considered before. I have to admit that it only fuels my fatalism. If people can't be convinced not to (e.g.) throw their trash out the window, then I can't help but despair.
If by "pure TeX" you mean Plain TeX, I use it, as well as LaTeX (I know I'm far from alone here). i agree that ConTeXt is a great project, with many advantages over LaTeX.
I try to avoid hyphen-based range notation. It's sometimes hard to tell if a single hyphen was intended to be a minus sign. Double hyphens look like ASCII em-dashes. I've never heard of of the triple convention and would be confused if you neglected an inline explanation.

Here are some alternatives:

* English: from 1 to 3

* Some programming languages: 1..3

* Math: [1, 3)

I guess this also the main purpose of the en-dash* : http://www.thepunctuationguide.com/en-dash.html . The problem there is that en-dashes can be inaccessible as in my case--typing on a phone.

* I actually originally missed your point because you forgot the hyphen between 'en' and 'dash'.
JSON Tree Shaking Lands in Webpack 4.0
An open em-dash is used to indicate the omission of a word.

It's best to use an open en-dash in the open case – which is standard in the UK (except for Oxford).

(This is taken from the Oxford Style Guide.)
> Successful

Does she show motivation 9-5? If so there might be an answer that's more elaborate than "broad chemical imbalance," and a solution a lot more emotionally tractable than a divorce.
> A Chinese plaintext document in UTF-8 is still smaller in memory footprint than an equivalent English document in ASCII.

When you need to process Chinese text you don’t care how much an equivalent English document would take. You only care about the difference between different encodings of Chinese language. And UTF16 is more compact for East Asian languages.

> most documents aren't plaintext

That’s true for the web, and that’s why UTF8 is the clear winner there. In a desktop software, in a videogame, in a database — not so much.
How do you know it has 7K views?
Doesn't imply that to me. To me, lag is just that they're behind, regardless of reason. It is lag and deliberate avoidance. Please stop assuming what people don't understand or are implying.
Wouldn't it be great if there was a LaTeX incantation that allowed for specifying that the referenced dataset URI (maybe optionally displayed also as a table) is a premise of the analysis; with RDFa and/ or JSONLD in addition to LaTeX PDF? That way, an automated analysis tool could identify and at least retrieve the data for rigorous unbiased analyses.

http://schema.org/Dataset

http://schema.org/ScholarlyArticle

#StructuredPremises
Show HN: Bitbar plugin (native MacOS toolbar) for OpenFaaS functions
Somehow, everybody pretends as if Webkit is some proprietary, closed source rendering engine, but after all, it is the great success of the KDE/Konqueror rendering engine, being adopted by some huge corporations (Apple, Google). [1]

While I appreciate that we still have the independent Firefox and its brand new Quantum engine, sometimes I feel like the Konqueror/KHTML team does not receive the appropriate tribute for laying the foundation for the dominant KHTML/Webkit/Blink engine.

[1] https://en.wikipedia.org/wiki/WebKit#Origins
> Though, if true, it would be useful to know. Money could then be directed to research and policy that helps increase IQ.

If I ever get really rich, that is what I plan to do. But the Flynn Effect has started to slow down or stop in many countries, indicating that we've plucked all the low-hanging fruits and we're running out of obvious ways to do that.

We'll probably fall down slightly in terms of average IQs in the population before IVF and genetic selection allows us redress the problem. Don't mention the E word (eugenics) though - germinal choice is a better euphemism.
Because we're all using Go for other projects (even if piecemeal) and would like to build the entire project in a single language.
I remember experiencing this when I was a teenager and into early 20s. There is something of a mode switch between hyper rational programming mode and human mode. Making the switch rapidly is a learned thing IMO.
Oh, I was thinking armed revolution, not political revolution.

Yes, the political revolution is absolutely happening and has started in earnest. With the popularity of Trump and Sanders, it's as significant since probably Carter and possibly earlier.

Trump was the first attempt. I'm not sure how it will turn out though. It (the revolution) will either run out of steam for a while, or the D's might have a turn at it. I don't see the D's running much of an outsider platform though. It seems they are mostly keeping to the same strategy and platform they've employed since the 90s. Business as usual.
This is a piece without substance since it basically says "Oh hey, competing chips actually selling to customers have some issues. We promise we'll be better when our lab designs finally end up in your hands. Trust and fund us now!" We'll see.

Anyone interested in what a better hardware/software-security architecture for RISC-V might look like should check out these exemplary projects:

http://www.crash-safe.org/papers.html

http://www.cl.cam.ac.uk/research/security/ctsrd/cheri/

https://vtechworks.lib.vt.edu/bitstream/handle/10919/29244/e...

CHERI already runs FreeBSD on a FPGA machine. I previously suggested merging Rocket with a version of CHERI as a start for that reason. Then, Draper is modifying or has modified RISC-V to use SAFE architecture. They're creating a brand around it as below.

http://www.draper.com/solution/inherently-secure-processor

So, that's what I've seen so far that addresses piles of vulnerabilities with a whole-system style of protection.
AFAIK, we're not discussing the author of the article, or other articles by the same author. Let's stay on topic, shall we?
> which has resulted in Firefox Quantum.

How is Quantum doing? On my computer, it's a lot slower; there are slow spinners in the tab titles and another kind of spinner for loading pages that often keeps me from seeing pages even after I already loaded them.
This is definitely an interesting point. There are quite a few people on social media sites acting like US specific outrages are somehow common to the whole world, despite their area not actually being affected by those issues (like police violence in the UK where it's mostly nonexistent). Seems the internet and popular media has given people the impression they're all Americans and that American issues and cultural norms are true everywhere on the planet.

http://tvtropes.org/pmwiki/pmwiki.php/Main/EaglelandOsmosis

Or how in other cases, there are quite a critical comments on media from other countries because they don't go by cultural norms in the US, or what not.
I expect RedHat to continue to support Python 2.7 for as long as major RHEL versions which came with are still under support.

I also expect major RHEL versions released after Python 2.7 is EOL to not come with Python 2.7 anymore.

That is, if RHEL 8 is released before the Python 2.7 EOL, and RHEL 9 is released after the Python 2.7 EOL, I expect RHEL 8 to come with both Python 2.7 and Python 3, with RedHat supporting both until RHEL 8 support ends, but RHEL 9 to come with only Python 3; so once RHEL 8 dies, RedHat has no reason to support Python 2.7 anymore.
sctb is right, of course, that your comment broke the site guidelines egregiously. If you do that again we will ban you. But I need to address a different issue about your comments.

We've banned you for race war in the past and you're still posting such comments to HN, as well as using HN for ideological battle in general. If you keep doing this we're going to ban you again. It is an abuse of the site which destroys its core purpose. Neither we nor the overwhelming majority of the community want to see it here. Therefore, no more of this, please.
Amazon and Google I knew had been around since the late 90s as I used both of them fairly early on. I still have a couple of coffee cups I got as "Christmas presents" from Amazon in early years as thanks for being a customer.

Facebook I started with while it still required a school address.

It does look though as if I started using Netflix in late 2001. So not that much later.
The Content ID system has nothing to do with enforcing copyright, and everything to do with enforcing an internal ruleset that has to do with monetization, and how much cash Google pays out to YouTube video creators.
Even in 2017, not everyone is a Web or Electron developer. I certainly am not.

I don’t advocate using UTF16 for the web, but people still code native desktop apps, mobile apps, embedded software, videogames, store stuff in various databases, etc. For such use, markup is irrelevant.
If you prefer spaces around the dash, then use an en-dash. This is standard outside the US, though not universally. Most US publishers use the closed em-dash.
Hi twic, thanks for sharing this! I love to see implementation in other languages.
I'm particularly interested in Rust, it would be awesome if anyone can make a attempt! :)