skysight-inc/HackerNews huggingface dataset:
You could still do the following in Java:

Class<? extends FooInterface> c = FooBar.class;
FooInterface newInstance = c.newInstance()

But people usually choose not to, because it still leaves the construction details up to the caller (and forces the class to have a no-arg constructor). The point of a factory is to create a fully "configured" object, e.g. maybe the factory has a set of specific constructor arguments it uses for all the objects it creates, that the caller then doesn't have to know about, etc.

It's true however that people would simply use higher order functions for this in JavaScript, e.g.

function createButtonFactory(color, background) {
return function(text) {
return { type: 'button', color, background, text }
}
}

const buttonMaker = createButtonFactory('grey', 'blue')

and then you can pass `buttonMaker` to somewhere that wants to create buttons by just specifying the text (i.e. some function that will be calling `buttonMaker('hello')`)

This has nothing to do with the language being "dynamic" though, it's about having this specific feature. You could do the same thing in C++ now that it has lambdas.

The contract of the thing that uses the factory is "I need to be able to create buttons by just specifying their text", i.e.

type ButtonMaker = (text: string) => Button
function loadGui(buttonMaker: ButtonMaker)

so the factory has to take care of all the other details (if any) to make that possible.
GitHub Graveyards: I'll show you mine
I have used Lisp languages far more often than Prolog, but I do have my own Prolog success story: I had just used ExperLisp on the Macintosh to write a little app ExperOPS5 for the company who wrote and marketed ExperLisp and ExperProlog. After this I was given an internal research grant to write a complete simulation environment in ExperLisp as part of trying to win a large contract. Given familiarity with the tools I was using, a good prototype took about 100 hours to write. I had time left over and talked with my management about doing a parallel implementation in ExperProlog. Using a declarative approach, I had a parallel system, with interactive UI and graphics done in about 40 hours - and I had a learning curve with ExperProlog.

I have also used SwiProlog and occasionally Amzi Prolog also since then. SwiProlog’s semantic Web library was the basis for all my early work and experience with semantic Web and linked data. I definitely suggest trying Prolog on a few small projects and add it to your tool set.
It's daring, but comes nowhere near the great spreadsheet comics of the past.
German is - in a way - very similar to Forth and PostScript: you need a stack of potentially infinite depth to parse it.
This used to be true but notmuch has added support for Xapian's DB_RETRY_LOCK feature a couple of years ago so if you have non-ancient notmuch (0.23+) and Xapian (1.3.2+) then the second process will wait for the lock instead of erroring out. The feature can be disabled at compile time if you don't want it for some reason.
What transport do you use? http? Do you use any dependency for handling transport layer? I haven’t seen a good clean dependency less headed-only approach for this yet.
A complete rape of nature - to make a few people rich and potentially many people sick
What Are the Most Profitable Investments in Turkey?
I don’t run any forums at the moment, but when I did, the software I used gave users massive opportunity to provide information about themselves. Some users loved this and filled in every field, perhaps because they enjoyed that it made socialising easier.

The problem for anyone wanting to host a forum is that using off-the-shelf software is a sensible route, but the available software might still be leaning towards offering to collect data like this, might not yet have support for GDPR disclaimers, checkboxes, etc.

What I’m saying is let’s assume neither malice nor incompetence and instead that those wishing to host forums may be hamstrung by the available software.
I wish people would stop repeating this BS. It was an internal ship party for WP employees. Hyperbole and trash-talking is common at such things. As it should be.
Yeah, it's weird, Thai and Khmer are very similar, and share some words, but also very different. Khmer isn't tonal, and has really simplified grammar.

They used to share an alphabet, too, but the Thai opted to simplify it (westernise it) while the Khmer opted to keep their original alphabet. Written Khmer is hard for us westerners to deal with because of this. They have lots of vowels and consonants that we don't have (I always struggle with the consonant between 'b' and 'p', because it doesn't seem like there should be any room for another consonant in there).
Appreciate the comment, but there are only two processes in that command, awk and sort, so it doesn't lend itself to scripting. Compare the regex solution for "date" at https://gist.github.com/philipashlock/8830168 and you can see why I prefer AWK.
Don't know if you're being a troll but in fact there's a lot of research to be done. https://www.collective-evolution.com/2016/02/11/this-is-what...

A lot of food that we eat today evolved really fast after we started to care about their taste and only select the ones with the properties we want. We're talking about maximum 10k years of fast evolution for human taste, not millions of years.
this is obviously the next step I think.
I think that the more democratic statement would be to not create anything special at all.

Create your art in digital form only. Release it on DeviantArt or on some similar website under CC0. Then say that you would sell "first author's printout" of it or something.
As soon as somebody buys it on an auction, you go on the scene with old laptop and cheap printer. You demonstratively go to DuckDuckGo, search for your artwork, open worst quality result from the first page, select "Print..." in Firefox's menu, select worst quality (saying loudly that you want to conserve ink) and press "Start".
>Art as an investment vehicle, something to preen yourself with, show others you are elite.

And something to launder money with.
Also recommend Numberphile YT channel https://www.youtube.com/channel/UCoxcjq-8xIDTYp3uz647V5A that also has some cool stuff w/ Matt and others
#Hottest #UpandComing (ARTIST) in #SouthFlorida
I agree with the other commenter’s Wow! Picat also supports satisfiability apps like MiniZinc does. Thanks for posting that link!
It does rely a lot on context. If you don't share a context with your listener, it's easy to get confused. Given the cultural gap with the West, it can mean that you're fluent in Khmer, but still miss a lot of the meaning because you don't share the same cultural context. Essentially culture-wide in-jokes.

But then, I had to explain British rhyming slang to my German gf the other day, and she thought it was crazy. I guess there's nothing that unusual about culture-wide in-jokes.
This chip looks for me like a simple fuse. This is not for spying, but rather a doomsday switch.

If activated, it will short the circuit destroying full system operations. I don't even think it contains any sophisticated digital logic inside.
Indeed.

And #000 is closer to black than to grey, and makes for a better contrast to #ffffff, and hence easier to read for those of us mere mortals with eyesight problems.

(p.s. apparently my original comment got downvoted - my apologies if my comment was somehow offensive in some manner to someone - I honestly thought I was making a good observation. Or perhaps it was a web designer who loves making reading web pages as difficult as possible by camouflaging text as much as they can get away with against a #ffffff background ;) )
Mark Twain was absolutely right. German is in the Top 10 of the most weird languages in the world:

https://corplinguistics.wordpress.com/2013/06/21/the-weirdes...
> Hyperbole and trash-talking is common at such things. As it should be.

Why?
That's a common sophism that completely ignores the cost/benefit trade-off of those supposedly useful error correction mechanisms.

In German for example, they're IMO total overkill (as in cost far outweighs benefit).

But then, you have to take into account that over-engineering things is a national hobby in Germany.

The question becomes chicken-and-egg: did the language induce the cultural trait or did the cultural trait structure the language.
If the raw size is approaching 4GB maybe it's fair to split the image..

Anyways, webp is for websites not cameras..
Teal and magenta is creative. You can't make nonconformist movies unless they are color graded teal and magenta. And drink your coffee!
And then proceeds to show you adverts
Is there any person who would take this kind of abuse?
that url is dangerous.

it uses a strategy which is mainly utilized by phishing websites to mask the legitimacy of a fqdn. Its also http, so easily modified by hostile parties.

imo a very poor idea considering how you ultimately end up on a shop. i know its just a 301 redirect vhost, but nonetheless...
Going, going, gone! Tsukiji market holds last tuna auction before move
While I used Modula-2 a lot in a long distant past, I unfortunately never got into Oberon, so I didn't consider it in my comment. Though if Go is a successor to Oberon and Oberon is a successor to Modula-2, Go is also a successor to Modula-2 :).
Interesting paper, thanks.
Hold the Dark Türkçe Dublaj izle (2018)
>Not referring to this specific exhibit but other pieces by a similar artist. Thousands of people can create this kind of paintings for cheap.

Art was never about difficulty of reproduction. Once an artwork has been done any hack with 2-3 years of art school can create a great imitation, and with some more talent, even do a Rembrandt or whatever. There are entire cities in China who live by making copies of famous oil paintings.

>That millions of children still starve but a piece of simplistic art is worth more than the value of food a whole village consumes in a decade is a sorry effect of the financial system we use or the way our society assigns ‘coolness’ score to people and activity.

It's the same when a company buys some BS social app like Instagram (mainly an avenue for vanity and time-wasting) for several billion, which could just be used to save millions of lives.

Society was never about goodness or helping the most (and especially not for helping people elsewhere).
I don't get your point. You wouldn't typically encode such a large image in one chunk.
>How would it even be possible for the government to have determined that Apple and Amazon had their hardware compromised without Apple and Amazon's knowing cooperation?

By having a spy in Chinese intelligence who sells it, then doing inspection when hardware goes through customs.
I usually give up, being an idiot isn't so bad once you get used to it.
Only sugar.
Code generators are good - if they are properly supported and tooling good. Have a look at the new work-in-progress about C++ meta classes (P0707): https://youtu.be/80BZxujhY38?t=3141 this stuff looks very neat.
"allows"

The very idea that one is "allowed" to say or not say certain things is just so deeply wrong ...

How about this criterium instead: did the person you are trying to communicate with actually understand what you wre trying to said.
Show HN: Trigonoparty – JavaScript trigonometry visualization
> he didn't have any actual conception of a communist society

This is my point, actually. There is no one who would forbid a group of people to appoint a few members of their community to be "police"; there is no one who would forbid a group of people to create a court. And there is nothing saying that would make it a state. Communism is about self-governed societies, not anarchy in the destructive "I can do whatever because there is no police" sense.

Even actual anarchy wouldn't be like that because if you hurt enough people, they will hurt you, and that's why you don't even do it. Later in development, they'd pay someone in advance to hurt you if you hurt them. The same thing would happen in communism, just there wouldn't be money changing hands and the organizational specifics would be different.

Saying that any form of leadership would make a stateless society not stateless is nonsense. My family is not a state and yet we have a leader. My apartment building is not a state and yet we have a leader. Etc. There will always be a leader (or a group of leaders), the difference lies in who owns what and how are the leaders appointed (e.g. on basis of what) and what rights they have. Without any leaders, the society would collapse.
Namecheap email regarding DNSSEC key rollover
Probably easier to build “smart” Cat5 cables that draw PoE to energise a chip in a connector to power a long-range antennae built-in to the cable (outside the shielded layer, of course) to broadcast whatever goes on inside of it to the outside - and put 500x of them in a cable box delivered right outside an Apple iCloud data-center under the guise of a typo’d purchase-order from Monoprice or Tiger Direct.
>Mark Twain did what 99% of Germans,Austrians,Swiss are never going to do. Stop and overthink it too much.

The Swiss do not speak German at all.

They speak various forms of Swiss-German dialects, which are related to German, but altogether different languages.

And very wisely, Swiss-German dialects have entirely done away with all the useless grammatical garbage German is settled with.

As a result, Swiss-German - while being far from the most aesthetically pleasing thing to hear - is way easier to learn than hochdeutsch.

Yet somehow, you can perfectly express complex thoughts in Swiss-German and still be understood, so all I've read in this thread about how grammatical complexity is a form of error-correction ... sorry I have to call BS.
Before you get anywhere near this point, why not just use a real database and programming language?
I received this mail from Namecheap today with the subject line "Important: Potential Internet Access Issues".

Apart from the weirdly misleading subject line, the advice in the mail is really misguided IMO. If your ISP fails to update their trust anchor, disabling DNSSEC entirely for your domain will indeed let you access it again, but it won't do anything for other sites that you can't access, and it rather defeats the purpose of enabling DNSSEC in the first place if your first troubleshooting step is to turn it off again.
7 times Steve Jobs served humanity and acted as an example to others
Downvotes make text grayer, perhaps it was a communal attempt at humor?
> Even with secure DNS resolution, DV cert verification processes don't have a secure channel, and remain vulnerable to traffic interception attacks; for instance, even with DNSSEC, BGP attacks can straightforwardly trick CAs.

3.2.2.4.7 just does DNS, so DNSSEC can secure it regardless of "traffic interception" or other shenanigans.

Tightening up the Web PKI happens gradually. In 2017 we required the Ten Blessed Methods (3.2.2.4.x) to replace a previous free-for-all, and then we've whittled away those ten so that today there are only eight left, of which one is secured by DNSSEC and several are out-of-band, so shenanigans on the Internet won't help you there. I won't be surprised if it's six by late next year.
>Europe’s outdated approach to gene editing.

Right, I can't wait to follow the latest trends on gene editing. Our approach is so old and boring, we should be trying the new fun and shiny stuff, like having some guy edit the genes of our staple foods while providing no guarantees whatsoever.

For those who aren't aware what this is article is about, it's about US farming lobbies being unable to export their genetically modified food crops to the EU.

While GMOs can be exported to Europe, they must pass through a careful set of tests by the EFSA (european food safety authority), including appropriate labeling, and the various EU countries can still choose to ban them under their authority.

As Trump said recently, he will be pushing the EU to accept all of the untested GMO crops his sponsors grow, and he'll probably be pushing for a forced, EU-wide directive to just take everything and shut up.
Are the courts not capable of dealing with silly word games?
Solving the rubber pipe solution
The issue being that documents get deleted.

2018. Windows update deletes non system files.

2018.
Indeed! There's no better documentation than the code itself.

Except for all the things you need to know in order to use the code. Which are why you still write actual real honest-to-God prose documentation. Or, if you don't, is why I don't bother trying to use your code.
Coffee and energy drinks.
Why should it be common ?

What good is a morale event for a team where everyone talks about how far behind they are ?
I would believe Bloomberg if they had some detailed reports/demonstration as regards the mechanism of how this attack actually happens, not some nebulous picturing of some vague concepts the reporters themselves seem don't understand.
That hadn't entered my head as a possibility - since I'm feeling mean, have an upvote to ensure your excellent comment stays black :)
More like make US tech giants move their manufacturing to the US (at least those boards headed for the military or government)
Give up. What is needed is a single monthly fee that costs about the same as a single newspaper delivery subscription that allows readers through paywalls for all the local papers, maybe another for NYT, WSJ type papers. But it’s unreasonable for the newspaper industry to expect readers to buy subscriptions to a 100 different papers we never heard of so we can read one mediocre article from the Dirtwater Republicrat.
Silk Road admin could face up to 20 years after pleading guilty to drug charge
Are you a Web designer or from a web studio? Need you help
Hi there,

I’ve got a question to web designers/web studios.

Do you often face a situation that you have to decline the potential clients reaching out to you? For instance, their budget is too low or you won’t be able to make a project within the needed term? If so, please share more reasons for that.

I would really appreciate your feedback on this!
If I'm looking for a library to solve a problem, and have a choice between multiple options, you'd better believe I'm going to have some "30 second" heuristics guiding me toward what's likely to be worth my time exploring further.

People who put in the effort to have good documentation are more likely to also be producing good software that's worth the time I'll put into trying to learn it.

And no matter how righteous you want to get here on HN in proclaiming that to be "toxic" and trying to read it uncharitably, I'd bet all the money in my wallet right now that you have 30-second heuristics you use to judge whether a piece of software is worth your time to explore.
Regardless of the potential use for disambiguation, every noun having a gender affecting the articles and pronouns to be used adds a significant burden when learning the language. In some languages, like Spanish, the spelling of the noun nearly always indicates its gender, but this is not the case in German.

Acquiring a language as a native speaker in childhood is a significantly different experience from trying to learn one as an adult.
Gender distinctions in the Standard Chinese written forms 他 (he), 她 (she), 它 (it) are indeed a recent introduction. In Cantonese there's a single character for he, she, or it (佢, pronounced keúih). This is a different word entirely from Mandarin tā, not a different pronunciation of the same word like 雞 being pronounced jī in Mandarin or gāi in Cantonese.

Because, as you pointed out, there's no mutual intelligibility, Cantonese and Mandarin are considered by linguists to be separate languages.
Nvidia announces new graphics cards. Should it be on HN?

Apple announces new iPhone, listing specs. Should it be on HN?

Google announces new service. Should it be on HN?

In general, if it's something tech related that the community finds interesting, I don't see why not.
Coffee. I drink a strong black cup of coffee within my first hour awake and then have another after lunch.

I am against other forms of performance-enhancing drugs (other than caffeine). They create a doping culture that is no different from that displayed in professional sports.

If you have a professionally diagnosed learning disorder, you may find help from meds. If you have a learning disability, avoid a job that requires you to program all day . You will be trudging against a perpetual, strong counter-current that will compound your challenges.
you might be able to get access through a local library. A friendly e-mail to the authors can help. And there's always sci-hub, which even academics with "proper" access use because it's so easy.
This is what happens when you stop paying for QA and want your end users to do the work for you.
You've put my thoughts about this very succinctly. Completely agree.
To me, this is amazing. Client to client quake and server? I would expand on this.
That would mean it is possible, just deliberately blocked.
OK. I use a very similar set of heuristics to what's described in this post.

Here's the documentation for the most recent thing I released:

https://django-registration.readthedocs.io/en/3.0/

And the one before that:

https://pwned-passwords-django.readthedocs.io/en/1.3.1/

Here's the next of my packages that I'm working on, not because the code needs work but because the documentation isn't up to my standards anymore (in fact, I'm doing a rolling refresh of all my personal packages right now):

https://webcolors.readthedocs.io/en/1.8.1/

I don't expect everyone else to match my output in documentation. I do expect people to write some type of prose documentation covering more than just "here's an auto-generated API reference, good luck", or "here's a README with a couple examples, good luck". And I absolutely treat quality of documentation as a predictor for quality of code, because it tends to be a pretty strong predictor.

Want to tell me how "entitled" I am?
I smoke cannabis. But sometimes I get so high that finding a coding error may be frustrating and a long job.

I like cannabis and coding, but I feel I code faster and better (harder, stronger...) when I'm totally sober.
Well, BuzzFeed some has really solid journalism from time to time of the highest quality, like the Palantir piece.
The never use map/filter is in favor of list comprehensions, which is not really a OOP construct.

But sure, it's a conventional thing. And for a long time the built-in alternatives to a class for such a datastructure tuples and dicts, neither which are very nice for functions to operate on (dict values have to be addressed with d['key'] instead of d.key).
With a class and method there is also no doubt as to what the function operates on, which is convenient when there type hints and IDE support is missing. This is changing since Python 3.5 and type checking tools like MyPy.

Since Python 3.7 there are also data classes, a primitive for classes which just hold values. https://www.linuxjournal.com/content/introducing-python-37s-...
But it will take a while before programming conventions change.
Do people really set all their servers to point to someone else's NTP?
> staple foods

Loads of the commercial tomato variants are easy to transport and taste nothing like a proper tomato. It's travesty they share the name. It's a far stretch to even call them food.
I'll take ones modified to be edible every day.
You can apply this statement to every software bug, probably ever.
apple doesn't let you fix your computers outside of their service ecosystem and Microsoft actively deletes your files coz users are their testers. i'd say this is very 2018. being superficially attractive(MacBook pro w/ pointless touchbar,Surfacebook with grease stain attracting alcantara proprietary port connectors) and then squeezing your user for every ounce of value is very 2018
What you're describing is illegal.