skysight-inc/HackerNews huggingface dataset:
Ah thank you! I am very much experimenting at the moment, and don't really have anyone more experienced to talk to, so I wasn't sure what "high" / "medium " / "micro" was ....
Did an MBA in Hong Kong, just finished earlier this year. A lot of my classmates are mainland Chinese. Bunch of them would regularly talk with each other and say that military action was the only way to resolve the situation, China needs to send its military to Taiwan and overrun the Taiwanese defenses quickly. Baffles my mind that they're so ready to default to war.

Some other mainland Chinese people are more nuanced in their thoughts. I have no idea about population percentages for opinions. But this a world-class top 20 MBA school, and had one undergraduate student die while protesting (fell off a building). Bunch of these classmates are educated with masters degrees from American universities. If they default to war, I'm a bit concerned, I'd expect them to see more nuance in the world. For them, it's not really war of course, as Taiwan was always theirs in the first place in their eyes. Any foreign interference in the matter is a slap in the face of Chinese sovereignty, was the same for Hong Kong.

Hong Kong is a difficult situation because the entire world agrees that Hong Kong belongs to China. Taiwan is difficult in that most of the world has agreed that Taiwan belongs to China, that is the crux of the One China policy that China forces all countries to agree to if they want to have diplomatic and trade relations with China. If you break with the One China policy, you break diplomatic and trade relations with China. Don't see most countries willing to take that step. Big game of chicken.

For what it's worth, the Chinese government's official stance is that military action is a last resort option only if diplomatic negotiations fail.
> This is not actually due to Icelandic being as conservative as you think.

Many would say that is exactly proof of their conservationist nature! While there is some truth to your claim of the language not evolving in a fully dynamic or "natural" fashion (i.e. rather evolving with input from culturally conservative experts and intellectuals, which is how literally all Nordic languages evolve today as far as they're able to control it), Icelandic hadn't really lost that much of the original Norse, and certainly not as much as Norwegian did in the same amount of time.

This is due mainly to a few factors. First of all, Norway became "danified" much quicker because the Black Death wiped out most of our nobility, leading Danish to become much more prominent much quicker over here. As such, Iceland had more of a choice in the matter. Second, Norway is in very close proximity to both Sweden and Denmark, leading to constant influence due to trade and even families migrating back and forth. On the other hand, it takes much more effort to get to Iceland, since you need to undertake a pretty long journey over the ocean to reach it.

Like Norway, who was also under Danish rule, Iceland also went into a phase of revival and romanticism around the Napoleonic wars, leading both peoples to search for their roots. In Norway this struggle lead to the invention of Nynorsk (New Norwegian), which uses a lot of older dialect words—especially from West Norwegian dialects—compared to the almost completely Danish Bokmål (Book Language). These two written languages are still pretty similar, though, and thus pretty much unintelligible with Old Norse.

Additionally, if you listen to Faroese, you'll find that it is also much closer to Old Norse than both Danish and Norwegain, despite the language arguably being much longer under Danish influence than both Norwegian and Icelandic.
The kind of stuff you are able to do with entt (https://github.com/skypjack/entt#code-example) like `entities.view<Position, Sprite>.each([&](auto &pos, auto &vel) { ... });` is super awesome IMO. And then it compiles down to just directly inlined straight walks over the respective arrays (looking in godbolt.org). It's basically almost optimal for it.

I do agree that you can go insane with templates and have a bad time. You just have to choose well. However if you have a problem with there existing other problematic code in the same language (that may be separate from your code), then C++ is maybe not the best fit. There's a lot of C++ out there.
We can no longer say "the west" and expect a unified response - brexit, the constant attacks on member nations of NATO by Trump, The Iran deal that Europe still backs but the US doesn't.

There's a reason Russia and China are bold right now.

EDIT: I get it, it's politically charged, but I remind everyone to discuss, rather than downvote, based on your own political opinion.
> You need a team probably

The cardinal rule of database development:

http://www.dbms2.com/2013/03/18/dbms-development-marklogic-h...
I found being really clear with myself about the things I was Not going to take care today was really valuable - it made it much easier to pull my focus back to what I was working on if I knew the other stuff was “scheduled” for another day.
Sounds like the justifications for the Iraq wars.
From the first look it sounds like GitCenter (git over zeronet), but a closer looks seems radicle is more efficient and has unique (and probably better) way for discovering new content. Still not very clear about the actual design of radicle, will checkout more about it
Free Tibet to go back to feudalism?
You do know that Tibet and Taiwan wasn't any better for the poorer part of the people.
Hong Kong is one of the most expensive places to live.
The protesters are part of the privileged and are just fighting to keep them.
Didn't hear them complaining back then in the asian banking crisis when China bailed them out with the money from exploited chinese workers.
How did they not work out??
The click handler won't work with keyboard and who knows what else, which means broken accessibility, This is actually a moral issue (you shouldn't decide which people to exclude), as well as legal in some territories. And the button can be styles pixel perfect easily, as explained above.
For a visualization project, I needed to be able to automatically generate a visually pleasing colour palette. Customers would provide one or more base colours (e.g. based on their corporate design rules) and the generated palette should then complement those base colours. So it didn't help to manually pick those colours in advance because they may not play well with the base colours.

If you find yourself in a similar situation, I wrote a blog post on how such a palette can be calculated:

https://rentafounder.com/generating-colour-palettes-for-char...

The algorithm basically picks colours one by one, each being the most distant colour to all previous colours within the same saturation plane, all in CIE94 space.

It ended up working quite well.
should be Ask HN: https://news.ycombinator.com/ask
Define “at scale”
I wish Lua had immutable data structures with memory sharing. It would make the designs of some things much more performant.
I don't know if the supply of clean water really counts as rock and ice or slap fighting.
Thanks. That’s awfully loud.
But then how long until I'm paying subscriptions and being spied on?

It's kinda like how cable TV started with no commercials as a contrast to over-the-air TV, and then quickly introduced them...
Giving that Shanghai stock market trades more than HK, that argument doesn't hold up. China didn't need HK. They did not want a western-aligned population of 7M people within 40km of its borders and instead decided to deal with them with a heavy hand.

I think China played their hand too soon and the west is waking up to it.
Litmus test for honesty: replace the US or whatever EU country an article like this is targeted against, replace it with China or Russia. Check how likely is the author would still stand behind it.
Most recently created (I'm counting 20 years as recent) major languages do require or suggest that you specify the namespace a symbol is from if it isn't local. Off the top of my head, Javascript/Typescript, Python, Go, Java, I think it's good practice in Ruby but I'm not positive.

I think C is the only major language I can think of off the top of my head that doesn't suggest namespacing symbols.

> Asking the programmer to make a manual list for you really isn't reasonable, IMO.

I prefer the clarity, it's worth my time. In the same way that most of the modern tooling will handle resolving which symbols are from which packages, most tooling will also handle adding imports for you if you give it a namespace. I just have to carry the mental load of remembering which package has the symbol I need. It's not an issue most of the time because I usually either know the library well enough that I know the symbol and thus the package, or I don't and I have the docs up on a screen.

There are insidious ways both that and the import all resolution can fail. One is if the symbol exists in more than one package. Then all of a sudden the ordering of your imports matters, which I despise. Another way the __all__ imports can fail in weird ways is if you upgrade a package and it stops exporting a symbol you use. Namespaced symbols will start throwing errors that the symbols doesn't exist in the package. __all__ imports mean you now have to figure out where that symbol even came from originally. You can check what got upgraded and go backwards from there, but it's going to confuse junior devs and your DevOps people.

There might also be performance implications. I don't know if Python has the ability to avoid parsing unused parts of modules or not. It's probably generally negligible unless you're writing small CLI tools.
I hear this a lot, but Dunbar's number is 150. There are about 68 million people in the United Kingdom right now and 308 million in the United States. Dunbar's number looks to me as something you can apply to village life, or bands of cavemen, but not any national structure from the past few hundred years. Something else must be going on when we move from thinking about "Dave from down the road", to "I identify with citizen X who lives 500 miles away that I've never met, but I don't identify with Non-Citizen Y who lives 501 miles away on the other side of that fence"
Tesla Model Y efficiency exceeds early-production Model 3
> if an attacker can tamper with the data they can probably just create a new hash at the same time

That's true for ordinary databases, but this was developed for a blockchain and uses a Merkle hash tree.

An attacker can only tamper with the data and create a new hash for a data item by also creating a new hash for every node up to the root of the tree. In a blockchain context, even that isn't enough, they'd have to modify the blockchain nodes as well, as I presume they periodically record tree root hashes.

The hash tree gives it some other interesting features too. O(n) diff time, where n is the number of changes output in the diff, is probably due to having a hash tree.

The fast diff would also work with a non-cryptographic hash, but it would be considered not quite reliable enough against occasional, random errors. With a cryptographic hash, for non-security purposes we treat the values as reliably unique for each input. For example, see Git which depends on this property.
The main confusion probably comes from the name Oauth, which seems to suggest that it is about Single Sign On/authentication, while in reality it's about granting site A access to your data at site B.
Does anyone know of an embedded key-value store that does do versioning/snapshots, but doesn’t bother with cryptographic integrity (and so gets better OLAP performance than a Merkle-tree-based implementation)?

My use-case is a system that serves as an OLAP data warehouse of representations of how another system’s state looked at various points in history. You’d open a handle against the store, passing in a snapshot version; and then do OLAP queries against that snapshot.

Things that make this a hard problem: The dataset is too large to just store the versions as independent copies; so it really needs some level of data-sharing between the snapshots. But it also needs to be fast for reads, especially whole-bucket reads—it’s an OLAP data warehouse. Merkle-tree-based designs really suck for doing indexed table scans.

But, things that can be traded off: there’d only need to be one (trusted) writer, who would just be batch-inserting new snapshots generated by reducing over a CQRS/ES event stream. It’d be that (out-of-band) event stream that’d be the canonical, integrity-verified, etc. representation for all this data. These CQRS state-aggregate snapshots would just be a cache. If the whole thing got corrupted, I could just throw it all away and regenerate it from the CQRS/ES event stream; or, hopefully, “rewind” the database back to the last-known-good commit (i.e. purge all snapshots above that one) and then regenerate only the rest from the event stream.

I’m not personally aware of anything that targets exactly this use case. I’m working on something for it myself right now.

Two avenues I’m looking into:

• something that acts like a hybrid between LMDB and btrfs (i.e. a B-tree with copy-on-write ref-counted pages shared between snapshots, where those snapshots appear as B-tree nodes themselves)

• “keyframe” snapshots as regular independent B-trees, maybe relying on L2ARC-like block-level dedup between them; “interstitial” snapshots as on-disk HAMT ‘overlays’ of the last keyframe B-tree, that share nodes with other on-disk HAMTs, but only within their “generation” (i.e. up to the next keyframe), such that they can all be rewritten/compacted/finalized once the next keyframe arrives, or maybe even converted into “B-frames” that have forward-references to data embedded in the next keyframe.
There's a "but America" comment in all of these threads, usually more than one. It's boring and played out. I just downvote and move on.
The article briefly mentions that the Implicit Grant is a less secure and more simplified version of the Authorization Code grant, but then it doesn't elaborate (or it's possible I missed that bit). In an introductory article such as this, I think it's important to explain why it's less secure -- otherwise the Authorization Code grant seems like an unnecessary complication.
This is what happens when Authoritarians ask you to push their agenda exclusively and you dont follow along. They open up BS investigations in to your company to harass you.
Authoritarians need to realize that they are temporary. Google will outlast them all.
Re TheButlerian, it looks like all their recent comments got downvoted and so their account was closed.
Facebook also pushes the Authoritarian Agenda more readily than Sergey and gang.
How do transformers handle with truth tables, logical connectives, and propositional logic / rules of inference, and first-order logic?

Truth table:
https://en.wikipedia.org/wiki/Truth_table

Logical connective: https://en.wikipedia.org/wiki/Logical_connective

Propositional logic: https://en.wikipedia.org/wiki/Propositional_calculus

Rules of inference: https://en.wikipedia.org/wiki/Rule_of_inference

DL: Description logic: https://en.wikipedia.org/wiki/Description_logic (... The OWL 2 profiles (EL, QR, RL; DL, Full) have established decideability and complexity: https://www.w3.org/TR/owl2-profiles/ )

FOL: First-order logic: https://en.wikipedia.org/wiki/First-order_logic

HOL: Higher-order logic: https://en.wikipedia.org/wiki/Higher-order_logic

In terms of regurgitating without critical reasoning?

Critical reasoning: https://en.wikipedia.org/wiki/Critical_thinking
Given the Mozilla is turning on the developer network, discontinuing RD in to the browser space, and focusing on "other products" like VPN, Pocket, and other services I am left to wonder if there is a future for Firefox at all

Dev Tools is dead, Servo is Dead, MDN is dead, what is left.

The current administration of Mozilla seems to want to turn it into a "consumer services" company focused instead of a browser developer. I am wonder how much longer before they drop the pretense, shut down the foundation, and change their mission statement

hell I would not be surprised that with in 5 years they do not fall in line with what Microsoft called for [1] a little over a year ago and just make Firefox another Chromium based browser...

[1] https://www.zdnet.com/article/microsoft-guy-mozilla-should-g...
The circumstances of Britain's original forced takeover and colonization of Hong Kong in the Opium Wars are the greater evil to me. Righting that wrong after so long was always going to be painful.

By analogy: a violent drug-dealer shoots you, robs you, and then kidnaps your child at gunpoint. Years later, you manage to have the child returned, but in the interim they have been taught by their captor to hate you and resist rejoining their family. What do you do?
When I made a docx generator, I understood the 14000 page ECMA spec was barebones and I had to reverse engineer the output of MS Word to figure out the XML tags and attributes.
Well, wasn't there any other more informative link than a tweet?
The b and t files are the bottom and top halves of the 9 "chunks" of the decoder above the main microcode ROM. The l* and r* files are the left and right halves of the four horizontal slices of the main ROM. I split them up that way because bitract needs the bits to be regularly spaced in both the horizontal and vertical directions.

Thanks - glad you enjoyed it!
This is very helpful, thank you for the context.
> Did you spend any significant time working with C#?

I have no experience with it at the corporate level. There, I have seen, it mixes a lot with .NET. So, I guess that the corporate equivalent to Java is "C#/.NET".

I spend some time several years ago with C# in Unity3D, thou.

I really liked the C# language. I found the Auto-Implemented Properties a neat compromise between encapsulation and verbosity (Verbosity has no value if does not add information).

Java is trying to be everything to everyone and that is a mistake. I liked Java more in the past, and I would have added just a few things from the past iterations of the language (e.g. Modules is a good idea that actually simplifies the language and moves much code to "frameworks" instead of being part of the core language).

C# seemed more focused on its initial style were Java is stretching all over the place.
It's Past Midnight: New Beginnings
Why wouldn't it? It's the #1 thing people associate with it as a personal experience...
I'll add another one, if you have a file dialog open, hit Command+Shift+G to open a dialog that let's you type in the path. Useful if you are going back and forth between terminal and some GUI app and some path is in your clipboard.
Tour of C++ by Bjarne Stroustrup as others have mentioned.

Effective Modern C++ by Scott Meyers (esp. for the chapters on smart pointers).

Arthur O' Dwyer's "Mastering the C++17 STL"

David Vandervoode and Nicolai Josuttis etc.'s "Templates the Complete Guide"

The first chapter of "Elements of Programming" by Stepanov, and maybe the rest if you want.

I think also, just kinda glancing over the spec.

Bjarne's paper on the evolution of C++ from 2006 to 2020 is also important I think: https://dl.acm.org/doi/10.1145/3386320

As for talks,
https://www.youtube.com/watch?v=XS2JddPq7GQ is great for value categories and move semantics

https://www.youtube.com/watch?v=St0MNEU5b0o&t=6s also move semantics, and also part 2 of that if you want

I'll add more talks here in a bit!

And honestly if you've liked C, you can get far by just starting with that then slowly adding things you want. I think the first things one may end up reaching for are std::vector / std::string etc.; then being able to attach methods to types, then some templates, some auto, some lambdas. The old vtables / RTTI approach I basically never use anymore.
Yah it's perpetually on my todo list to learn to use Alfred for more things, like using its built in file browsing more. It would be nice to have Alfred workflows set up for more things like switching Chrome tabs and Discord channels.

I do use it a ton for launching apps and quick calculations, but Spotlight can do that with a bit less polish.
Most of the West wants to appease China. What response are you talking about. It's not standing in front, that's for sure. EU silence is deafening, except for some weak, mild comments here or there. China's diplomacy barks back, and EU commissioners become silent.
I’m afraid it’s inevitable. If there’s a large enough audience, someone will be willing to pay to market to them. Almost no business will be able to say no to the money.
Have you tried edibles? Dose can be controlled and I feel like it’s a much more mellow high that builds slowly over time.
I’ve been using it quite successfully in a large OpenResty project.

While you’re right that there aren’t any docs on working with any of the 3rd party projects listed in the homepage - I found that it was pretty straight forward to use as a drop in Lua replacement by examining the compiled Lua from the online REPL. I was surprised how clean the Lua output is. There is really no magic here. I believe one of the project goals is to stay as close to Lua semantics as possible. Basically just lisp flavored Lua.

In my project I just use the compiled .fnl files as I would any of other .lua file.

Is something specific you’re getting stuck with? I’d be happy to try to point you in the right direction.

It’s really nice! I encourage you to give it another try.
My wife did. It’s a thing. I had no idea where they came from but I assumed it was either a scam or a practical joke by a friend. When I wasn’t the latter I decided it had to be a scam.
Adding to this, the Chrome (83+) and Firefox (81+) developer tools both do a reasonable job at the simulation, using the method of Machado et al. (2009) [1].

Unfortunately, the linked to simulator, like many of the online simulators, does a very poor job. When simulating protanopia, reds should appear darker, due the lack of L cones. However, many simulators incorrectly display red as bright green instead.

I've also written a color picker that uses the Machado et al. method to enforce CAM02-UCS minimum perceptual distance for normal vision and color vision deficiency [2].

[1] https://www.inf.ufrgs.br/~oliveira/pubs_files/CVD_Simulation...
[2] https://colorcyclepicker.mpetroff.net/
Sandboxing Python used to be and still is hairy and very hard (it requires intricate knowledge of CPython, because you are going to inspect the AST for unwanted things and do some other relatively low-level stuff) and Python is also a pretty big dependency (~5-10 MB). I think many recent-ish additions to Python may make sandboxing easier (e.g. audit hooks, subinterpreters), but it's still hard and messy.
I think my objection along those lines, if I were searching for one, is not with the quality of what is being added but with the fact that it takes effort to keep up with them.

C++11 introduces hugely useful stuff. I would much rather have it than C++03, c++98, etc.

Whenever I come across things introduced in 14 or 17, I usually evaluate it and say, that addition makes sense, maybe it should have been there sooner. But I am not actively seeking out that information. So I am never up to date.

It is a big contrast from a few decades earlier, where you would expect to use very few new features from the standard for a period of many years. That is also the expectation the C standard gives: it hasn't changed substantially since 1999, and even that you could call relatively minor since 1989. But I still think they are doing a good job with modern c++, even if these old expectations are no longer the case.
Can’t they just ban the sellers then?
BTW guess who sanctioned war crimes investigators for looking into possible war crimes of their troops?
You want peace and justice in the world, then start judging everyone by the same standards.
>Trending towards authoritarianism? It seems like the article is reasonably accurate

You seem to have taken an observation of authoritarianism as a de-facto challenge to the accuracy of the reporting.

That's an interesting thing to do.