skysight-inc/HackerNews huggingface dataset:
> but we do need a way to extend objects we don't control without breaking encapsulation.

By definition, you can't extend objects you don't control without violating encapsulation. Encapsulation is all about controlling access so that the owner of a class can make changes without breaking downstream code. If downstream code accesses these private APIs, the downstream code may break, regardless of whether the access was via inheritance or composition (as a side note, "protected" makes no sense--who cares if downstream code breaks because it was accessed by inheritance but not by composition?).

> As an example if you had a method that outputs XML and you want JSON, you can use an adapter object to call it, read the string, and reformat and pass it through. That works (and I've done things just as bad or worse many times from necessity), but it's definitely more hackish and less efficient than a solution that uses object fields to output JSON natively. Inheritance is my familiar way to do this in cases where I don't control the code (in which case injecting a Writer class of some sort probably makes more sense).

You can do this just as easily without inheritance. You just need a way to access the member fields--whether you access them via inheritance or otherwise doesn't really matter. E.g.,

class Foo:
def __init__(self, x: int, y: int) -> None:
self.x = x
self.y = y

def xml(self) -> str:
return f"<foo x={self.x} y={self.y} />"

# Via inheritance
class JSONFoo(Foo):
def json(self) -> str:
return json.dumps({"x": self.x, "y": self.y})

# Via composition
class JSONFoo:
def __init__(self, foo: Foo) -> None:
self.foo = foo

def xml(self) -> str:
return self.foo.xml()

def json(self) -> str:
return json.dumps({"x": self.foo.x, "y": self.foo.y})

# Simple
def json_foo(foo: Foo) -> str:
return json.dumps({"x": foo.x, "y": foo.y})

> I'm not familiar with Go but apparently it has "embedding" which is a little different. Maybe that works. But it's largely playing the same role - a way to extend a class you might not control.

Go's embedding is exactly composition. It doesn't let you access private member data of the embedded class. It's just syntax sugar for delegation. In other words, you could create the composition version of the JSONFoo class like this:

type Foo struct { X: int; Y: int }

func (f *Foo) XML() string { return fmt.Sprintf("<foo x=%d y=%d />", f.X, f.Y) }

// The compiler will automatically generate this method:
//
// func (jf *JSONFoo) XML() string { return jf.Foo.XML() }
//
// And for a given instance of JSONFoo, the compiler will convert all instances
// of jsonFooInstance.X to jsonFooInstance.Foo.X.
type JSONFoo struct {Foo}

func (jf *JSONFoo) JSON() string { return fmt.Sprintf(`{"x": %d, "y": %d}`, jf.X, jf.Y) }

Note that a `JSONFoo` isn't a `Foo`. This is an error:

func printXML(foo *Foo) { fmt.Println(foo.XML()) }

func main() {
jsonFooInstance := JSONFoo{0, 0}
// printXML(jsonFooInstance) // error
printXML(jsonFooInstance.Foo) // correct!
}
The data isn’t stored by Apple or Google, it remains on the device. Users have to decide whether to share their location history with the government or health authorities. Instead of automatically pushed every few minutes as one their sources insisted was necessary.
> being able to boot in ten ms means you can start a VM in the scope of a single request

That is actually a good point. Though this is also achievable with WebAssembly (see CloudFlare), but Unikernels could do it more generally I suppose.

On the other hand, AWS Lambda has yet to drive classic EC2 to extinction.
That's not what I get from these articles, which say it takes 30 seconds for alcohol to kill it (on surfaces), while soap and water (with scrubbing) will do the trick with 20 seconds.

https://www.uchealth.org/today/why-soap-and-water-work-bette...

https://www.uchealth.org/today/ins-and-outs-of-disinfecting-...

https://www.marketwatch.com/story/deadly-viruses-are-no-matc...

If you've got a better reference I'd be interested in seeing it, but this is what I've found.
Ah, thanks.

Iceland is whatever you call the opposite of that. Grandma very rarely lives with her family, she lives by herself -- hopefully with her partner -- until she is unable to and then moves into a system that ranges from living-alone-with-help to typical old folks homes, and will gradually move towards more care as her health allows.

So that's wrong in the original comment, but the rest seemed pretty spot on to me, and doesn't change the argument much I think.
If they had just disappeared overnight probably, but on our case the cost of the pandemic is going to dwarf whatever you might have gained.
Show HN: VPC Design Studio – Subnet CIDR planning with Terraform/Pulumi code gen
Proper tool for the proper job. You don't shovel snow with a hammer. That doesn't mean a hammer is not useful when engaging in carpentry.

(Just to close the loop, you can use a shovel to do carpentry, but a hammer would be much better.)
Iceland has also has a large team of contact tracers. Which
has been pretty key along with our large scale testing of the population. The fact we’re still below 40% is a good indicator that this idea is pretty bad.

One thing the app might be used for is to allow visitors in without quarantine. Prove you have tested negative recently and use the app so if you do get sick we at least have a vague idea of where you were.
WoW is hardcore and people still playing it of course. I would think simpletons can't retain attention that long.
I'm not completly new to Rust, but for some reason writing a Markdown has become a routine project I do in every language I'm learning.

This tutorial looks fantastic. Is the layout based on a 3rd-party theme or template? I really like the presentation.
A proposal for a better world by sharing knowledge
Changed from https://www.academia.edu/7590816/Against_Set_Theory?email_wo.... Thanks!
Much AI today is trained models, and when the training is based on behaviors that people no longer exhibit the model output is no longer sensible and the model would need to be retrained to handle it. For example if you trained a speech recognition model on mens voices and then tried to use it for womens voices it would perform poorly.

There has been some work on self-training or continuous learning AI, where all new inputs are used to continuously retrain the model, but these can be difficult to control, and training is often the most computationally expensive part of AI, so it often is not feasible except on arrays of computers. For example if people realize the model "learns" they could change their behavior to make the system learn to do the opposite of what most people would expect, not a very desirable outcome. Or the "learning" might home in on some strange artifact of behavior and accept it as the preferred output, such as thinking that when people click their tongues they are saying "yes", when really it just happened that some group of people who happen to do both were using the system a lot for some reason. This is still an area of research and while progress is being made it's much more difficult than using a large collection of data to train a model. For some kinds of problems the "learning" needs to understand context, which is very difficult to do in software since it involves understanding how the world works.
We sure do spend a lot of time brooding about how to generate, write about, and share ideas with an unknown online audience. What would happen if instead of spending hours and hours researching whether we should use WordPress or Ghost or Jekyll, we spent that time reading and writing and reflecting?

We all know too much about one another these days. It doesn't seem to matter to whom we address our writing. There is something to writing for yourself, writing offline, writing as a means of forming a private life and a private consciousness. And what about writing for the experience of writing itself? Forget publishing.

Ours is a society that says so little about nearly everything, and most commentary on the web today isn't worth reading. Furthermore, all content is ephemeral, people share gentle opinions instead of strong convictions because it is safer for one's public reputation, nobody is good at or cares about typography, self-editing is not a skill that people have, and you can never tell where the delusional self-promotion ends and the truthful personal expression begins.

We have become so sensitive to other people's personalities, accomplishments, productivity habits, recommendations, and advice for life. To what end?

I don't know. Reading blogs is not my idea of quality time.
Life advice for someone considering getting involved with a tech startup [video]
Please don't be an asshole HN. You may not owe Bay Area homeowners better, but you owe this community better if you're posting here.

https://news.ycombinator.com/newsguidelines.html
Likewise, although I have several requirements (offline available, Mac/iOS, nice-looking, Markdown...) that eventually rule out anything. Thanks for trying! If you have any suggestion please let me know :)
Playjng Grim Dawn and DOOM eternal. This is a good year for games. Cyberpunk can't come soon enough.
Pointing out that someone is using silly language with pointless effect is not an "ad hominem attack": can you point out anyone who might be confused by what I said?

Your use of "my friend" is similar to the thing you're complaining about. I got what you mean. Bringing up "ad hominem" is dodging the real issue.

Another comment of yours: "utterly stupid bureaucracy"
Serving videos instead of GIFs is easy to do now with the HTML video element, which is supported almost universally

I respectfully disagree.

Loading videos instead of GIFs is easy to do now.

Serving videos is a nightmarish mess of trying to match divergent, incompatible, sometimes patent-encumbered "standards" against an ever-changing range of browser support taking into account the hardware capabilities of a vast range of different devices and the corresponding rendering costs, decoding costs and bandwidth considerations based on incomplete and sometimes contradictory documentation from dozens of different sources that will be out of date by the time you've finished reading this paragraph.

One of these is not like the other, and that's why GIFs are still so prevalent.
Dev time would far outweigh the cost of a managed equivalent.
20 years ago, it was extremely common for your ISP to give you 5MB or whatever of space to use. users.ispname.com/~yourname or whatever. It was great, tbh, since anyone with cuteftp and notepad could publish to the world.
We use Amazon MSK and are pretty happy with it so far.
The exponents may be implied by how the microcode uses them, somewhat like how fixed-point maths assumes the position of the decimal(binary) point.
Many thousands (maybe even millions) of still-relevant older posts on my company's forum are simply no longer even indexed by Google. I guess it's a part of the deep web now.
Indeed. The companies that make up the S&P500 are far more valuable than they were in the past due to the consistent technological and social advancement that has made the US far richer than it used to be.

Progress!
I wish, instead they are just not intended to be taken literally.
(This isn't the same person that answered you)
"It can't possibly be happening because it
never happened to me" is a pretty weak argument.
it's a figurative euphemism - when a big company buys a blogging platform, changes the privacy policies and bans content, you can say they "shut it down".. like how the cops can shutdown a house party
It would be nice to have a button to see answers instead of just hammering at guesses.
Making small gifs is an art: Dithering, color quantization, sub frames that don't move, etc. However I must agree that for most content shared online, video is more efficient.
I came here to ask, thought not outright say, what is it with all the "... in rust" stuff that keeps getting posted. It's starting to feel more like a marketing exercise than anything actually software related (happy to be corrected on this though).
It's much more than that: It's the principal Java library for accessing and creating Word, Excel, Powerpoint, and other Microsoft format documents. And to the point here, it contains an equation solver, so there are possible points of proximity.

But my overarching point is that for some large segment of programmers if you say you're working on a project called POI, they're going to think Apache POI.
Yep. Each of our TTS models is based on a real actor's voice that has its own nuanced characteristics. Some voices are naturally rougher / croaky while others smooth. As in real life, our differences are what make us unique. Some voices will work better for certain character profiles / scenes - it's up to the user to decide.
If you'd like a summary of the book, my study notes are here:

https://tylerayoung.com/2017/01/23/notes-on-game-programming...
Why is JPEG the de facto lossy compression format for photos? It always bugs me that video formats get something new every 5 or so years yet photos are in JPEGs for decades.
Also one of the primary reasons Hawaii only has 17 deaths and 637 positives.
There's a fair chance that you just made a new starter (from the flour you've been feeding your salvage with).
For a lot a projects this is hardly a problem. On the other hand Kafka is more mature and has a huge ecosystem (Kafka Connect, Kafka Streams, KSQL, ...).
I'll be frank: that article strikes me as weak sauce. It's coy about the identity of the paper it discusses. It's there in the title, and nowhere else, as if that's enough for it to be clear to the reader. Beyond this, the responses offered are not strong.

It makes good sense to compare unikernels against conventional GNU/Linux. It's the standard configuration, and it sets the bar. Describing this as a pyschological hump isn't a sensible response.

I don't know what advances to things like the networking stack is meant to refer to. The article should be clear and explicit about what part of the paper this is responding to. As it stands it looks like a straw-man.

The response to unikernels are un-debuggable makes little sense. Someone can work on a debugger while claiming the current state of debugging is poor. No contradiction there.

Downplaying the significance of Data Execution Prevention isn't a convincing defence. Downplaying the significance of ASLR isn't a convincing defence. These are valuable security measures.

This excerpt from the conclusion seems to indicate a reluctance to take security concerns seriously at all, as if a security analysis is an emotional attack: there's a thousand little kids out there wanting to crap on anything they can. Security bugs are bugs at the end of the day and all one has to do is look at any random popular github to understand how many bugs we as humans create.
Let's just say it's hard to predict the future :)
Actually that sound even more toxic...

You could say that the current karma system is sort of supposed to be that, but at least it does not affect comments visibility as far as I know.

Having a parallel unofficial social credit system looks like one thing that would just create unnecessary conflicts in communities that do not have a strong troll problem.
http://playgo.to/iwtg/en/ for basic rules, http://www.goproblems.com/ for building skill, https://openstudyroom.org/ for learning with others
Whatever google has or has not done, that's not why I can't get traction. That's not it.
So... did they make you an offer?
Yea this is my thought. Any sizable project will have enough documentation to make this one page approach unwieldy IMO. MkDocs Material is all I'll ever need for documentation. https://squidfunk.github.io/mkdocs-material/getting-started/
New Malware Compromises Supercomputer Clusters in US, Germany, UK
A number of technical reports were shared yesterday (Friday 15th May 2020):

1. A report by the European Grid Infrastructure (EGI) security team reported on two distinct attacks (“Incident One” and “Incident Two” ) that their members observed against super-computers.

2. Security researcher Tillmann Werner shared a Yara rule to detect a loader and log cleaner for attacks against supercomputers.

3. Security researcher Markus Neis shared hashes for the loaders and log cleaners
There’s a lot of non nerd solutions. Ghost, Wordpress, Medium, Blogger, Tumblr are all very easy to Süd- platforms. There’s a variety of free and paid platforms. The existing solutions are not the problems.
This looks like another good time for me to bring up https://startablog.com - our initiative to get 10,000 people to star their blog.

There's really never been a better time to control your site, own your content and start working on your voice.

Read David Perell for more the benefits of writing publicly more often.
I think they can also collect enough organic matter for mold to start growing on the downstream side. I base that on pictures of automotive cabin filters that are revolting.
Good to know other people on HN also feel that way.

To me TypeScript feels almost like a conspiracy. I just don't get it.

I've always been ahead of the trend with ECMAScript/JavaScript (started seriously coding with it in 2004 while I was still in high school), NoSQL databases, Node.js, Angular, Vue.JS, but I couldn't imagine TypeScript becoming so popular (though I had found out about it very early).
I still can't make sense of it. I've spoken with some well known bloggers who've admitted to me that they don't like it but they wouldn't admit this publicly right now because it has too much traction.
> 5x more expensive might actually be the correct price. Remember that you cannot compare a price for a good manufactured overseas with lack labor laws vs something manufactured in the US with laws, insurance, regulations, etc.

Perhaps so, but if that were the case, the producer wouldn't be fairly accused of profiteering. Usually these accusations arise when the production or acquisition cost for the seller is low and the sale price is very high.
>That's not true. The overwhelming majority of people who want to avoid systemd have said this is not realistically possible.

Can you please give examples? In my experience using your old init scripts, cron, syslogger, etc. with systemd still works fine. I did this for a long time on systemd machines until I felt comfortable with the systemd way.

>he is intentionally forcing it through by making things difficult for distro maintainers

You are talking past what Lennart said which you even quoted in your post just now:

>they'll hopefully notice that it's not worth it and cross-distro unification is worth more

I really cannot understand how you are trying to frame "hopefully they notice the associated costs with some decision" as anyone being forced to do anything. Are you trying to claim that systemd distros don't actually value cross-distro unification and were somehow tricked into this proposition even though it was clearly stated 10 years ago? Or are you disputing whether systemd actually accomplishes this? Either way, those are not really related to our current situation now.
That's dithering, absolutely. It fits well with the overall theme of the picture as well, which seems to be some kind of stylized Game Boy vibe. In a lot of new pixel pieces I see, that's about where it stops.

In the hands of a skilled pixel artist it can be used to extend color ramps, add texture, build depth, etc.

In this picture[0], exocet not only uses dithering to really stretch a limited palette of six values for the skin tones, it's even used for little easter eggs (find the heart!). An extreme example, of course, but still highly enjoyable IMO.

[0] https://demozoo.org/graphics/56253/
everything honestly has become elongated garbage. youtube videos are the same. 20+ minutes of rambling for 2 minutes of quality because thats the only way youtubers actually make any money. the internet is still a much more efficient tool than reading a textbook to find some information, but its getting to the point that it might be more interesting to sift through a textbook to find the info I want because at least im sifting through useful/more or less accurate info, instead of just pure filler nonsense that exists on the web today
That would entirely depend on your payment terms.
There is a good advice for writers (bloggers are essentially writers) - write only if you can't NOT write. If you write because you can't not write, then you don't care about the number of readers.
Wordpress hosted on Dreamhost.

I used to run Drupal, but it wasn't worth the effort.
Is your TTS process necessarily ahead of time, or can it be done at runtime with all the flexibility (templating, generative text etc) that brings?
No. Not everything is about increasing in efficiency. GIFs are a throwback to the charm and chaos of the early days of the web, and I hope they stay part of the fabric of it long into the future.
blogger's founder went on to create Medium after being chewed up and spit out by Google, you should give it a try you might have better luck
I would be happy if i got 2mb GIFs these days. You click on something that ends with gif or mp4 and you get half a megabyte of tracking javascript instead of the file you expected.
If its kept as a trade secret society may never benefit because it is never disclosed.
Blogs are all over the place and I don't find any of the arguments as to why they might not be as popular well founded nor compelling.

Running a blog is either free or nearly free. With Github pages, Blogger, Netlify, and many more platforms, the only cost you're going to incur is a domain name and even that isn't mandatory. If you do want one, you can easily get a domain name for a tenner a year or less.

Technicality isn't a convincing argument either, there are many ways to get started with just a push of a button and the range of options spans far and wide if you want more. Premade templates, static site generators, WYSIWYG editors and more have made the barrier to entry lower than ever.

Which brings me to my last point, audience. Audience is one of the most recurring themes of woes and, I would say, the most childish. Wanting to be heard is a reasonable wish, along with wanting to belong and many other basic traits. However, demanding to be heard is something else entirely. Your blog wont attract thousands of regular readers from day one and in hoping so, you're simply setting yourself up for failure. The truth is, if you write good content, the readers will come.

Even with that said, I would argue that having readers isn't a good end for your means in and of itself. Much like chasing popularity just because, obsessing over SEO, analytics and all that other jazz is simply trying to feed your ego. Tame your ego, and write about what matters to you. If you're only writing for others, then maybe writing isn't the best way to use your time.
The word "should" is a red flag.
This is me, but for writing and also for business ideas.
Ok, I did, and it's pretty much it. Punishment is less severe.
RFCs and Asynchronous-First Culture
Landlords will probably do fine in a currency-printing world.
That was my experience. Using it multiple days in a row trashes my skin.
ServiceNow. Never seen so many popovers and tabs-in-a-page.
div.disassembly_container_no_dec {
overflow: initial;
}
I was thinking about this the other day - trying to come up with an idea for a way to aggregate or recommend blogs to people based on what they'd previously enjoyed or the topics they were interested in. It took me several minutes to realize I was mentally describing Medium to myself.

Still, something doesn't feel quite right about Medium to me.
I feel that rather than blogging, more people should write comments. I’ve never written one blog article, but I’ve written a novel worth of comments over the years. A comment IMO is more pure and true, and is created out of a strong desire to say something, rather than for some other extrinsic motivation.

My problem with blogging is that I can’t just write in a vacuum, I must always write in response to something and when I have something worth responding too I can write more usefully.