skysight-inc/HackerNews huggingface dataset:
I don't agree. There is a default configuration, and that configuration is very good (I've been following the process of nailing it down, and IMO it's been done very tastefully), and is the formatting used by official Rust codebases, lending it the weight of authority. I have no reason to configure it to do anything differently. But I also have no reason to forbid anyone else from formatting code as they please. What's the possible harm? If you're on a team, and you want code uniformity, you require the default configuration. If you're worried about pulling some random code and having it use {tabs|spaces} instead of {spaces|tabs} (which, btw, is, without hyperbole, the dumbest argument in the entire human history of programming) then you set your editor to run rustfmt on files before opening them.

The gofmt argument isn't the final word here. There's plenty of Go users who don't like gofmt's style, so they just don't use gofmt. It's easy to imagine other users who don't like gofmt's style, and don't like being pressured to use it, so they just don't use Go at all. How is that any better than just having a configurable tool with sane defaults? It's one thing for a tool to be opinionated; it's another thing entirely to be dictatorial and stubbornly inflexible.
very little I would imagine compared to the absolute vast amounts that travel around the financial system every day
It depends. In a back office role, you will have a more traditional salary plus 20% bonus. Infrastructure at a bank might be have a higher bonus component even at pres level.

On the trading desk, your bonus is often often open ended, or if you are doing strategy work then a percent of pnl.
I cannot trigger this crash on iOS 10.3.2, despite repeated attempts. I can reliably crash friends' phones by iMessage for all friends on iOS 11.

That suggests to me that Apple made changes to CoreText, and did not perform adequate regression testing.

All software has bugs. I understand that. But I suspect a large part of power users' and developers' growing frustration with Apple is that they keep introducing severe, kernel-panicking, root-exposing bugs in software that previously did not exhibit the problematic behavior.

Honestly, how do you not have a stringent regression testing requirement for changes to the "Core" of the operating system?
It will never be okay to give preferred treatment to those that use your framework. This basically is telling all other framework authors, "never mind, Google has decided the one that anyone that everyone will have to use (if they want in to the SEO club)" At this point, they're no longer saying, "we've found the most pertinent search results". Instead, they're saying, "our friends provide the best stuff... don't bother looking at the others"
Thank you for the article link! It was an interesting read, indeed. I hadn't thought of this seemingly obvious approach, and it's one that won't be too difficult to pitch to management.
4. Buy as many textbooks on the subject as possible. Many times it helps a lot to study the same topic from different books.
So— there is a way to defeat this, which is to track down the original source video that was modified to match, but yeah, in a few years this is going to wreak havoc on news reporting, intelligence, and the justice system.

People are going to have their lives destroyed by intelligence services over this.
That would be the best thing to do IMO, but the problem is politics. Congress loves wasting money on toys that kill people, but when it comes to things that saves lives and advance science, all of a sudden budgets are tight or we need a new round of tax cuts.
CRISPR hack transform﻿s cells into data recorders
I know this isn't exactly what you were saying, but I recently bought myself the (ancient) Star Wars Empire at War games, and they run better under WINE than they did under Windows 10. There's some problem that makes it drop frames and become unplayable in Windows.

Moreso on topic, I actually do much of my gaming in Linux, I only have a couple of AAA titles that I use Windows for (Elite: Dangerous and AC:Origins), everything else is Linux (KSP, X-Com, X-Com 2, RimWorld).

I often try and make a point of emailing a "Thanks for supporting Linux!" to the companies who release the ones I want to play, just so they know we are out there.
It is indeed made up but it's a lot easier to understand when it follows established rules.
Household products make surprisingly large contributions to air pollution
It's not in every scenario, notably, the plaintext one.

One reason why things are behind in some of the other scenarios is because our database driver stuff is synchronous at the moment, and that really hurts on these benchmarks. We'll get there!
Ugh, I've been using right-click > copy image address pretty habitually everywhere else.
Guess I gotta get in the habit of doing it with google images now too.

Idiotic change, isn't bureaucracy great.
Indeed, that's how youtube, twitter, and facebook use MySQL, among others.
They're selling automatic grading systems to professors and administrators as well.
Hey guys, is this open source? any chance I can send a PR to add another exchange you don't currently support (like CEX)?
I've been writing so much boring backend Java for so long... Some Python would be a sorely needed breath of fresh air. Thanks for pointing me in this direction. I might just play around with it on my homelab for the fun of it!
So who sets the question paper and homework assignments? If it is the same prof who hand over the material, that's not a very good class. I wonder which subject this might work well for.
memmem is substring search. You could use it for char search, but does memmem know about UTF-8? If, say, memmem uses memchr internally in a skip loop and it happens to look at the first byte in the UTF-8 encoded codepoint, then it is going to perform a lot worse in most cases involving the search of text that is in a language other than English (because it will wind up searching for a very common byte).

Or maybe memmem does something else clever for shorter needles. Dunno. Best to benchmark it. But it's not an obvious win a priori.
Rust is not safer than Python in Rust's own terminology. It takes more work than in C, but you can write memory bugs in Rust, by design. Python will catch those damn near every time, and if it doesn't you file a bug. Sure, there's less serious classes of bugs that Rust is likely to catch, but that's not really safety except in a definition loosened to near uselessness.
Of course JS has exceptions. The EcmaScript explicitly uses the term "exception" [1].

[1] http://www.ecma-international.org/ecma-262/6.0/#sec-try-stat...
people do all sorts of silly things with $10k or way more than $10k as a hobby... look at the folks with quarter mile drag strip cars you can see on the youtube "tesla racing channel" (high octane gasoline fueled highly modified cars) racing against the stripped down P100D. Any of those are easily $40-50k and run a huge risk of catastrophic expensive engine failure at any given time.

Or the people who are now importing right-hand-drive JDM 25 year old Nissan GTR from Japan. Easily $22k each and then they put another $20-30k modification into them.
This does exist: https://github.com/fluture-js/Fluture/blob/master/README.md#...

Future.of(0).promise().then(console.log);
They have since passed the Jepsen test to be fair. But before then I fully agree, why people trusted MongoDB with their critical data is beyond me.
CommonSense Robotics raises $20M for robotics tech for online grocery fulfilment
I don't think a poorly designed program is really a good benchmark.

I wonder if there is some frustrated economist at the FDA that always mumbles about incentives and gets told to shut up.
You'd think this would pay more, to make up for lack of supportive infrastructure and career opportunity.
Show HN: Filemap, a file-sharing service your parents can use
To Survive, These Animals Must Lose Their Camouflage
He means crash the single web page doing the loop... how would you fix this? Isn't the correct behavior when an application goes past resource limits to crash the app? It doesn't crash the browser or any other open tabs.
Robonaut Has Been Broken for Years, and Now NASA Is Bringing It Home
MyStatLab. $110 just to submit homework I already paid for. I don't get to keep any of it either. I just have my class notes which were never that good.
What do you mean by "straightforward" ?
This isn’t exactly correct.
ATI pulled a “fast one” and went with 24bit despite the initial DX9 spec called for 16/32 bit floats which NVIDIA followed.

Once DX9 was split into DX9b and c that “advantage” went away and NVIDIA proved that 16/32 bit was better, something that ATI also had to adopt once MSFT told them enough is enough.

24bit is only better as long as it can do everything 32bit can do and it’s advantageous to build a hardware with 24bit FPUs instead of 32bit FPUs that can also do 2x16bit ops per cycle.

Basically if the silicon cost allow you to put far more 24bit FPUs than 32/16bit ones.

And history proved that this isn’t the case.

For gaming eventually even 2:1 FPUs went away since they are costlier than only 32bit FPUs with promotion.

Maybe in the future we’ll have a 24bit FPU that can also do 3 8bit ops or 16bit+8bit op per cycle if it will be more beneficial than the current 2:1 16/32bit model.
This is written in python. Anyone able to get this running under msys with gtk3, etc
Powershell is available on Linux
> new research reveals that account holders are more likely to stay with their bank – typically for 17 years – than remain loyal to their husband or wife, with the average British marriage lasting just 11 years and six months.

https://www.theguardian.com/money/2013/sep/07/switching-bank...
"throw" takes the value to throw as an exception. An exception is an event which can be handled with "catch". [1] The standard refers to predefined errors such as TypeError as "exceptions".

[1] http://www.ecma-international.org/ecma-262/6.0/#sec-try-stat...
Thanks for sharing your compelling argument. You've convinced me!
>People are going to have their lives destroyed by intelligence services over this.

there's a paradoxical effect to it though. If these technologies become so pervasive that they're not distinguishable from real footage they'll lose their entire value, especially in a legal case. If you could arbitrarily create fake dna tests there'd be no point to pay attention to the results.
Newly observed optical state could enable quantum computing with photons
Making a Mark: Visual Identity with Tom Geismar
I have yet to hear a valid argument why pirating educational matetials is a "bad action" in the first place
I'm talking about normal parents, not my-parents-invented-the-computer kind of people.
If you knew it was effective what's the point of the research? The research is what's used to demonstrate efficacy. The FDA requires research because it cannot be known if a drug is safe and effective without research. They don't require you submit all the research that found a drug didn't work. They only require it of the one that did. It doesn't change the fact that you have any number of chemicals that could do any number of things, and you do research to demonstrate which ones have the desirable properties. Not that no one has to constructively invent a process to manufacture a drug, but what a drug patent typically grants is exclusive manufacture for proof of medical utility.
marine salvage rules might apply...

which means the ownership is not maintained.
So, by "graded approach" you understood the exact opposite extreme from the current?
personally I'd much rather have the bank-account-that-receives-my-salary have its transactions processed by prehistoric software running on an ultra-reliable mainframe instead of the latest version of mongodb or cassandra on AWS

I will however happily sign up, deposit the bare minimum and thank their VCs for paying the foreign exchange fees for my holiday :)
Ask HN: Using a library licensed under AGPL v3
Hi HN,

I want to integrate spaced repetition on my SaaS app (under development) using Anki's modified SuperMemo 2.0 library, but it is licensed under AGPL v3.

As stated in the license, any modification needs to be distributed back to the community. I will not modify it, but it will be an essential component of my application. Creating a work (my app) "based on" another work (Anki) qualifies as a modification?

Do I need to open source my whole app if I use it?
Even AI researchers fall to the Singularity (imo) fallacy, including Schmidhuber:

http://people.idsia.ch/~juergen/history.html

Although at least there's some display of self-skepticism:

"Kurzweil (2005) plots exponential speedups in sequences of historic paradigm shifts identified by various historians, to back up the hypothesis that "the singularity is near." His historians are all contemporary though, presumably being subject to a similar bias. People of past ages might have held quite different views. For example, possibly some historians of the year 1525 felt inclined to predict a convergence of history around 1540, deriving this date from an exponential speedup of recent breakthroughs such as Western bookprint (around 1444), the re-discovery of America (48 years later), the Reformation (again 24 years later - see the pattern?), and other events they deemed important although today they are mostly forgotten."

Which is a little rare, if you know the curious character of Jürgen Schmidhuber :)
I do want to see if a 2/3/4-byte memchr can be written that uses the same bitmasking as regular memchr but extended to more bits (perhaps via SIMD).

That would be pretty neat.
I believe the vt100 terminals have been phased out for FedACH/FedWire, which are the "modernized" APIs (read: the same weirdo fixed-width NACHA format but sent over HTTP/SFTP).
"Just about everything you own running embedded software that has some update functionality..."

"Worse, just about all these devices have some access to JTAG ports such that you could easily program them yourself if you wanted to and had something useful to flash them with. I've run into so many products I use on a regular basis with bugs or simple but badly needed features that I could have easily fixed/hacked in with access to the source code but alas, I cannot."

IMO, it is a massive waste. Short-sighted, short-term thinking.

There are people who for whatever reason do not want you to have access to the software ("firmware") and to read/fix/improve upon it.

Some of these people comment on HN. They become active during debates over whether users would derive any benefit from being able to read and edit source code.
I use it on iOS. So, for me the explanations really help. Because I understand the rules after seeing a few examples and the rules help me grasp it easier or see something subtle that I may have missed. Especially important in Russian.

But I can see it in a case where if you come from a language that has some grammatical overlap with Russian. It may not be as helpful, because she already has a mental language mapping for it. For English speakers or languages that some of these concepts are not native, it's quiet hard.

I do agree many native speakers do not know the rules. But they'e not the ones who would be creating the additional teaching modules. I'm sure there are plenty of Russian teachers who would love to make side money teaching Russian to non-native speakers and create explanation material.
The thing is the general problem with software development right now:

What we know is "intuitive and simple". What we don't know is "off-putting and academic".

Terminology is incredibly important in computer science. If you make something that's kind of like a promise, but not "quite" a promise, and call it a promise, a lot of problems wil arise when people use your code or try to debug it. Monads are pretty simple (they're a heck of a lot simpler than promises). The terminology manners because they're all about interop. If you make something like a monad, but it's not quite a monad, you essentially lose all the benefits (that's the problem with promises).

Fantasy-land is a specification. It's meant for implementers, not for users. The important part is that people who build libraries that should work with other libraries also conforming to the spec, work well with each other. Take a look at some of the very simple constructs you might be used to, and how they are specified on the TC39's github. I'm quite familiar with the spec and I have trouble reading it, but I'm not the target audience. For the users, there are simpler resources.

As for the terminology, inheritance, polymorphism, overloading are all words that a lot of people are familiar with. I'd say the terminology is way worse, and the concepts are often a lot more complex, but people are used to them because it's what they're taught. Java put in monad-like constructs in their Optionals, and it's a lot friendlier...except when trying to compare 2 libraries doing the same thing using 2 different 'friendly' terminology, it's hell. It's not about being academic or elitist, it's about being precise. Something I can google for without having to sort through 16 pages of unrelated crap.

Google for monads, you'll get a lot of relevent material. Google for "optionals", and now you have to precise which language you're talking about, and in some cases potentially which library.

If you want a friendlier intro, look up "Functional programming in javascript" by luis atencio. It's fantastic.

I also always liked this tutorial:
https://medium.com/@tzehsiang/javascript-functor-applicative...

At the end of the day, you don't need to know what dynamic method dispatch is to use it. Only the implementers need to :) This is the same thing.

Finally, yeah, some stuff look like "enterprise java". And there's a reason "enterprise java" existed: not all problems are easy. Some companies have hard problems to solve. Maybe it wasn't the best way to solve those problems, but a vanilla Rails REST api probably is worse. That doesn't mean everyone needs those solutions, but its nice that they exist. In this case, most people wouldn't have felt much difference if promises had been monads. But for the people who need monads, they're worse off by the current state of things.
They sure exist! But Google's search has like 4/5 of the market.

If you optimize for the bottom line (as a business should), what will you pay most attention to?
you should check it again :)
actix-web now has user guide https://actix.github.io/actix-web/guide/

here is irc bot (wip)
https://github.com/DoumanAsh/roseline.rs
On the "running" side of things, lately I've been looking for solutions to fact that distributed teams can't gather in front of an actual whiteboard for discussion / design.

I've been surprised by how hard it is to find cheap, effective alternatives. Cost is a particular concern when each person works from his/her own location.

(1) At the high end, you have dedicated large-screen devices with dedicated software, like Google Jamboard. Gorgeous, awesome, very expensive. $5k+ USD.

(2) Next step down in terms of price and glitz: the combination of a real whiteboard + a projector + special hardware for monitoring pens and/or hands. About $1k USD if you have to buy the whiteboard, and already have the computer.

(3) Next step down in terms of size, but about the same price: tether a touch-/pen- sensitive display to your computer. E.g., iPad Pro, or Wacom Cintiq or a cheap knockoff. ~$400-$1200 USD, depending on device and size.
Pros: Portable.
Cons: Much smaller area to draw.

(4) Status quo: Each person sits at his/her desk, using a mouse or (if they don't mind smudges and/or gorilla arms) a touch-sensitive laptop screen.
Pros: Ubiquitous.
Cons: Not fluid way to draw / annotate for most people.

* Note: The breakdown above focuses on HW. I'm assuming that the SW side is at least somewhat solved by online, shared docs such as Google Draw, Realtimeboard, etc.

* Note 2: A lot of the online collaboration sites are a hard sell in corporate environments if sensitive information is to be shared.
Chickpeas threatened by extreme weather conditions and genetics
That would be great, but unless there was an anchor in the html, I'm not sure how a link from the search results could do it...
Or copious car exhaust...
See also chapter 6 of The Craft of Text Editing by Craig A. Finseth:

https://www.finseth.com/craft/#c6
This is a very good comment and in my point much more valuable then the actual blog post.

I ask myself based on this world view if there are useful other representations beyond the popular choices of lists and strings. Apparently, lists (like in lisp) are already so universal that they can represent any kind of structural data.
Well, the thread was partly a metathread about our culture, so I don't consider it off topic. It seemed particularly tangible and demonstrative in a thread with a lot of subjective back and forth.

And maybe the comment would have been upvoted on its own. Maybe not. It's hard to draw a conclusion either way after the fact. I just did what seemed to be the right thing at the time. Anonymously upvoting and shaking my head didn't seem enough.
I only run Windows inside a VM now. The main reason I didn't switch to Linux sooner was because of games, but GPU passthrough works well enough now that I can dedicate my main GPU to a VM and get close to native performance (within 3-5%). Currently I have a Vega 64 configured for passthrough on a Threadripper 1950X system and it runs great. It's much more convenient than dual booting.
> finally have usable web results on mobile.

Weird, I've been reading web results on mobile for over a decade.
The least we can say is satoshi's whitepaper lists eliminating financial intermediaries as the prime motive, in the first paragraph itself.
tl;dr: he's moving to Hollywood to work on a "media endeavor," and also he's a pariah for backing Trump.
stable rust is only two years old. we just need some more time
F12 => Copy image src
Why the hell do I have to "look up" personal experiences I had that made me dislike using Linux and OS X? It's great to hear some of my issues were out-of-date but come on. I tried using these non-Windows operating systems and eventually switched back because I didn't like the experience. An imperious series of posts telling me that I'm wrong because there has been an improvement and, anyway, shouldn't want to do what I want to do, is not exactly persuading me to feel differently.
The only reason I don't use gofmt is because it is unconfigurable. And some of its defaults really stink. Kudos to Rust for getting this right.
How to send multiple hearts on Instagram direct message (Dm)
How though? Don't marine salvage rules depend on the original owner no longer being in control of the object (i.e. it's in 'peril')? If that's not the case, then it seems like anyone with the resources could go pick up the Curosity rover, or snatch up the Hubble.
> The FDA requires research because it cannot be known if a drug is safe and effective without research.

Why not? AstroZeneca knew the safety and efficacy of Nexium without doing any research, but they were still required by law to run a couple studies.
> To the one with the worse outcome equality of outcome will always be more desirable than equality of chance.

That's not true. Yes, equality of outcome would give disadvantaged people more money to buy bread. The mistake is assuming that the price of bread would stay the same.
A recent episode[1] of Fresh Air (NPR) discussed medical implants. Pretty eye opening.

[1] https://www.npr.org/2018/01/17/578562873/are-implanted-medic...