skysight-inc/HackerNews huggingface dataset:
Practice. A lot of practice, and that practice has to be challenging. Be constantly trying to invent new things that are amazing but ensure your code is secure, fast, simple, and easy to read. Constantly challenge yourself and question/revise your approach.
The invasion of the capital was an attempt to stop the legally mandated processes that allow the peaceful transfer of power. The attackers were intent on hanging on pence and others as evidenced by their chants and the equipment they brought.

The rioters cannot honestly be lumped into the Democrat, blm, etc groups as different groups plainly held different objectives. I think the best explanation for the riots is simply revenge against people that sit comfortably ignoring the disaffected cries for help.
Adobe Acrobat Online
That makes sense, but to me that just sound like an algorithm, albeit an extremely stupid one (only show the latest pieces and bury the rest).

I want it to be smarter.
I built a collaborative list of resources for developers
Hi everyone!

I'm excited to share with you what I've been creating, but let me start by explaining how Dev Resources came to be.

DR started as my personal compilation of resources for development. After a few years of (messy) bookmarking, I decided it was time to put everything in one place, categorized and most importantly, available for everyone.

Since its release (October 2020), many devs have contacted me to add their own creations and favourites, increasing, even more, the number of resources.
With that said, you can already guess: DR has all the things I like and find important for software development, but it can also have what you want.

Here's a brief of what you can find there:

tools
assets
learning
jobs
product offers
and a lot more

But you know what makes it even better?

The resources list is now open source, so everyone can contribute and be a part of it!

I hope that together we can create the biggest repository of resources for developers, so we can easily find what we need, share our creations and stay updated with new releases.

There's more coming:

newsletter with trending resources, deals and updates (already on the making)
⬆ upvoting to help amazing projects stand out
bookmarking for a more personalised experience
communication between devs and makers
and whatever else you guys find useful, after all, Dev Resources is made from us to us

I launched it on Product Hunt today, and I'd love your feedback on it. It's my first time launching something there, and I've postponed it many times, always trying to get some more things done, but I think the current state is already good enough for a launch.

Anyway, I'd love to hear what you think of it!

Dev Resources: https://devresourc.es
Resouces list and public API: https://github.com/marcelscruz/dev-resources
Product Hunt: https://www.producthunt.com/posts/dev-resources

That's it, have a nice day and enjoy Dev Resources!
https://monkey.org/~provos/ Head of Sec @ Stripe, former Google, finder of websites with malware. And YouTuber blacksmith. The guy is bigger than life.

https://www.youtube.com/user/mintwart
Wouldn’t it be cool if an architect made an entire house into their grave? Imagine if they buy some plot of land, get buried there when they die and arrange to have a home built right on top with their grave site being at the center of the home, where they are commemorated by some statue or something. And sometimes when the sunlight hits just right it will be like you can still feel their presence in this home they designed.
Feel the same way.

Can we please come together and form a sort of tilde club on IPFS oder the Dat protocol?
Like "The Well" for today, with intelligent, respectful conversations in a format that is not as toxic as 140 characters and no sane threading?

So that the protocol itself will filter away the eternal septemberists?

And can we please make it uncomfortable for the "I need total anonymity for my free speech conspiracy BS", so that we also keep these nutcracks away from our community?
Person weakening/subvert crypto for the NSA now runs Applied Crypto for Amazon
Here is an alternative. None of them are perfect but for spur of the moment comparisons, a consistent "general" CPU benchmark should probably work well enough.

If it matters, i.e. purchase/usage decision, you really should dig into specific benchmarks that reflect your use (e.g. the actual application or game).

https://www.cpubenchmark.net/laptop.html
Most important part from the abstract:

> Therefore, reading white text from a black screen or tablet may be a way to inhibit myopia, while conventional black text on white background may stimulate myopia.
Great, but ... why ? How does this benefit me?

The code examples in other comments seem to have variations of :

return (circle, rectangle) -> circle.apply(x, y, r);

Why should my code for circles care about rectangles? This looks terrible to me. What am I missing?
Show HN: English Words Finder – an iOS app to enrich your English vocabulary
Golang Utility
Golang utility library, With additional functions such as JavaScript/Python!

url: https://github.com/xjh22222228/gosh
I suspect that AllegroCache accepts arrays with rank>=2, although I never got around to trying it out. (At the very least its documentation has nothing to say about any limitations on what kinds of arrays can be stored, so I'm assuming it stores all of them.)
Show HN: Switch to Signal – Profile picture generator
This strongly resonates with the idea of a pure authentic self-expression. In part, bigger companies and the system in general take this away, because of their underlying incentives - “scale quick and break things” instead of just “have fun building something valuable”. I think this is what every side project / idea should be about in long term because that’s how it starts anyway, it’s just transformed into this artificial process full of vanity metrics later on.
Am I correct in assuming that uploading it online for others to see or displaying it for personal non commercial use would be covered under the Fair Use Doctrine?

Also, how does it work if a whistleblower gives a journalist letters that they received from someone else? Is the journalist not allowed to publish them in an article?
Crimes need to be handled by the justice system.

That is part of the a-solution for people that use Amazon and want to feel better about themselves.

But when corporations commit crimes, the people inside responsible need to face justice, not just making whole the harm they have done.

These are real crimes and need to be punished. A few people voting with their dollars does nothing.
Unfortunately I am stuck doing them one at a time, and every image is located in a different folder. At least that’s how the official Pytorch Imagenet dataloader is reading images for training.

You do make a good point though: my reads are not 4k, they closer to 256k on average, but still, they are random reads. I’m not sure how much faster those get with size.

And I’m pretty sure doing writes in parallel with those random reads makes things worse, but ok, let’s ignore that.
The problem with young internet entrepreneurs
(Sorry for the late reply, been busy at work)

> The docs and community in roblox and factorio fill in for the deficiencies of the language. Try using lua without support frameworks. Modding ns2 is a nightmare with zero docs and trying to reverse engineer in a terrible debug environment. Lua just doesn't stand up by itself.

Yes, Lua is VERY bare-bones and highly dynamic (why it is a popular choice for embedding) so anyone using it for modding is required to invest a bit of time to actually document it.

> You are only discussing the successes. Even built for purpose, game building applications like Core fail miserably to make development easy enough off the back of lua. Far cry 1 had lua scripts that went nowhere.

Exactly, this applies for all games and much else in society. In this case you showed a big reason why modding for these games failed is that they really only did the scripting to finish the game but didn't document it or add hooks to make it reasonable for outsiders, but since there are successes that is probably more on the teams rather than the language itself.

> What love2d games?? The tech demos and hobby projects listed on the website??

The 1500 or so games on itch.io is a good example, now many of these are probably crap but if you look at the top rated there seems to be some nuggets there.

https://itch.io/games/tag-love2d

> For the three or four big successes there are a lot of obscure failures.

The same applies for any editor/framework/engine/language , the thing is that Roblox alone is such a big platform these days with the top third party games (100% lua) are big enough to feed multi person studios apart from Roblox itself heading for an IPO.

I personally don't even really like Lua that much (1-indexing smells), but i can still accept that it is capable enough to run a lot of things.

In many ways it's more powerful than JS while sharing other semantics and we're not escaping JS either these days due to the web.
What Google department do you work for?
If you extend to include artists, there's also the gravestone for Patrick Caulfield in Highgate which comprises the 4 large stylised letters D E A D "pierced through a sleek slab of stone, a stark statement of fact"[0].

[0] https://highgatecemetery.org/visit/cemetery/east
Introduction to Programming with ZIO Functional Effects
Perhaps you might have become familiar with the "bastard operator from hell"? (BOFH). I was very popular around the sysadmin culture back then. Here is a fine sample of a story http://www.dit.upm.es/~jantonio/personal/sysadmin/operator_1...
> Are these shaders or on CPU or manually designed?

Most likely hand drawn by the individual pixel. Even "computable" effects like antialiasing or dithering are mostly done by hand.
AnandTech Bench is a decent resource. https://www.anandtech.com/bench/
But in this case all the actors speak English, you don't need a whole new cast. Plus they put on that Norwegian accent that makes it great for English audiences.

It's a great show that manages to be both about Vikings and modern Norway at the same time.
I used to think my i5-780M CPU was a 7th generation CPU, and thus should be very fast
I don't think this would stand up to scrutiny if the EU was willing to really enforce the GDPR (unfortunately they are not).
Or if you really want to open up a can of worms - the firebombing of Dresden in which (it's suggested) 25,000 people, mostly civilians, died as a result of an attempt to intimidate/frighten the German population. But to take an overview, we should then return to the question of Hiroshima and that second bomb on Nagasaki. How far is one prepared to go to win a war?
What do you mean "python install[s] globally and only globally"? That's not true. You can instruct pip to install to any place you want.
> are we going to be nuking the __module__ folder like we nuke node_modules every now and then ?

Two thoughts:

1. Part of the good aspect of the node_modules is its nukeability. It's a good thing that we can blindly nuke and `npm i`

2. With node and react (I have 5 node projects and 2 react projects that I work on regularly), I really rarely have such error that I need to nuke the node modules. `npm i` to update dependencies and restarting the server because it got stuck in a weird state is usually the solution. I nuke a node_modules maybe every 3 months, probably less. On react-native, yeah it's still very much a thing though
Any Snowflake developers reading this - the current snowflake-connector-python is pinned to 0.17, almost 1 year out of date now. Would be great to get that bumped to a more recent version :-)
I used to read bofh archives and userfriendly.org all the time back in the day.
I would actually go one step further and say 80-20 is more like 95-5. Spend enough time in corporate environment and this will become so clear. That’s the downside of service/information economy.
But it's possible they did not get online until much later.

My dad did get us dial-up internet in 1995, but he was a uni professor doing stuff with computers for a long while (we've had a Novell Netware network at home in 1993).

But basically nobody I knew was getting online too, and BBSes were still a thing for older beards.
How is this different or better than reveal.js https://github.com/hakimel/reveal.js?
[0]https://en.wikipedia.org/wiki/Metcalfe's_law

The link was broken from a typo.
Same. One time we were out at a restaurant and having all had full meals a couple of us were getting some extras like milkshakes when the Waitress came over to tell us in no uncertain terms that she needed the table back.
> The knowledge base should be primarily in your head.

Making it easier to store and recall useful information, without using your brain, is a good thing that has fuelled progress in recent decades.

The impermanence of the internet requires you to store useful information in your brain (you can't guarantee that it will be stored for when you need it), when really it would be better stored externally.

The fact that the internet is impermanent encourages you to treat it as something you need to siphon information from (jam all the data into your head), rather than a safe store that you can depend on.
" So if you're going to support the "no tips" agenda you'll have to put in the additional effort of looking up wages to decide Starbucks is better than Tim Horton's"

I just....don't see why. I honestly don't get an argument why. When you get a plumber do you check how much they earn per hour and decide accordingly?

Like seriously, it's the biggest scam the restaurant industry has managed to pull off - they are making customers a) worry about this stuff at all, even though you wouldn't for pretty much any other industry b) make them feel bad for not tipping if the company pays poorly. That's incredible. And it's so incredibly condescending towards the workers too "oh you poor slave, you are paid so little, I'll give you some extra cash so you can actually live like a normal human being". There's probably some kind of syndrome that fits this situation.
As I mentioned another comment, expectations.

Waiters in Europe are not necessarily slow or less knowledgeable, and waiters in the US are not necessarily fast or knowledgeable. What US waiters are, is visibly polite (obsequious, even?) and ever present.

In Europe it's perfectly normal to have a rather rude waiter who takes your order quickly and your food not long after that. They can also be efficient and know the menu in detail, albeit being colder when you discuss with them.

The shock Americans experience is probably due to the frequent stone faces of waiters in Europe.

That's what real people look like when they're not conditioned to always smile and instead they smile when... they feel good :-)

Say no to PanAm smiles :-D
It’s oddly comforting to know Chinese social media and the influencers it creates seem to be just as insufferable as they are in the U.S.
> vocal about not policing any of the speech there.

It's also been a lie from day one. Parler policed things that didn't fit into their definition of free speech. Just like Twitter et al.
A non-Modernist example:

Mimar Sinan, the preeminent architect of peak Ottoman Empire, is buried in a tomb of his own design.

Sinan died in AH 996 (1587-88 CE) and is buried in a tomb in Istanbul, a türbe of his own design, just to the north of the Süleymaniye Mosque, across a street named Mimar Sinan Caddesi in his honour. He was buried near the tombs of his greatest patrons: Sultan Süleyman I and Sultana Haseki Hürrem, Suleiman's wife. Above the iron-grilled prayer window of his tomb is an epitaph written in Ottoman Turkish by the poet Mustafa Sai. It gives the year of his death and records that Sinan built 400 masjids (small mosques), 80 Friday mosques and the Kanuni Sultan Suleiman bridge at Büyükçekmece.

https://en.wikipedia.org/wiki/Mimar_Sinan#Death_and_Legacy

https://en.wikipedia.org/wiki/File:Mimar_Sinan5.jpg
Thanks for your nice comment. I would definitely keep it on mind.

Thanks
Ask HN: Why don't you update your product's pricing more often?
The benefits of regularly updating, raising, and tweaking the price of your product often are huge yet it seems that most online businesses don't do it that often. Why is that?
Nobody is asking for 10000 Mozillas?

Doing the work researching a cure for cancer is much more practical with 1 Mozilla.
I have my phone set to dark mode. It is clearly the way god intended smart phones to work --- increased backlight and battery life.

Unfortunately, god deviated from this plan once he heard the devil preferred dark.
So being strictly anti-devil, he designed the rest of the universe around the production and detection of light, not dark. The human eyeball got caught up in this anti-pattern too.
Yäss! Gung Ho!

https://youtu.be/xhdcnlphz10?t=97
I use https://play.presenta.cc/ and I like it a lot.
Btw:I use it online, directly on that website...
That might be a bit confusing for native English speakers given the 'albeit' conditioning.
Tell HN: Make sure you haven't been shadowbanned
Not sure when “a few years ago” was, but in 2013 (“4th gen”) Intel had more far than just “M” as a suffix for their consumer CPUs. They had at least EC, EQ, HQ, K, M, MQ, R, S, T, TE, U, and Y. Various generations between now and then have a variety of different suffixes, but never just “M” so far as I know.
This does reflect the books. If they manage to continue, it'll... change in tone.
Personally, I feel the material for season 4 and 5 was indeed among the weakest in the books.

I hope that you will continue to watch, so we get to see how they do the rest.
I used an X-Acto knife to slice it into 3 volumes and rebound them.
Note how, in the graph, even the worst-performing SSD stays above 500 MB/sec sequentially for an indefinite amount of time, while the parent post claimed SSDs couldn't even do 200–400.
I send myself messages in Slack all the time so I don't forget something.
-m is the replacement for console scripts. Well behaved cli should define a _ _ main _ _. Py

Pytest, pylint, black, pip, poetry, mypy all have one.

Jupyter one is buggy.
Whatever China does lately seems to be tailored to inch its society toward more expansive mode and military values. A lot of nationalism in the curriculum, the "wolf warriors" ideas etc.

I do not think they are doing this for shits and giggles. They invest a lot overseas and must be aware that one day, one of their client countries will rebel and will need to be subdued militarily to protect the investments and dissuade others from going down the same road.

The question is what is the rest of the world going to do. So far we seem to be mostly ignoring this yet-soft development, maybe because the idea of having a Cold War 2.0 with a major industrial power is really uncomfortable.
$9.5M, for a web browser, that doesn't even exist.
reveal.js is mostly aimed at creating slides using HTML, it has markdown support for writing the content, but this project seems to aim to create the entire presentation from markdown. I'd compare it to deckset - https://www.deckset.com/
It also means that the business model is still an advertising-funded model - just indirectly advertising-funded, via Google.

All the pressure to protect the advertising industry and disseminate advertising will still be present.
Reminds me of a Ponzi scheme, but at least the dog face is cute.
It's quite easy to achieve: have women to be manly for.

One child policy ruined the life of hundreds of millions of men.
Happy to see PEP 582 gaining traction, the last attempt I saw in this space was https://github.com/cs01/pythonloc.
The code you've selected is not "for circles", per se. This is classic double-dispatch -- the function itself represents a circle (via the `x, y, r` values it closes over), and it chooses which receiver to invoke based on its identity. (The parameters in the selected function may be better named `onCircle` and `onRectangle`.)

If you just have a Shape, and you need to do something specific depending on the kind of Shape you have, you need some way to tell what kind of Shape you have. You can use `instanceof` and casting, but there's no guarantee that you've handled all cases(^). Moreover, it's painful in some languages (like Java) to extract the subclass-specific fields, as you need to rebind the value to a new variable of the right type first.

The Visitor pattern is a classic object-oriented solution to this problem, typically using double dispatch. The Shape itself knows what kind of shape it is, so rather than asking it what type it is, you provide it a set of _strategies_ (no relation to the Strategy pattern), one for each type of Shape. The Shape doesn't know what you want to do with it, so it calls you right back, invoking the circle- or rectangle-specific logic depending on what kind of shape it is. (Hence, double-dispatch.)

Gabriel (OP) observes that the Visitor pattern is exactly the Boehm-Berarducci encoding of a sum type. The Visitor pattern is very common in OO programming (see, for instance, abstract syntax trees), so the fact that we're so often using an encoding of a more direct concept is worth remarking on. I know I'd much rather use sum types in general than use the Visitor pattern.

(^) As an aside, I've never found "Shape" to be a very convincing example of sum types, as it's much easier to imagine as an open family than as a closed family. In an open family of shapes, there is no "all cases", and instanceof/casting is inappropriate from the beginning. I think object algebras (see my other comment) give a more motivating class of examples of closed families, including ASTs.
We're sunsetting Dribbble's iOS and Android apps
Waiting for PostgreSQL 14 – SEARCH and CYCLE clauses
> why are people so surprised?

Because the DTK was handled completely differently by Apple during the PowerPC to Intel transition.
What is this sorcery?

#include <datatype99.h>

datatype(
BinaryTree,
(Leaf, int),
(Node, struct BinaryTree *, int, struct BinaryTree *)
);

What kind of preprocessor black magic can you do so that this code compiles? I don't dare to open the file datatype99.h lest it casts a dark spell on me.
It’s cool to see building in public become mostly mainstream. I’ve always felt like transparency was a far better approach than hiding behind a curtain. That still runs counter to the way a lot of traditional and VC-backed businesses operate.

I’ve taken to building my current project (https://perligo.io) in public on Indie Hackers as I’ve pulled back on my Twitter use. It’s a decent enough place to share what you’re working on.
I love markdown. I hate making slide decks. I’m looking forward to comparing this to similar tools I’ve tried. In a perfect world I would be able to `brew install fusuma` and not need node, but that’s a small thing. Thanks!
You caught me, for me that means col-md with Bootstrap ;-)
Isn’t the whole point of bonuses to make a position more attractive, by offering a possible total compensation that’s higher than would be financially feasible/responsible if it was all guaranteed? So might be a worthwhile trade-off for an employee, depending on their appetite for risk.

Unless you think it’s a scam and most companies could afford to pay you the higher salary but decide not to. I’m not sure that would be very sustainable though.
Because it's hard and a small issue can make your current customers angry (especially if your product isn't a SaaS and you lower the price for new customers).
It's more akin to one repo, where your package.json says "MIT" but your LICENSE.MD says "commercial use prohibited."