skysight-inc/HackerNews huggingface dataset:
We've made plenty, so supply shouldn't be an issue. Like the zero, we're giving it away for free on the front of a magazine as well. - https://hackspace.raspberrypi.org/issues/39
Discussing about 0 vs 1 indexing is like questioning the key layout of a piano. Sure, one is probably easier to learn than the other but in the end its an interface everyone is used to.
GPIO = General Purpose IO[1], can be used for bitbanging or via dedicated peripherals like I2C, SPI etc.

PIO = Programmable IO, a peripheral unit with programmable state machines that manipulate GPIOs. Can be used to implement SPI or similar protocols.

The PIO looks quite interesting, see the datasheet[2] for more details.

[1]: https://en.wikipedia.org/wiki/General-purpose_input/output

[1]: https://datasheets.raspberrypi.org/rp2040/rp2040_datasheet.p...
There are two hard problems in computer science: 1. Exactly once message delivery, 2. Message ordering, 1. Exactly once message delivery.

I would like to add to this, fuck you confluent with all your lies that you sell to gullible idiots.
You can click the stretch option at the top.
This is an open source project: https://github.com/sean-public/RecipeFilter
No, he did't deliver the joke fast enough.
This is pretty cool, but missing the ever crucial tibialis anterior muscle!

Another similar website is: https://exrx.net/Lists/Directory
I agree with you. From a freedom perspective, there's no difference between a) firmware permanently burned into the device ROM during manufacturing b) updateable firmware stored in flash on the device c) firmware stored somewhere else and uploaded to the device by the driver upon initialization.

Taking the stance that it would be even nicer if we had the source for the firmware, and thus option (c) above is evil whereas (a) and (b) are fine, is just inconsistent.

And if one takes the stance that all of (a), (b), and (c) are evil, where do you then draw the line? Should we demand free Verilog (or whatever) sources for all the chips in the system?
Exactly what I need!
I wish we could pass something that basically said “allow upzoning and build X amount of new housing - if you refuse fine, but then you must pay market rate property tax on your property”.
CompCert doesn’t guarantee these two functions will work. Thanks, didn’t know about that project.
Lives: the animals behind the products we consume – photo essay
Yep. I block remote fonts by default and for a moment it all seemed very weird.
Yep! On of the things I point out most frequently in code reviews are things like this. However, null is an imperfect system for capturing such state. It's not self-documenting, and it breaks down when you have more than 2 states to represent.

Languages with Sum Types represent this much more elegantly with arbitrary numbers of variants and force you to check which one you have before accessing the more specific data (e.g. the filter) inside.
When all you have is a HammerFactoryImpl, every problem looks like an INailIterator
Thanks for the comment!

I get the impression that people in Asia (well, I only have limited experience of Shanghai and various cities in south-west Japan) are quite aware. I saw a lot of air purifiers (for instance in hotels) in Japan. And in Shanghai they showed PM2.5 predictions as part of the weather forecast. And I noticed that a lot of people know about formaldehyde (a specific chemical / VOC that can be problematic in indoor air). Although, an old guy I met in Shanghai told me "I don't really like air purifiers, you have to clean them all the time, I rather just open the window" ;)

But in Germany where I live, or Sweden where I'm from, few people I know ever thought about this. I suppose the air is just too good for people to bother thinking about it. But as observed in https://sciencenordic.com/chemistry-denmark-environment/our-... it might still be worth spending a few thoughts about it:

“Our indoor UFP levels are close to those in Beijing apartments but the pollution sources are completely reversed,” says Bekö, explaining that 70 percent of all UFPs in Beijing are from outdoor sources while in Denmark it’s the other way around.
(they looked at indoor pollution in Copenhagen, and UFP stands for ultrafine particles (here defined as "Ultrafine particles (UFPs) are particles with a diameter of less than 100 nanometres.", so kind of PM0.1))

I would be really happy if I could create low-cost air purifiers or DIY solutions (I have quite good success with a Pringles can made an air purifier to reduce PM2.5 ;) ). Not sure if that will happen, but, luckily others do it already: https://smartairfilters.com/

IKEA also have an air purifying curtain (https://www.ikea.com/us/en/rooms/living-room/how-to/purify-y...) at a decent price - but don't know how good it is and it won't work for particles, but just chemicals/gases. They recently also released an air purifier https://newsroom.inter.ikea.com/news/ikea-committed-to-make-... which is fairly cheap (49.99EUR/~60USD), especially the filter (HEPA H12) sticks out a bit to me just costing 4.99EUR (6USD) in Germany. Spontaneously, SmartAirFilters feels like a better choice for people that live where they sell it cheaply though.

You are still right of course, more money can give better stuff, and both IKEA and SmartAirFilters might still be way too expensive for many.
Message in whitehouse.gov HTML code: "If you're reading this [...]"
Yes you are right, I posted the wrong link. Here is the correct one:

https://nypost.com/2020/07/26/portland-protest-declared-a-ri...
In the long term relaxing zoning for high density doesn't seem to do much for rent by itself. Even very high density cities, when left to the free market, continue to see massive increases in the price of rent until people start moving out, such as Hong Kong.

Now of course, relaxing zoning is important and necessary, you can't have a city with single family housing. It's just not a sustainable solution.
> Let’s say my goal this year is to get to 10k MRR.

Monthly Recurring Revenue, if anyone is wondering.
Using FactoryBoy for testing?
the "tangerine" is a hybrid of what is also called "mandarin" in english[0] so the spanish (and italian, hungarian et al) naming actually makes sense.

It's pretty common to confuse the two plants.

[0] https://en.wikipedia.org/wiki/Mandarin_orange
Since it’s missing all the nutrients in the soil and only has those purposefully put in, in the long run I suspect it will be optimized for profit and we’ll get very poor food as a baseline, worse than the one grown in soil on average.
Oh, I agree with that - I just disagree with the cost centre view (most of my career has been in logistics which is traditionally a 'cost centre' while at the same time people complain about the service they get! In logistics there is a relationship between service and cost).

I spent a few years in IT as a Product Manager (or a similar role), and I viewed my primary role as protecting my team from the barrage of shit that I got, so that they could focus. This involved making sure I was politically the first point of contact and reducing back-channels (some are fine, but not ones that change functionality, involve significant work or are too distracting), placating the people requesting functionality or fixes by understanding how serious the dependency/issue was, triaging it and either placing it on the roadmap or saying no. We also had an engineering manager that could be the contact for specific bugs who could then triage and pass it on.
Toolz: A functional standard library for Python
It's not the metrics per se - but the metrics not being totally aligned with the required outcome.

Good project management means being better at finding the right metrics - or at least recognising that our metrics aren't good enough, often because we haven't all of the information - why are we hiring a new developer, why is this piece of software being developed etc.
Neighboring rights: Google signed an agreement to pay the French press
I did some micropython for a video series I made [1], and I have to say, it took me right back to the days of owning a ZX Spectrum - accecssing a REPL directly over a USB serial connection was very much like these machines, although I know it's not something that everyone thinks is a good idea...

I like the idea that the main interface to the device is to program it in some way or another, and I'm sure that was what led my generation to be as computer-literate as they are.

I'm going to order a Pico today!

[1] - https://realpython.com/courses/getting-started-micropython/
I could see how a universe with such rules could exist. But is it our universe? In the universe you describe, wouldn't we already have seen time travellers from the future?

The only explanation I can think of for why we haven't seen any, if we live in such a universe, is that we need to build an "arrivals hall" first, and that as soon we manage to do that, people from all over start popping in for a visit.
My personal favorite:

Knock knock.
“Race condition.”
“Who’s there?”
Thanks for noticing, you are right, i mixed the two events. The BLM rioters breached a court house in Portland [1], while the other side attacked the state capitol in Oregon.

[1] https://nypost.com/2020/07/26/portland-protest-declared-a-ri...
Visually they look similar.
When coding, some programmers mix functional and imperative. Others prefer not to: they believe in the separation of Church and state.
How this LED bulb works
What if one is printing the output of a function? Then one is left with reverting to positional formats. Mixing positional and named formats is less than robust. One of the common cases for function output is using pprint. As someone who has been using Python since 2.4 print formating using pprint is robust. Over the years I've found it a best practice to only use positional formatting so as to have the format string be stable when switching between usuing a variable or pprint of the variable, especially when debugging. So, I am not using f strings. Another thing is that as a decades long PERL developer I observe Python is becoming the new PERL in having fifty ways to do something. All of these ways will have small-to-large performance differences. Because of this then soon we will all have the Python Cookbook on our shelves to document them so one knows when to part ways with less optimal usages. It is always faster to print an unformatted list then a format string and in fact pylint will ding your code if logger uses a format string and not a list of strings and variables in print order. Then one begins to wonder if this is the case for logger then why not for every print statement? And thus Python is quickly degenerating into PERL code readable territory with each new version.
#define private public
Growth hacking.
C'est un administrateur système qui reconfigure ses variables d'environnement et paf le chemin.

I tell it like I am someone serious but a bit dumb who thinks it's really funny and is too stupid to see how dumb this is.

Only work in French and I set up the stage by being me at the beginning and telling it in front of programmer or it people and non it people so IT people have to confirm it's stupid and the joke is in how my personna thinks it's funny.

This makes me laugh.

A few usually believe I am serious.
Covid-19 infection prediction (Japan)
Show HN: DroidGraph, a GraphQL Client for Android
The usual advice is to do Starting Strength (little bit more technical, is a book) or StrongLifts. (little easier, is a website)

Both are focused on barbell compound lifts. There are many many strong opinions on what type of weight is best in what schedule, with many persuasive arguments backing them up. This is because you will get stronger and gain muscle mass if you eat at a surplus and do basically anything involving picking up a weight.

Meat doesn't actually care about the routine! Your triceps can't tell if you did six reps or seven. Just doing some kind of heavy lift is enough.
Vimtutor is free so you are the product.
They lost me at $10 a month. I would be interested at $5 a month, but $10... I'm just going to go without or even consider setting up my own thing with Matrix.
Great website!

Quick suggestion o biceps: all exercises there are upright, and have a horrible resistance curve - they provide almost no effort at the top of the movement. Try maybe seated dumbbell curls (leaning 45 degrees towards the back). Also cable curls, leaning slightly forward, with a low pulley.

For triceps, the overhead triceps extension (again with a low pulley) is a great exercise, very underrated - and one of the very few that works all three heads of the muscle.

For chest, cable flies also offer a very good resistance curve.
A bit of a segue, but this management by metrics goes beyond just revenue.

KPI, KRI, KCI, etc. Truly a heap of metrics that eat out the time of middle management, and consequently of the people down the hierarchical pyramid. It over-allocates resources towards resource management itself rather than towards products themselves.

There is a drive to justify your existence, and that of your fellow workers, when your company becomes large enough that it has bureaucratized and, moreover, acquired some form of legacy.

David Graeber in Bullshit Jobs mentions that two categories of BS were the box-tickers and the taskmasters. They are evidence of this management by metrics.

It's all about budget: gotta spend that hard-earned budget to find ways to save budget on your budget-consuming core products... to make sure your budget allocation is the same next month or year.
Yeah I wouldn’t even look at this with STM32 on the market. Much larger choice and plenty of different dev boards available.

You can also get FreeRTOS up on an STM board in 30 minutes and actually doing useful stuff.
This is a depressing thought to hear on a site titled Hacker News. Looking back at the past 20 years, I am quite confident it is just a matter of time before people get a couple drivers working fine on M1 systems (esp. considering Apple does not seem to be actively fighting this). I am sure folks will make it work considering the relative popularity of the device compared to all the esoteric devices that no one uses and Linux still supports.

Sure, documentation helps, but it is overrated--people get lots of things working by reverse engineering.
> One of the major advantages of the Fediverse right now is that trying to do this is harder

Even in the Fediverse, I think these folks would just make their own instance. I wouldn't be surprised in the least if an instance was made to represent the "marketplace of discussion". I just wouldn't want to join it myself.
Why are there no screenshots showing what it can do? I looked on the website and on the github but I can not find a single screen shot of what it can do. If you got to godot, unity or unreal sites there are many screenshot to be seen right on the first page.

I was curious enough to visit the solar2D pages but the lack of screenshot removed all interest I had.
And why stop this line of reasoning with our local star system? There’s no absolute reference frame.
Have a look at the Oz PL and its canonical textbook: https://en.m.wikipedia.org/wiki/Oz_(programming_language)
Japan Covid-19 Coronavirus Tracker
Oh nice, it actually has fully programmable USB device and host modes built in, as opposed to the basic USB-to-serial bridge in an Arduino.
I played with love2d, even got something playable out of it, this looks like a great weekend dive after a week of debugging something (and failing).

Too bad you have to use forked version for Linux.

EDIT: after looking into install.sh I think I will postpone. It looks quite invasive to my eye. Copies .so into places, links .so in /usr/lib, assumes Ubuntu when apt is present. Too bad. My system is a hot mess as it is. ;-)
> Hardcore libertarian views on HN have been largely quashed into irrelevance

Having seen a few threads recently (notably "Parler off AWS") where those views seemed quite exuberant, I'm not sure they've been quashed; maybe dormant until the right thread comes along?
Very nicely written article. Kudos to the Shipreq team for having close to 100% offline or local-first feature, is Shipreq utilizing automerge library to do that?

It's mentioned in the article that Go has a very fast compilation time and the same can be said of D language. The reason they are fast to compile because the languages' authors design the languages to be compiler friendly unlike C++. One of the main tricks to being fast to compile is by avoiding symbols look-up table.

For one of the feasible solutions, perhaps Petri net is better than graph. It is a generic state machine mechanism and here are a few examples of having a compiler design using Petri Net approach[1][2].

[1] ZINC: a compiler for
“any language”-coloured Petri nets, https://www.ibisc.univ-evry.fr/~fpommereau/publis/2018-01-01...

[2] Model, Design, and Evaluation of a Compiler for a Parallel Processing Environment, https://ieeexplore.ieee.org/document/1702471
That's awesome, seems like it could be really helpful for interfacing with hardware (or maybe a low power mode analogous to using the ULP in an ESP32?). Sidenote, that's one helluva datasheet, over 600 pages! Great to see such thorough documentation
Depends where you live. US has a lot of high-quality natural soil. Places like Israel and Saudi Arabia are much more limited by nature.
I give any antivirus vendor that uses browser add-ons a wide berth.

They are usually marketed to the user as protecting them from online threats but in reality are there to sell the user's browsing habits to who knows who.
Popular beginner, intermediate and advanced barbell routines are typically structured around the concept of Main lifts (most often: Squat, Bench Press, Deadlift and Overhead Press) and accessory lifts. (I'm not trying to explain this to you, an experienced lifter, but to others reading this post with less experience)

The program typically tells you how to structure and progression of the main lifts, e.g. when, how many sets, the rules of increasing/decreasing the weight etc..
However, many of those programs give the user freedom in choosing their accessory exercises according to some rules. Example: Do your main lifts, then perform x sets, y reps of an accessory lift targeting $muscle_group. The plan will typically make some recommendations for accessory exercises to choose from, of course, but the emphasis most often lies on the fact that they can be changed. The modification and individualisation is built into the routine.
Popular examples for this style of programming in beginner/intermediate plans are 5/3/1 variants or Greg Nuckols' programs.

So in short, I don't agree with a site like this in general lacking a target audience, I would consider myself advanced (~7 years of continuous strength training) and I still look up exercises from time to time nonetheless for multiple reasons, and I don't hold encyclopedic knowledge of every exercise for every muscle group.
I agree that it is bad advice for a beginner to go to such a site and just pick exercises "at random", but as far as I can see that isn't how the site advertises itself.
TI's PRU is a similar concept, but the PIO here is simpler. Parallax Propeller also has a similar flavor with lots of small cores doing different things. It's not a new idea, but the PIO looks like a nice balance between capability and complexity.

I'm in love with this documentation. It's not just prettier than other vendors' datasheets, it's also got lots of examples, links, tips, and explanations about the "why" in addition to the "how"
It would help if you'd ask Q's rather than assume you absorbed all the context & details from a short requirements outline.

The TMTP server supports replication to multiple clients per account, which enables backup. I note in the FAQ that servers may perform archiving (which is not the same as retaining all the traffic).

Any network information system could be compromised. Zillions of them are trusted. If you're alluding to E2EE, see the FAQ.

https://mnmnotmail.org/faq.html
Show HN: Wannahireme – All your job profile links in one place
Doable with many proxies in tax-heaven who acts like the real company board, holds virtual meetings etc. They create all required paper trails which can comfortably bypass CFC restrictions.
Ask HN: How to monetize small side projects?
Hey HN,
what are your recommendations for "monetizing" (like in "pays its hosting bills") small side projects?

I'm thinking of converters, niche tools and more, where there's not enough flesh to cut out a "pro version" and whatnot.

What are your experiences with monetizing these kind of things? What works, what doesn't?
I don't get it. Is it simply funny (in an absurd way) because of the usual "Paf le X" french jokes, or is there something more to it ?
btw, took me a lot of time to figure this out. http://mathb.in/49229

This is useful for people with multiple unrelated employers with 401k plans.
The ridiculous part is that nowadays IRC has more stable and reliable (and beautiful) clients for web and mobile than XMPP.
Getting Started with PIO on Raspberry Pi Pico
And even if they weren't more out less directly equitable, how long would it take for one to pull up the other.

China has 4x the population the US does. The US won the cold war because it had a larger economy, partly because it had a larger population. That's not how any future conflict is going to shake out
Greenhouses have been doing this for decennia. All necessary nutrients are there.

A large portion of the produce is optimised for bulk. A smaller portion of the produce is optimised for taste.

You get what you pay for.
They both are no good and Google blasted him legally and his name in the media yet Google does the same thing this guy did and gets away with it? The pardon is their karma.
This has been widely reported in the west for almost two years... What took you so long?
I won't find my young self and give him all of the lotto numbers for every major drawing. Instead I would go claim it myself and enjoy life at that point. Younger me will eventually go in the same loop.
The latest on Biden’s science team: biologist named as top adviser
Third year PhD student in compilers here. Yes, compilers are hard but they are fun and addicting. No regrets switching from cryptography in masters to compilers in PhD. Lattice based cryptography is actually very hard and that's why I couldn't continue.
because when you misscalculate the index, then it will not crash, but use the wrong one

I'm getting this right?
For real, first thing I did was try and click the neck but it’s unclickable
> ask the blonde waitress an integral

I know this is a fun thread, but in real life you could have serious problems if you tell this kind of jokes.

To my fellow downvoters: I hate it as much as you do.
This is HN, I'm going to kill a joke instead:

There is the classic:

There are only two hard problems in computer science: Cache invalidation, naming things... and off-by-one errors!

Ha ha ha

I hate this joke. It takes one of the most insightful things ever said about the profession, makes it into a joke that isn't even that good, and now the only thing you rememebr about it is the punchline.

Let's break it down:

- Cache invalidation: State management! Distributed systems! This really gets to the core of what's hard. This is the only technical problem. For everything else you will have all the information you need at hand and it's a matter of getting the machine to do your bidding.

- Naming things: Communication! Dealing with people, whether it's you in the future or somebody else in the present is not a technical problem, but it is an even more important problem. It's unsolved. You will need to practice, think, fail, try more, and it's not even guaranteed to succeed. People are like that. It's a hard problem.

So there you have it. Probably the most insightful thing said about our job in less than fifteen words, and if you hear it, the "joke" immediately makes you think about the punchline, robbing you of the opportunity of reflecting about it.
I think not enough people appreciate just how amazing TS type system is, I often want to use it in pretty much every other language I use.