skysight-inc/HackerNews huggingface dataset:
>Also since the code has to be downloaded (or uploaded to small lambdas, for example), JS developers are generally weary of depending on large libraries.

Isn't a dependency tree of thousands of small, interdependent libraries essentially just a large, distributed library?

Is there really a benefit to that versus compiling those dependencies to a single file, especially given how many NPM packages are just a single small function? The end result in many cases would probably be smaller than a lot of old JQuery plugins.
“someone sneaks in a boobytrapped compiler somewhere...”

Especially one that spits out a white supremacy message every once in a while: https://www.quora.com/What-is-a-coders-worst-nightmare/answe...
22 predictions for social media in 2019
I work in a small shop, much "behind the times", and recently tried introducing gRPC. It went okay. The problem is it was a hard sell and for our limited needs, a lot of gRPC's features weren't something we didn't happily solve with REST. Some of the other more complex features that REST didn't support were things we didn't feel we needed. All together, gRPC was a big burden for me to push, with little payoff for people. I think I was the only one that liked it, and even I disliked parts of it.

So before pulling the switch too far, I decided to take a step back and assess with benefits we all got from gRPC. Mainly it was Protobuf spec, RPC design (ie not REST verbs and whatnot), and code generation.

Because those were the things we all agreed upon, I went with Twirp[0]. It's been a great experience so far. The rollout is just a bit ahead of where our gRPC was, and it's been mostly effortless.

The most effortless thing? I've got an (internal) API user switching from the old REST API to the proto RPC spec, and all they're changing is the URL and a few field naming schemes. It's still JSON for them. They're not generating code, they're not doing anything. It all "just works", which is pretty impressive.

TL;DR: We love simpler options that let us gain the benefits of Protobufs, without the complexity of gRPC when we don't need it.

[0]: https://blog.twitch.tv/twirp-a-sweet-new-rpc-framework-for-g...
Assembler is pretty trivial to translate to machine code (and can be even written so that it's 1 to 1 per line).

Theoretically (not very practical due to size) you could translate the compiler text that you see to machine executable code yourself, looking at some opcode reference.
Build Safety of Software in 28 Popular Home Routers (Dec 2018) [pdf]
He said...

...to look up a specific word in mind only (you cannot leaf through it for ideas)

So you wouldn't be a mechanical turk searching through it under his ruleset.
While comments like this can be interesting, they are probably more suited to reddit than hacker news.
You kind of expect people to look after young mothers and babies and toxic stuff is unnecessary. If it was marketed as a car repair product you'd more expect it to be a bit toxic along with petrol, brake liners and so on.
It's more likely than the CEO of this organization making an uninformed public statement. Doing so is indeed the behavior of a clown. But I guess we'll see.

Edit: We don't even have to wait! SMH...

https://www.google.com/amp/s/techcrunch.com/2018/12/14/robin...
Wow I’ve never heard of that before now. About the funniest I’ve had is a cat who loved spicy pork rinds. He chased me down from 30’ away once.
That makes more sense. Thanks.
Don't forget skateboarding[1,2]. This Ain't California captures the uptake of skateboarding culture and friendships that formed over it in East Germany.

[1]https://www.pri.org/stories/2012-08-01/new-documentary-looks...

[2]https://www.dw.com/en/freedom-on-four-wheels-in-east-germany...
We’re they more than a little aggressive to get it from her?
A few years ago I read the novel "Galatea 2.2" by Richard Powers which is all about training a neural network to do just that and thought "now this is some bullshit".
Quantum randomness gives nature free will
A bit different, Poland in the 80s https://imgur.com/gallery/960KNrY
I think in some states they can appeal from small-claims to non-small-claims court then you have to get a lawyer. Obviously a super pro-corporate court system.
5 Techniques to Avoid Memory Leaks by Events in C# .NET you should know
Today is Esperanto Day – here’s why I learned it
Absolutes should be avoided, always. Everything in moderation, even moderation.
> Unicode in identifiers is an exceptionally bad idea

In Swift all identifiers are Unicode - basic letters are part of Unicode. The entire source file is Unicode all the way through.

> how is a Canadian supposed to easily use it?

Using their keyboard? Can't a Canadian type these letters in the exactly the same way as anyone else would?
When you talk about a country you never visited, consider Paris syndrome
There is no naturally occurring source of hydrogen. That’s why you see ads for HFC from Shell and Chevron. Hydrogen must be made from oil or gas. Salt water electrolysis doesn’t really work at scale as it requires even more oil and gas. Even if you do SWE with renewable energy, it’s about 22x less efficient than putting the electricity in a battery. We have fusion. It’s in the sky. We don’t need it on earth.
Only for the record, "Lindows" actually existed, it was the name (retired/changed because MS didn't like it [0]) of Linspire [1]:

https://www.linspirelinux.com/

[0] https://en.wikipedia.org/wiki/Microsoft_Corp._v._Lindows.com....

[1] https://en.wikipedia.org/wiki/Linspire
Copyright license and contract are not (necessary) the same thing. An important related fact is that contract breach is generally less penalised than copyright infringement.

See eg https://perens.com/2017/05/28/understanding-the-gpl-is-a-con... & https://www.youtube.com/watch?v=6i9sngsv8G0

(And keep in mind that per-license US case law doesn't have standing globally)
Looks like a dangerous world, those evil socialists. Is the message to hate socialism propaganda from those who have the most to lose?
You're understanding of dead weight loss is not how economists use the term. Dead weight loss is simply when a market is not at equilibrium and there is some allocative inefficiency. There is absolutely no moral or subjective judgement there: it is literally just a description of a feature of a supply and demand graph. Dead weight loss is often presented negatively, because we don't want inneficiency, but it's not defined by some moral badness.

Your example about sin taxes is wrong. The whole point of a sin tax is to shift the supply curve to the left and let the market come back to equilibrium so as to reduce equilibrium quantity. Sin taxes wouldn't work if they didn't move the market to an equilibrium.

You may think that, in this case, the cost of distortions in the market caused by licensing is morally good and a net positive for society. That is an entirely reasonable position to take. But you cant then pretend like those inneficiencies don't exist by playing word games.
A Performance Survey on Stack-Based and Register-Based Vir Tual Machines [pdf]
It did not disrupt the supply chain, it was already non-existent. At no time in USSR's history were there full shelves anywhere except for Beryozkas (stores for party members.) It was a political system without any credit of legitimacy and political credibility.

The state system of Bloc countries was completely unredeemable.
Gigafactory 1 is two years from full production. Gigafactory 2 is five years from full production. Fusion is infinity years from full production
Is this programing 101?
If code reached the point where it can't evolve anymore - it should be rewritten. Otherwise it will be dead code and there's not so many fields where dead code can be used without killing everything around.
We opted to store proto files in a singular location. In my view, this has three benefits:

1. Protobufs importing each other becomes effortless. You don't need to download multiple repositories, if you have the proto repo, you have all the dependencies.

2. Decoupling "ownership" allows for a bit more freedom when creating proto files that describe shared data structures.

3. You get a singular location to browse infra. It doesn't describe relationships of course, but it's handy to be able to see what services you have and what their API looks like.

Disclaimer: I don't use gRPC, but I do use Protobufs & an RPC, Twirp.
>>> As a C++ developer I can’t imagine 1700 dependencies in a relatively new code base.

>> I think the answer is everything in your standard library plus some of the stuff you would use 3rd party dependencies for in your own project.

> Even in C with its tiny standard library you don’t see this kind of explosion.

I think one of the largest factors is that client-side JS doesn't have a good solution to the problem of dead code elimination.

There are solutions like Google Closure (the JS-to-JS complier), but it's difficult to set up and not many people use it. Instead, it seems like people have moved to lots of small dependencies so they can essentially do dead code elimination by hand.
DesignEvo Review: Free and Easy Online Logo Design
Gravity storage has its uses but won’t work in urban areas. We are gonna buy cars for a long time, and we might as well also use those cars as a distributed power plant when they aren’t being driven. Tesla isn’t a car company. It’s a power company.
My dissertation was about energy- and symplecticity preserving methods for Hamiltonian ODEs. Try to find the book by Blanes or the one by Leimkuhler.
The actions of strtok can easily be coded using strspn and strcspn.

https://groups.google.com/forum/message/raw?msg=comp.lang.c/... [2001]

https://groups.google.com/forum/message/raw?msg=comp.lang.c/... [2011 repost]

strspn(s, bag) calculates the length of the prefix of string s which consists only of the characters in string bag. strcspn(s, bag) calculates the length of the prefix of s consisting of characters not in bag.

The bag is like a one-character regex class; so that is to say strspn(s, "abcd") is like calculating the length of the token at the front of input s matching the regex [abcd]* , and in the case of strcspn, that becomes [^abcd]* .
Did a slave make your sneakers? The answer is: probably
I believe there's some things your have to do such aren't C compatible, e.g. store fat pointers of base+length+offset instead of raw pointers, to catch OOB accesses.
For a simpler explanation, see https://doc.rust-lang.org/edition-guide/rust-2018/ownership-... (the guide says beta but it’s in stable now, that will be fixed soon.)
Or have those file formats been designed around having to parse them in a C program?
The Machine That Changed the World; Interview with Alan Kay, 1990
> Yout don’t really use regex in C.

Speak for yourself. There’s a POSIX standard for regex that is more than 30 years old & a GNU implementation that comes with gcc. C++ has regex in the standard library.
See also http://openvault.wgbh.org/catalog/V_D9DC82D997454711A71B586E...
Ask HN: How did you decide where to live?
For the remote workers out there (and anyone with a mobile career, really), where do you live? And how did you decide to live there?
I'm glad to see they're rethinking the details and promotion of this new service. I don't see how they can provide 3% return and still get covered under FDIC, but maybe they can find a way to get on the right side of SIPC.
I don’t think the fact that Unicode identifiers can be confusing is a big problem.

If you trust some third party enough to download code they wrote and run it, the added risk that you confuse a few identifiers and run code you didn’t intend to run isn’t that big.

If this happens in code you wrote, you fix it when you discover it or learn to live with it, just as when you find the same problems with ASCII identifiers. Those also can be confusing (Il0 vs I1O, color vs colour, misspellings, etc)

Also, inconsistent transliteration to ASCII can introduce problems. Using native strings can prevent that.
It's not clear that catnip's nepetalactone has anything to do with sexual functions (that's not very solid speculation by researchers, and less well founded than for, say, valerian); it doesn't seem to correlate with gender or neuter status; even if it did, it doesn't exist in the wild in order to affect cat populations in the first place (catnip grows wild in only a tiny fraction of domestic cat or the original wildcat ranges and varies dramatically across _Felidae_ anyway); and even if it did affect sex in the wild, wildcats are not particularly social creatures in the first place and the rare 'cat colony' is largely a human creation; and even if it did affect cat colony, 'group selection' like that of species requires unusual and very delicate conditions, otherwise it just collapses into individual selection on 'selfish genes'.
winRT (or whatever it’s called now) is not .NET. It’s based upon COM and has full support for native code. .NET is designed with native COM support so it’s use is seamless there.
Everyone has done "successful" rewrites. But a rewrite that takes 2 years and requires a team much larger than the original team isn't successful in the eyes of most stakeholders and is almost NEVER what the dev team proposes as the timeline. Just because something got done eventually at great cost doesn't make it successful.
This seems to boil down to FAANG is taking your open source code and using it and no license jiggery pokery will stop them. The author seems to think that dual
licenses are there to try and persuade Google to pay for your add-on extras.

I don't think that's right - the dual license is there to get Google to use the oss version and then snaggle the second tier of the Fortune 5000 into paying.

And it might, maybe, be working. (data needed, all i have is anecdata)

> business models like “support”, “services” and “training” are entirely viable

But that's the problem. They aren't really - at some
point the effort in approvals and purchase orders gets so great that anything that is not "you can't use it" is not worth the candle

The thing is a license is a subscription - and subscriptions seem to be the only way to make money.

Everything else just pales.
It could be argued that miscarriages due to genetics that are incompatible with life to whatever degree are nature getting it right.
So hypothetically, if all developed countries suddenly decided that it was worth whatever the cost, could we get to 100% renewable in say.. 10 years? How much of our activity would need to be directed at this? Not even research, if the plan was just make as much renewable energy as we can with current methods as fast as we can.

Of course this would never actually happen and we're in all likelihood gonna continue to trash the place, but is this possible even in theory?
Those numbers obviously compare price per actually produced GWh.

Do you really think hordes of scientists around the globe do dozens of studies and have never thought about a point as trivial as this?
This is great stuff, thanks for sharing.
Guess what? You wrote a state machine (DFA most likely) in code, where the program counter represents the state. There is in all probability (if your language is sane), a 1:1 correspondence between the code you wrote and the regular grammar of your tokens. You implemented a regular language matcher, i.e. a regex matcher, but in code rather than via a regular expression language interpreter or compiler.

Typical pattern:

start = p;
while (isspace(*p) && p < eof) // [ ]*
++p;
if (p == eof) return EOF;
if (is_ident_start(*p)) { // [a-z]
++p;
while (is_ident(*p)) // [a-z0-9]*
++p;
set_token(p, p - start);
return IDENT;
} else if (is_number(*p)) { // [0-9]
++p;
while (is_number(*p)) // [0-9]*
++p;
set_token(p, p - start);
return NUMBER;
} // etc.

Corresponds to:

IDENT ::= [a-z][a-z0-9]* ;
NUMBER ::= [0-9][0-9]* ;
SPACE ::= [ ]* ;

TOKEN ::= SPACE (IDENT | NUMBER) ;

Inline those nonterminals, and guess what - regular expression!
Activision forced Al Lowe to cancel his Leisure Suit Larry source code auctions
Awesome! That's great. Thanks!
90% of the population isn’t gonna care about such drop. The chinese govt isnt gonna let the media color it bad.
The $500 Brownie
> why not. write it in rust?

Exactly to avoid having any rust compilers in the chain.
I am working on a legacy application which brings in 90% of the revenue of the company (imagine something managing bookings for an hotel chain: of course we get also revenue for what guests pay during the stay, and maybe for cups, pens, and bathrobes with our logo, but the vast majority comes from the bookings, of course).

As such, every different part of the business may request changes/enhancements - our team provides these to lots of different "business departments" across the whole company.

Again, imagine a hotel chain with hotels all over the world, each national branch may require specific changes due to local laws and regulations, or because they need to start a new incentive campaign or participate in a joint venture with a flight company or whatever.

There is one application, and N different (competing) "customers" each one considering only their own specific plans and priorities. (In case of conflicts, the pecking order will be used to solve who gets more attention: biggest hotels, or hotels in regions that bring more revenue have more "clout").

Now, when I say "we have to postpone your request for X in order to recoup 780 more days later" the guy in front of me will immediately conclude that he will not necessarily get a bigger share of these 780 days - he will have to fight for his piece just as strenuously as before, and in any case this will happen maybe in three months, and he needs his stuff yesterday - so he better insist to have his own specific request included in the release, no matter if it costs 21 days, 20 days, 5 days: he wants this to be done because the rest of his business needs it for a specific date, and everything else is just a way for IT to postpone his request once again.

In other words: everybody wants their own specific request implemented as soon as possible, and anything else has absolutely zero interest for them. Especially if it is some promise of future "gains" from guys who are constantly late.

In my experience, this is not so uncommon when you work on an app that has been developed internally (and so there is no unified marketing department which represents a single stakeholder) - note also that precisely because we have to work for a myriad different "internal customers" we tend to accumulate "technical debt" at a faster rate: there is only one codebase, and has to accommodate all these pesky requirements from all over the world...
Stephen Wiltshire
Matlab R2019a Crack and License Key Full Version Free Download
Note the: "that is not part of a definition".

This is about declarations only.
What about the fact that money paid later is always cheaper than the money paid today?

What about being a rational actor and actually asking what are you going to get from the contractors who are requesting 200000 upfront? Surely their contract would have more detail the cheaper one lacks.
Looks like my comment is unpopular. Let's do an experiment. Is this photo from a socialist country or a capitalist country?

https://i2.cdn.turner.com/money/dam/assets/140612125240-most...
Media the world over do withhold names: rape victims, underage defendants, so it isn't impossible for them to control themselves if there was a clear risk of a miscarriage of justice (which may or may not be the case in this instance).

Slightly off-topic, but the picture in the article of a (recently demolished) newsstand neatly represents the international portrayal of Australia...laid back people in flip-flops lounging about without a care in the world. The reality is that, given the location, those were far more likely to have been tourists.
Answer: Detroit Michigan, USA
Why isn't "the user interface is 100X better" enough of a justification?

I'm not a Robinhood user, but I use simple.com as a bank. It's like every other bank in that it holds money. If anything it's somewhat less convenient than banks with physical branches. But the online UX is so vastly superior to every other bank I've used (large sample size) that I'm a rabid fan.
> Follow the recommendation of UAX #31 and normalize identifiers to NFKC prior to comparing them.

You're proposing that we replace the rules for identifier equality (comparing case-sensitive ASCII strings composed of A-Z, a-z, 0-9, _ is very easy to understand) with a complex system which hardly anyone can remember in its entirety, and even fewer people will want to learn? All so that according to you, some people need to learn a little less English? I sure hope that those normalization rules have been translated to lots of languages, otherwise those people would still need to learn English...

> Now we have the ability to lessen that burden and let the non-ASCII world (which does in fact include English!) spend less time learning English and more time writing code.

Do you seriously think that a programmer needs lower English skills just because they can use non-ASCII characters in their function names? That programming language's standard library is in English, its documentation is in English, external libraries are in English, their documentation is in English, StackOverflow is in English, but you need to "spend less time learning English" because you can name your variable "über_schwellwert" instead of "exceeds_threshold"?! Come on.
The problem here is that often, there's not just the github repo, but also the non-namespaced language package manager, e.g. npm, pypi. You'd have to transfer that at some point. I'm also unsure how you can notify your users... I have not looked at the readme of some dependencies for years.
That just means that any new feature has that work attached to it - “the business cannot add anything more to the queue without this rewrite.”
> The second, the best example I know of is Pakistan, and to some extend India.

I cannot speak about Pakistan, but I will comment on India.

India has a concept of the "basic structure" of the constitution[1], and that no constitutional amendment may violate the fundamental rights that the constitution's "basic structure" grants. Now, it should be clear that politically this has been overturned a few times by different leaders, but conceptually the Indian constitution is very much interpretive -- and in fact the "basic structure" doctrine is a Supreme Court decision.

So India most definitely does not fit the mould you describe. I couldn't find any information about literalism in Pakistan's constitution, so I really cannot comment on that.

> when a lawyer argued that "a sentence of hanging, gives no permission for murder."

This is not an example of interpretation -- in fact it's actually a wilful ignorance of the law. The sentence in British law has been (since its inception), "to be hung by the neck until dead". In any case, I have serious doubts that such a story is true (it's also clearly embellished).

> The first one is USA [...]

I disagree with domestic surveillance as well as many of things you mentioned, but you haven't given an example of how these things were allowed under constitutional interpretation. There in fact is a lot of evidence that shows that PRISM violated the constitutional rights of US citizens. I don't think there's any Supreme Court decisions about it though, so there isn't really a good argument in saying it's an interpretation problem if the constitution has never been interpreted for this particular case.

[1]: https://en.wikipedia.org/wiki/Basic_structure_doctrine
How Neural Networks Power Robots at Starship
Nope, copyright also covers public performance of the copyrighted work. And that's exactly the part of IaaS or SaaS services that's so controversial lately.
Who at Robinhood gave the greenlight for a new financial product that's clearly in a regulatory grey area and didn't think to discuss it with regulators OR insurers first? Mind boggling.