skysight-inc/HackerNews huggingface dataset:
Uh no. Type assertion is not always required. This is false. Also type assertion is not a good thing in a strongly typed language. This happens in Golang exactly because the go type system is flawed. It doesn’t need to happen.

There is a huge difference in guessing a type using assertions or writing handlers within the boundaries of a domain. Alex’s point that writing such code is effectively the same as rust because the amount of code is the same. However safety is lost. There is literally no point of having a type system in place when unmarshalling Json in go because you have no type safety. In go if you assert the wrong type or if your missing a required assert the error may be hidden and if it’s not hidden you can only see it during runtime. In rust there is no type assertion, only type checking, so such a program won’t even compile.
I love these cherry picked legacy articles from 'the paper of record'.

So I will cherry pick what I think are the two best parts:

> Consider Facebook, the popular but financially unproven social network, which is reportedly being valued by investors at up to $15 billion. That is nearly half the value of Yahoo, a company with 38 times the number of employees and, based on estimates of Facebook’s income, 32 times the revenue.

Facebook has a market value now of $525 billion and obviously and $30 billion in EBITDA.

...and...

> Twitter, a company in San Francisco that lets users alert friends to what they are doing at any given moment over their mobile phones, recently raised an undisclosed amount of financing

In particular 'lets users alert friends to what they are doing'. I remember when twitter came out people were tweeting what they ate for lunch.
Btw, at http://google.com, this is what they have for the search field:

<input class="..." maxlength="2048" name="q" type="text" jsaction="..." aria-autocomplete="both" aria-haspopup="false" autocapitalize="off" autocomplete="off" autocorrect="off" role="combobox" spellcheck="false" title="Search" value="" aria-label="Search" data-ved="...">
The Art of Unix Programming looks interesting, thanks!
Thanks, that was a good read. Especially this!
<Turns out not only was she pregnant, but Target knew before even the girl realized it.>
Tell them to take a look at Hydra.

Hydra has some overlap with what MLFlow is already doing, but I am sure MLFlow can benefit from configuration composition.

Another way to look at it is:
What kind of Hydra plugins can be backed by MLFlow.
for example, remote launching to any cloud can be implemented as a Hydra Launcher plugin.
Currently the included launcher plugin is trivial (local execution), and the more interesting launchers to launch remotely are not open sourced as hey rely on internal FB infrastructure. Supporting the major cloud providers in Hydra through plugins is definitely something I would like to see.
Our 500 person shop was gobbled up by the same company a few years after you. The reason why we were gobbled up - we went public and share prices tanked in the Enron time period. I think I was in the first 100 or so people, which after converting the stock and waiting a few years, was enough to put the devs and other technical folks in that first or second band. It was interesting transitioning from 500 to 80k people or so. (So many timecards. Crazy it was easier to order a NAS than a single hard drive.)

Having no loans was really empowering. Even with that - it amazed me how much 'normal' living costs. We've not hit that ramen rich stage. Our kid is half way through college... and the costs are ridiculous as we will launch her with no loans as well.
Monocles Were Never Cool
Bad Blood by John Carreyrou
Here in the UK healthcare is seen as a right. Hospitals and recipients of organs don't pay for them, and nobody is making money off of donated bodies.

The idea that access to life-saving treatment is based on ability to pay, and that there are corporations making profit at the expense of people's health and well-being is pretty terrifying to me. There's nothing rational about such a system.
I don't like election cars with loud speakers but that's like twice a year? and clerks telling you welcome and you have problem living in Japan?

You need to choose your place not to pick a cheap rent with paper thin walls...
Shareable Jupyter Notebooks That Run on Free Cloud GPUs
"I think that there exists a lisp with a set of axioms that split program execution into "compile-time" execution"

Common lisp macros? Pre-hygienic macros in scheme? Did I get you wrong?

The question is what is missing to implement _static_ type checking as macros and to allow the compiler to leverage the generated information.
It is an answer to the wrong question.
The submission should link to one of these articles.

I have 0 trust for "tech" publications which don't even show when an article was published.
The (log (log n)) factor in asymptotic complexity notation is almost meaningless.

* log₂ log₂ 2⁶⁴ = 6, which is essentially a constant factor if N<2⁶⁴

* to be fair, you may need to consider (log log N), or even (log log N)² factors hidden in native computer word size if exceeding N = 2⁶⁴.

* Today's machines have gone far from the classical computational complexity models, where data access patterns and locality matter orders of magnitude more than a factor which is essentially <= 6.

I would not immediately discard a (log log n) factor, but for nearly all purposes, I would mostly disregard it. So if the only difference were O(n·log n) vs O(n·log n·log log n), then no, it would not be a big deal.
"The Platonic ideal of OOP is a sea of decoupled objects that send stateless messages to one another. No one really makes software like that, and Brian points out that it doesn’t even make sense: objects need to know which other objects to send messages to, and that means they need to hold references to one another. Most of the video is about the pain that happens trying to couple objects for control flow, while pretending that they’re decoupled by design"

What a bunch of baloney. My products ofetn live in this exact platonic world: class instances running in multiple threads send and receive asynchronous messages through internal pub/sub bus without knowing much about each other at all. All is working just fine, controlling devices, doing data processing, GPU accelerated display and whatnot.
This is exactly how it works at my company. Everyone has equal say in what we ship. Everyone is equally responsible for the quality of the product we make. If you notice an issue, no matter what your job title is, it's your responsibility to bring it up so the correct person can work on and fix it.
When you hear autoregressive model, think “predicting a sequence”. These are good for text to speech since you can say “given some text, generate a spectrogram.” GPT-2 is probably the most impressive example of autoregressive techniques (I think).

GANs, and especially stylegan, are good for generating high quality images up to 1024x1024. These take about 5 weeks to train and $1k of GCE credits. The dataset size is around 70k photos for FFHQ. Mode collapse is a concern, which is when the discriminator wins the game and the generator fails to generate anything that can fool it. Stylegan has some built in techniques to combat this. IMLEs recently showed that mode collapse can be solved without gans at all.

Hmm.. what else... I’ll update this as I think of stuff. Any questions?

EDIT: Regarding IMLE vs GAN, here are some resources:

Mode collapse solved (original claim): https://twitter.com/KL_Div/status/1168913453744103426

Overview of mode collapse, why it occurs, and how to solve it with IMLE: https://people.eecs.berkeley.edu/~ke.li/papers/imle_slides.p...

Paper + code: https://people.eecs.berkeley.edu/~ke.li/projects/imle/scene_...

Some simple code for reproducing IMLE from scratch (I haven't seen this referenced many other places; stumbled onto it by accident): https://people.eecs.berkeley.edu/~ke.li/projects/imle/

Super resolution with IMLE: https://people.eecs.berkeley.edu/~ke.li/projects/imle/superr...

For comparing images, I believe they use the standard VGG perceptual loss metric that StyleGAN uses. (See section 3.5 of https://arxiv.org/pdf/1811.12373.pdf)

It seems to me that the main disadvantage of IMLE is that you might not get any latent directions that you get with StyleGAN. E.g. I'm not sure you could "make a photograph smile" the way you can with StyleGAN. But in the paper, they show that you can at least interpolate between two latents in much the same way, and the interpolations look pretty solid.
Hey HN, really thrilled to see this launch. I was a Research Fellow at the Paperspace Advanced Technologies Group this summer and saw this project develop. Gradient Notebooks were an indispensable tool in the work I was doing, and had several advantages for my work over other notebook services. As a researcher, it’s great to see an emphasis being placed on starting projects with no fuss or issues around setting up infrastructure and sharing/forking models.

Giving anyone access to free GPUs and powerful tooling seems like an incredible opportunity. I'd love to hear what you all think!
nice. i think it very good idea
yes, exactly, plus Turkey (a lot), Ethiopia (crazy, really a lot, too!), Montenegro, India (as already stated)
I think you made a good point: it is easy to shoot yourself in the foot with OOP. It is difficult to shoot yourself in the foot with FP. But when OOP is done correctly it offers useful features.
yup, i keep my data at home for that reason. except email. but i don't host any services, just plain ssh access, and recently i started using syncthing to share some files among my devices.
Apps from KDE are great. Dolphin is awesome.
"this website has asked us to NOT autofill your saved info.

if you would like to autofill the form anyway click"

i made it a little terse, but there has to be a way to make it succinct and human readable.
I don’t understand what you are referring too. Why don’t you clarify, then we’ll see who is truly uninformed. I readily cop to my mistakes and errors. Will you?
That quote always rubs me the wrong way. To reach certainty through deduction you need a closed domain. Assume Holmes is 100% correct about the information he has, and he has three suspects, two of whom he ruled out. Does that mean the third did the deed? No. There may be information Holmes does not have and there is really no way for Holmes to know he does not have that information.
It's documented here

https://opensource.google/docs/thirdparty/
How do I install extensions into my most commonly used browser (my phone)?
They're all owned by my firm lol, I can't share anything like that
Only one country you say? 'some reason' you say? :o
There's a point there that I don't think gets enough discussion:

As healthcare becomes increasingly socialized, personal unhealthy choices become an attack on society at large.

Why wouldn't we ban sugary drinks altogether? Motorcycle riding even with a helmet? Maybe get rid of pasta. It's not clear to me where we should stop, if medical costs to society are a valid justification for reducing personal freedom...
I think this is a good thing but society pays for almost everything. Almost every bad decision a person makes impacts society and someone pays for it.
Singapore seems to have a reputation for being very clean. But being here now after Tokyo there is no comparison. The amount of litter and general cleanliness of the sidewalks are much worse here compared to Tokyo.
does the escape key close the extra context menu?
Thanks for the detailed reply Ovid!

I'm only a novice in Perl5 land (Python is usually my go-to along with Linux CLI tools and Powershell on Windows, or honestly a lot of SQL these days but sometimes I reach for Perl5 when it has something I need) but I always keep an eye out for different and interesting technologies and Perl6 is definitely on my radar to check in on every now and then. As you've pointed out, it seems to have a lot of power that could reduce a lot of the one-off scripts I write. I do a lot of basic text file manipulation and any feature that can save me time is valuable even if there is more stuff to learn. To me, Perl6 appears to allow for writing beautifully succinct and readable OO, Imperative, or FP like code. However, if I just need to wrangle some data (throwaway code) it looks like it can be for text what APL is for arrays (a powerful Swiss army knife).

On another note, while I have you here, do you ever plan on putting out another Perl book, but one on Perl 6 (I know there are several already published).
That's not exactly what Buffett means when he says "invest in things you understand". What he means is: what will the market in which this company is selling look like in 10-20 years? Can you be very specific about that? Can you give me an invariant that will very likely stay true for that period? If you can't then you don't understand the future of this company. And this does not mean that the future of the company will be bad, it may be excellent. Just that you specifically don't really know that.

This plays well with his love for almost trivially easy businesses, like Coca Cola. The simpler it is the easier it is to predict. "You want a business than can be run by an idiot, because one eventually will".

Buffett has a good understanding of trade relationships between the countries, he wrote a good piece on the US trade imbalance many years ago. He probably has an excellent understanding of the bond market. But he can't predict where will this go, so he doesn't use it as a basis for his investment decisions.
The "bait" for these traps is almost universally ease of use and overall user experience, something open platforms and open source has failed to provide.
We're not talking about choice for users. This is about choice for developers.
Influence: The Psychology of Persuasion
Kinda like UPI? You scan merchant account no and pay directly from your account
I think the supply/generation makes for a naturally more competitive market than the distribution.

You can choose your supplier but not who runs your distribution.
Any reason to have it behind a VPN?
If you can modify the type of the field, you can also read the field's value without changing the type (e.g. document.getElementById('password').value from the console). Even just using the address bar via javascript:{alert(document.getElementById('password').value);}

As Raymond Chen and others call it: "the airtight hatchway problem."[0] Meaning you're sitting in a context where you can steal the password in infinite ways and complaining about the easiest one. But ultimately fixing that one way still leaves infinite remaining ways.

You're in the superuser context for the webpage. If you can modify the password field's type you can literally do anything to that page.

[0] https://stackoverflow.com/questions/2787853/arent-passwords-...
The latter IMO.
Seconding others; could you elaborate?

I've been involved in some work tangential to the security space, and keep encountering some of those "enterprise security for management framework" buzzwords, things like Lockheed KillChain, VERIS framework and similar. I keep wondering if there's any actual value coming from that direction?
I'm not opposed to this but it strikes me as somewhat weak - if you think something is bad enough to ban visibility of it, why not just go all the way and ban the thing itself. Same with smoking, alcohol, etc.

Of course, prohibition doesn't have a terribly successful history but the whole approach seems odd and inconsistent to me.

I guess the rationale is a pragmatic de-normalising of toxic and addictive but currently fully normalised foods and substances over the long term.
I’m responding to my own comment because it’s getting voted down, ha.
I don't know about you, but I have never lived anywhere that there were not occasional power outages. Continuous over Short periods of time, yes. Over long Periods, no.
The volume of the escalator is reduced by greater than half, and the departure rate is a function of density, so reserving half of the escalator for people who want to depart slightly faster than others (in single file, with space) apparently doesn't overtake what a single, densely packed transit could carry.

The problem is that people who want to walk are limited in reality by how quickly the slowest person ahead of them is traveling as well as conventions that make it unlikely that people would get within 1 full step of the person in front of them, reducing the lane's volume to 1/3 (the step you're on plus the step you're taking + space) of the possible occupancy of the standing lane.

So I could definitely see that assertion being true.
Private equity firms go small after string of big deals collapse
Best machine in the house is an i3 540 running Ubuntu. I recently upgraded RAM to 12GB.

It is perfectly fine for my needs: mostly browsing, some video editing, and coding Perl.
Ask HN: Can I still use ES5. in 2019
i prefer es5 and understand it inside out. while i get es6, i don't like that the meaning of "this" has changed within => functions. i understand how to scope and am comfortable using var instead of let and const. if i'm the sole or lead dev on a project, would it be irresponsible to my clients to continue to code in es5?
Blizzard Removes Mei Statue from Gear Shop as Hong Kong Embraces Her as Mascot
Yes, I get it, but for Haskell the concepts are so abstract you need to internalize the concept before you start using it.
Could use something other than parens for bracketing tuples, so you don't have the conflict with the order-of-operations use of parens.
In Portugal it would have taken at least 2 months and the end result would be worse than before.
Banning advertising here just restricts the freedom of corporations. Banning the item itself means individuals who want it can't get it.
You don’t ban things all at once, you do it in small steps.
Hunting down Ken's PDP-7: video footage found
Et Tu, Tim Cook? The Blindly Well-intentioned Propaganda of Apple TV+
Maybe being a senior software engineer also means that you know the difference between what is important and what not in a particular situation. It is very easy to get caught in something that is not really important and put a lot of energy in it.

Another important area is battling with your ego. And this is something, I am afraid, is never going away. You mentioned that a lot of senior software engineers suffer from imposter syndrome. Maybe someone with imposter syndrome is not that senior yet with respect to his battle with his ego.
In SF sugary drinks are taxed extra.

There are signs that demand for sugary drinks are on the decline naturally e.g. demand for sparking water has increased as people look for alternatives to drinking a coke. And there was a recent article on how juice consumption has dropped to new lows...
Would be great to see __resumes__ alongside these blog posts. To state with such certitude that OOD is "bad" and a "disaster" takes a lot of chutzpah. I hope it is not necessary to point to existing (inherently) complex software developed using OOD.

As an aside, Incidental vs Inherent Complexity is more correct than "accidental" complexity.

("Accidents" happen by chance and if it keeps happening to you -- keep hitting that thumb with the hammer? -- then possibly try 'habitual' and don't blame the hammer.)
Kurgezagt just posted a video “What if we nuked a city” https://youtu.be/5iPH-br_eJQ
Cosmetic surgery isn't necessarily a bad thing because you associate it with the word vanity. I hope you realize that appearance can be just as important psychologically in a life as a person that's needing surgery for other reasons.
As a beginner programmer this is something I wonder about. Having worked with many amazing engineers, I have some sense of the effort that goes into "doing it right" and the fear of god put into me for the consequences of not doing it right.

So then look at home projects and I wonder if I know enough to self host things, or host them on GCP in a manner that won't just invite getting hacked, running up a ridiculous bill, or leaking my private sensitive data out.

Any guidance to offer?
Herd behaviour in asset markets: The role of monetary policy
Or if he did, he never bothered to tell anyone.
https://outline.com/WwG6VY
It is a direct spec violation, and it is breaking all kinds of applications.

Look, I get that this capability is super useful on shopping sites, and I rely on it practically every day.

But, I also build enterprise applications, where Chrome simply would not ever understand or know what would be valid choice.

I do, though; I built it. Invoice Numbers / Pre-Validated Travel Dates & Locations / Pre-Validated Locations / Pre-Validated IssueID that are so esoteric, we have built custom autocomplete that provide additional relevant information / Pre-Validated Users where the number of valid "John Smith"s number in the 10s, and additional meta data must be provided to differentiate.

Application developers need a reliable, durable way to tell the UA that a particular field should never be autofilled or autocompleted. The spec says this is autocomplete=off. Just do that.
I asked if something similar was coming to Brave, and the answer was yes. Opera maintained what i believe was a somewhat community powered site patching repository back in the Presto days.

https://news.ycombinator.com/item?id=20831774
Japan has a lack of trash cans also. The idea is to get people to think about their waste and carry it home. It goes hand in hand with their hyper recycling culture, which I could never really figure out what bin to put stuff in on my last visit.
macOS – Uncommon CLI Tools Reference
Those accepting less than “six nines” are trading for some other features. I’ll take less uptime but only to eliminate dependency.

We struggled to reach “six nines“ for a reason.
You should prefix your post title with "Ask HN: ". This way we would know that a question is being asked and it will get the attention of those who want to answer.
Vulnerability severity is complicated and situational. CVSS is fiddly, but still radically oversimplified. As a result, it's a ouji board metric; it says whatever the rater wants it to say. In standard vulnerability research and assessment practice, XSS is the archetypical sev:medium bug, and SQLI the archetypical sev:hi. Under CVSS, you'll see 8.0+ XSS's and 2.0- SQLIs.

There are sev:crit XSS's! A propagating XSS that can chain to ATO of important accounts would qualify. And there are, once in a blue moon, sev:low SQLIs; for instance, on queries that are already constrained by database permissions. But CVSS doesn't capture these details, and the variance in scores both reflects operator bias (and incompetence) while at the same time failing to describe what those biases are.

It simply doesn't say anything at all.
And corporations can't vote
.. :)
There is a lot of law associated with residences, often constitutional, that does not protect you when the access is to a provider.

The mere existence of a local alarm can greatly increase the risk of getting caught when going into a residence. State level actors really hate getting caught. They tend to be the sort of people who do not deal very well with uncertainty.
It’s a “friendly authoritarian” surveillance state. It’s great if you obey the rules, but you sound like you lean toward libertarianism...Singapore is the complete opposite.