skysight-inc/HackerNews huggingface dataset:
> I am not sure about what do you mean here?

Given i have defined the columns of interest in my data objects anyways...

class User { name = null; email = null; }

... i wouldn't necessarily have to repeat them when writing my SQL:

sql`SELECT ${Object.getOwnPropertyNames(new User).map(camelCase).join(', ')} FROM users`

Of course using a better helper function.

There's a few repetitive tasks when writing SQL where don't necessarily need a powerful query builder but still end up writing a few handler functions. Shipping some common helpers with the framework might be handy.
Why is everybody else suggesting things like 'accuracy', and 'between_0_1" when there exists an actual term: "unit interval" (the top answer)

https://en.wikipedia.org/wiki/Unit_interval#:~:text=In%20mat...

If you google accuracy, you'll get the noun. If you use a made up term, it'll probably return useless results.
Only for historical reasons, it is full of examples of bad practices regarding safe C code by modern standards.
That seems like quite an expensive mix. Almost a third of the bill goes towards insights?
I wasn't implying he is a shill, I was answering his question by providing reference to a type of manipulation that has been around since before the internet.

The first part of my response was because it seemed like he was trying to lure the parent reply into a debate trap using leading questions. Not because I thought he was a shill.
Unit interval is the interval between 0 and 1. We need a word for a value within that interval.
Both you and TekMoi should probably value your own time higher. The cost savings are great, but once you spend 4 hours on configuring a database server, that'll probably be $200+ worth of your time and, thus, wipe out most of the savings.
And lost at least one user. I mostly stopped going to Reddit because of the miserable mobile experience, which is how I would normally consume the content there.
> laziness is pretty much agreed now to be a bad idea

It's really not (and I'm as one of the most outspoken critics of laziness in Haskell).
Physicists discover “anti-gravity” in bizarre buoyancy experiment
To be fair, desktop web experience isnt much better
Absolutely. Profligacy is often the rational course in a capitalist system.
the report written by the very same team accused of antisemitism?
JSON doesn't even have IDs, so in this particular regard the (similar) tool to what the poster uses doesn't even exist for JSON. So no, it would not be correct to say that in this particular regard JSON is somehow easier to parse.
I always have the feeling many people greatly overestimate the amount of nuclear waste that was actually produced. So far we have produced an estimated 370000 tonnes of nuclear waste globally, which can be stored in about 22.000m³. [1]

This would fit in a 5m high storage facility the size of an American football field (which is even smaller than a European football field). As an additional comparison, the small Amazon fulfillment centers have about 40000m² of area [2] . Assuming the same 5m height, a small fullfillment center is nearly 10 times bigger than necessary to store all globally produced high-level nuclear waste.

Sure, the waste is hard to dispose and dangerous. But it really isn't much.

[1] https://www.world-nuclear.org/information-library/nuclear-fu...

[2] https://www.aboutamazon.com/amazon-fulfillment#how-big-are-f...
This comment breaks the site guidelines badly. Please review https://news.ycombinator.com/newsguidelines.html and stick to the rules.

https://hn.algolia.com/?sort=byDate&dateRange=all&type=comme... has lots more explanation.

You've also been posting repeatedly in the flamewar style, unfortunately. We ban accounts that do that, because it's destructive of the site mandate. So could you please not do that any more?
You made a previous post, offering a similar thing, how did that work out? Did you manage to build something, or were there mismatched expectations on either side?
Again, this is bike shedding bait. I'm going by my own experience with basic mathematics in my American education where "percent" is something you multiply a number by, and usually ranges from 0 to 1.

Ex. 50% of 12 marbles is 6 (*.5, 50%).

But just looking at all the different answers in the comments here means there's no consensus on a "right" way. Hence bike shedding. A decent code base should be consistent so it can focus on more important things.
Ask HN: TrailNinja
Hello hackers,
Please see below link for TrailNinja and comment, what message does it convey? When and how often have you encountered this problem? https://www.producthunt.com/upcoming/trailninja

Feedback link below https://forms.gle/QFcg5QBejEeQKLTBA

Thank you,
Arvind.
Nextcloud is awesome and indeed in use by quite a few companies in Germany at least.

ISIS uses it because it is safer. Wouldn't necessarily use that example as an argument though.

Some people also used OneDrive since many already had Office licenses, but it is just hilariously slow and your data would be a lot less safe from access.
but this is politics, where perception is reality.
Redreader for Android. Free and Open Source. It's on fdroid and playstore
> Actually that's not the point. Pruning typically results in networks that still perform well but are harder to train. The idea is to explicitly search for a subnetwork (via pruning) that is easy to train.

They state "smaller network, same test accuracy, with similar number of iterations". So it seems the original network size wasn't necessary for best test accuracy, and compute requirement is reduced only because it's a smaller network. Sample efficiency isn't increased according to https://arxiv.org/abs/1803.03635.

Good performance with random weights seems to indicate good 'priors' encoded in the network. Like how convolutional networks encode the prior of translational invariance and hence it being a naturally good performer on image inputs/tasks.

I think the parallel to "wildlife that is capable of certain behaviors ... before there's been a chance for significant learning to take place" is that priors are also part of biological intelligence. I.e. brain structure at birth enabling certain surivival oriented behaviors.

Hence, I'm optimistic about transfer learning which could happen through _both_ better models (priors that generalize well) and pretrained weights (possibly partially pretrained, i.e. just initial feature extraction). Either could potentially provide a better starting point from the 'how many samples are necessary for good performance on a variety of tasks' perspective.

The point is that either way information needs to be added for performance on tasks to increase. Doing that in a task specific way by using today's algorithms and a billion samples doesn't seem like the right approach. Finding algorithms, models or specifically perhaps neural network architectures (including training procedures, regularizers, loss function, weight tying) that generalize across tasks without needing many samples due to their informative priors seems the way forward to me. That's _not_ a naive scaling of today's algorithms to larger and larger training sets. Which was the point I was trying to make.
Decimal fraction can be greater than one.
Absence of evidence is not evidence of absence. Deep sea ecosystems are extremely fragile and we need to leave them as is if we want to feed people

Time to just get rid of the mess hiding it under the rug and saying that "There is not our fault, it was yet like that when we arrived and now is somebody else's problem" has passed.

We deserve better, much more honest and much more smart people this time.
So you agree that throughput would be different. Sure, a Python app can be efficient to serve 55k users.

But scaling it to a million users, say. A python app would consume way more resources than an app in C#
That's pretty cool, and also pretty lucky. I just found I get my email added to a bunch of spam-lists and received contacts from people saying things like "I see you're in Helsinki, would you like to relocate to Canada?"
> I would find it difficult to know how to start a moderate sized project in a purely functional style.

You don't start a moderate-sized project! You start a small project and then grow it to become moderate.
Our cat (we used to have two but sadly his brother died) was named by the breeder Purfedelis Tasmanian Devil - which perhaps gives some indication of his temperament. He is a bit aggressive with other people but is friendly and very affectionate with me (and to a lesser extent my wife).

I'm definitely in the "love the furry little bastard" camp.
> release them for free for anyone to use as the like, so they can't stop jihadists

"Lads, lads, the license says Jihadists can't use this?"
"Oh, nuts, ok, onto the next one, Malcolm."
Learn about trophic chains, cycle of water in this planet, sea currents, tidal forces and oceanography.
The problem we ran into is that they can all be configured to do whatever. There's no consistently or standard
Then "unitIntervalValue"
Yes.

AWS charges you a flat-fee per zone, and then additional-fees based on volume of queries. In my case I don't host any domains that go over the threshold where it is billed for - but if I did those costs would be offset by the profit of the other low-volume zones.
It’s called “The Chaos”:

https://en.wikisource.org/wiki/The_Chaos
Many people who get opiates do not live long enough to become addicts. Think of terminal cancer patients.

Also, mind that there is the inverse problem in some countries. Doctors are afraid to prescribe opiates and pharmacies to distribute because of the risks of prosecution. Russia is a notorious example that lets cancer patients die without access to opiates.
You could also call that centred to clear up confusion, or mean-subtracted to be more specific. I think if you're specifically dealing with statistical quantities it should be obvious, e.g. standardised if you also scale to unit variance.

Personally if I saw normalised I would assume scaled by a constant, not offset (as in subtraction).
Fun fact: The medieval crusades were coordinated via TikTok.
Hope it won't be dumped forever
> > Haskell type classes have nothing to do with OOP in the least, and as far as I know

> They surely do

That misses the point. The original challenge was

> > Can you name a contemporary expert or a platform that started or spent a good chunk of time as FP and ran back towards OOP

and didibus offered

> Hum, I think most did ... Haskell added TypeClasses

But that's simply not true that Haskell added type classes as an attempt to run back to OOP.
The bigger problem is how many ISPs handle email.
First, they block outgoing port 25, so you can't actually SEND email.

Then they forget that some of their customers need to actually send email from their computers and out to the internet, as opposed from using some third party service.
Or they make it available only on "professional" over priced subscriptions.

Back when I started hosting my own email, o my ADSL, I called my ISP and just told them, "I setup postfix, I can recieve mail, but I can't send it out?" They told me the outgoing port was blocked, but that I was free to use their email gateway, they gave me the hostname, and all was good.

When I switched to fiber, I called my ISP and asked them what their email gateway was, they gave me the hostname, and all was well in the world.

But last time I switched ISP, I couldn't get the hostname of their email gateway, support kept giving me some URL for their webmail, and I couldn't explain to them that I didn't want to use their email service, I had my own, and I wanted to send mail out onto the internet thankyouplease.
They then told me, that if I used my own, I should call the company that hosted it for me.. I explained to them that there is not company, just my computer. They told me it was not possible to send mail directly from a computer because outgoing port 25 was blocked..
I explained to them, that I knew! That the very fact that I was having this conversation was because they blocked port 25 and needed to provide me with the hostname of their email gateway/relay server. No success.

I did some grey area research, and found their stupid relay server, but it rejected relaying me mail with a nonsensical error.
I called support again and explained the error, nobody knew what that machine was, but that their webmail was located at...

Fast forward, I befriended a technician at the ISP and he told me the name of a netops guy, I found him on linkedin, and explained the error..
He told me their relay host would only relay mails for IPs that reverse-dns resolved to the FROM domain..
Fair enough I guess..

Called customer support, asked for reverse-dns, I couldn't convince them that such a thing exited and they kept telling me I needed to contact a DNS provider and pay for the domain..
I told them that I had the domain, and DNS configured, but that that company couldn't possibly assign reverse dns to my IP at this ISP.

Back to netops guy, I owe him some beer, but he setup a reverse dns for me.. And I could send email.

It didn't feel like a triumph, it feels like "The Internet" is deeply fucking broken and I fear for the future, I fear that next time they change infrastructure, or I move to a new house, I'll have to go through this hell again.

I get why people are not happy with git send-email, because, getting the privilege of actually sending a fucking email from your "Computer PC" in 2020 seems next to damn impossible.
> The main problem with OOP is the promotion of mute-able state

When the mutable state is essential (like in my example for a file stream object) that’s not a problem at all, quite the opposite, it allows to expose idiomatic API from a library/module, while hiding implementation details from consumers.

> Though semantically equivalent object_verb(object) is actually better than object.verb

All modern IDEs have auto-complete, you type x. in any statically types OO language and you’ll get a list of all public methods of the class. object_verb(object) can’t do that kind of contextual stuff.

> All three options are bad for various reasons

They’re also all good for other reasons. This applies to all options whatsoever, not just to these 3. Software engineering is all about the tradeoffs, which tradeoff is the best depends on requirements, language, platform, team, budget, users, and many other factors.

1 is good when the majority of the implementation is shared, and A/B only need to override a couple of methods. Many OO languages have private/protected/public visibility to be able to selectively hide implementation details even from derived classes. An example is a video encoder or decoder: it has 90% of code shared across all codecs, and only the remaining 10% depends on whether the codec is h264 or h265.

2 is good when the code is simple like your example. Also when you expect you might want to change the method in one of the types but not the other despite they’re equivalent right now. Also that version is the most readable of them.

3 can be good when you expect you might want to change the implementation of the object being injected while keeping the interface of that object, albeit I don’t normally write stuff like that unless I have very good reasons.

Your method is bad if the code is performance critical, your call stack is twice deeper than 1 or 2. Even ignoring performance, deep stacks complicate debugging, all debuggers show call stacks, they may also be visible in other places like crash dumps, exception traces, or logs.

> If I want to deal with mutable state, it's actually not technically FP anymore

I don’t particularly want to, but for 99% of real-world software dealing with mutable state is essential part of the problem.

A lot of software is I/O bound and/or the I/O is the main source of their complexity. Database engines spend majority of time doing disk and network I/O. For servers and web apps that’s network I/O. Videogames mutate external state in VRAM at a rate of gigabytes/second. Every device connected to the Internets runs many thousands of lines of code layering protocols on top of each other, a session on every layer is a large piece of mutable state (buffering everywhere, decompressor state for GZIP, decryption stream state for TLS, and so on).

GUI apps have a huge chunk of mutable state. For an editor like Word it’s obvious why, user can edit anything however they please. But that’s true even for readonly or mostly read-only GUI, e.g. most web pages are read only yet the browsers implement mutable DOM trees, the second letter of the acronym is for “Object”.
> Do you know many people who have died? Who have gotten seriously ill? Are you afraid? Do you think the response in your own location is too little or too much?

I live in France. I know of three people who have died and of many people who’ve been ill. I’m not afraid myself, I avoid crowded areas and getting physically too close to anyone (other than my wife). I think the response by the government here in France has been acceptable, other than that for a long time there was a shortage of both masks and tests. (It would have been better to have had both a stockpile of masks available and the capacity to manufacture them here locally.)
Note that this Bloomberg article is from April 2017.
yes, very much so.

this is why i've written this naivety was one of Mr Graeber's flaws.

as for Mr Corbyn, he was an honest but very weak leader. exemplified by his failure in containing this issue. an issue which to be completely honest is actually a non-issue for the UK considering it's many, more pressing and more important problems.
You're wayyy off here. There are all sorts of reasons to generate draw images on a server. Just look up imagemagick. And canvas has a much better drawing API and libraries for drawing that would be compatible.
https://aws.amazon.com/message/41926/ this lasted hours and affected almost everyone using us-east-1, large portion of internet was unavailable because they had no multi-region setups.
Creating a type that is defined as being between one and zero would be more helpful and then the name can reflect the usage of the value
> If someone is in your home they're on your property, and generally you can record whatever you want in a single party state.

That’s simply not true. They’re called “one-party states” because there has to be one party in the conversation who knows about the recording. Some states are one-party, some are two-party, but there is no such thing as a zero-party state. It is always illegal to record a conversation between two people if both are unaware of the device and believe their conversation is private. The fact that they are in your home, your car (without you), or in your business is irrelevant.

You’re confusing laws that apply to video with laws that apply to audio. You can of course record images on a security camera in your home or business (except, as you said, in restrooms, dressing rooms, etc.) Audio is different.

Sources on this are easy to Google for. Here’s one in pretty straightforward language from a defense attorney’s website: https://www.criminaldefenselawyer.com/resources/criminal-def...
Funny how many comments on that post say 3rd party apps are better than the official one.

Reddit shuts down their API in 3, 2, 1...
What is a doze that someone should take daily in winter when exposure to sun is minimal?
I like that the top-voted answer is a wrong one.

(A unit interval is the set [0, 1], whereas the asker wants to know a name for an element of it.)
Is there a dictionary or thesaurus or something similar specifically designed to help programmers name things? I run into questions like this all the time. “There has to be a commonly used word for this concept, but I don’t know what it is”
Even without a mask, looking at the eyes is the best way to tell if a smile is real or fake.

A fake smile will involve only the mouth, whereas a real smile will also involve the cheeks and the corners of the eyes. And the latter part can also be seen when you are wearing a mask.

People who know about fake smiles and who want to project a real smile, won’t have any problem “smizing”, because they’re already doing it.

People who don’t care about smiling at all, or who actively hate it, are welcome to look down their nose at “smizing”.
You're not wrong but it would be nice to have a word for this incredibly common type of value still.
Agreed, this is like Greplin (Cue) but with better UX! Any comparison to https://usejournal.com/? Slapdash uses similar terminology (e.g. Spaces)
I don't want an app for Reddit. I don't care which one it is. It's a simple website, let me use it in my fucking browser.

Lightweight! Easy to block ads and tracking! Multiple tabs! You can leave pages open in your browser and read them later! Bookmarkable! No proprietary app! No app updates! No spammy notifications! No use of Google Play Services! No taking up of dozens of GBs on my phone! RES!
Majority of HN seems very heated about $171/month. My company pays 100x that just for our RDS instance (granted we store a lot of data). If you told me 5 of our users ended up costing us 10k/month in operational costs, I wouldn’t even blink.

55k users is very valuable. If you make a single cent per user per month, you’re in the black operationally (not counting dev time). If you make that into a dollar, you get to quit your job and be upper-middle class indefinitely.
I run a cheap website and here is what I do

- cloudflare free tier for caching, DNS, page rules, etc

- run everything on one VPS(digital ocean, linode, etc) pick cheapest that has specs you need

- any non-trivial storage (media, big files) move to Backblaze B2 it's cheap (you can use free tier cloudflare workers to redirect to B2 for free bandwidth due to Bandwitdth Alliance)

- free static page from Netifly (I can redirect to this with cloudflare in case my VPS falls over or something to provide info/links)

- If I want to look at logs or something I rsync it my local machine (if I cared I could set up a process to push logs/backup etc to private B2 bucket)

You may not need exact same setup, I am optimizing for caching and cheap storage because my site stores/serves lots of media files.
Cash money and SIM cards not tied to an identity are being phased out globally.
All of this just seems to be agreeing with the parent comment's point that different websites do different amounts of work per user.
Wasn't there a study that suggested users of mechanical keyboards still bottom out for a reasonable percentage of keypresses even though their perception was that they stop on actuation? [Tried to dig it up but came up blank so far.]

I know this is true for gamers, who have to hold keys, but I suspect it's true when typing too. I found that longer travel distance alone doesn't prevent me from pushing through the tactile bump, so it's easy to develop a tendency to over-press should lighter keypresses fail to register.
Computer Architecture: A Quantitative Approach
Book by David A Patterson and John L. Hennessy
So the word mantissa has two different meanings that show up in really similar contexts. In

log(120) = log(1.2 × 10²) = 2.079,

you could call both the .079 and the 1.2 a mantissa. The first is in the range [0,1) and the second, aka significand, is in [1,10) for base 10.

And really one mantissa is just the log of the other.
FTP servers are terrorist enabler tools.
Right. That's the thing we need a word for :)

Unit Interval Value is nice but still a bit cumbersome. I mean if we all agreed right now it were called a "poog" then we could just say poog.
Show HN: GoodCode – Free Front End Coding Challenges
Since they didn't want to document, I think `float Accuracy0to1` is a nice compromise that most people would understand instantly. Add `Incl` or `Excl` if you really need to disambiguate that.
There's a nice tool to get qemu command lines from libvirt xml:

virsh domxml-to-native qemu-argv myvm.xml
That's not an awful idea, and a step forward from the idea of replaceable strips on a reader that the thread suggests!