skysight-inc/HackerNews huggingface dataset:
My favorite individual feature of this language, reading through the spec, is the explicit tail-call statement:

sp2_help( bits32 n, bits32 s, bits32 p ) {
if n==1 {
return( s, p );
} else {
jump sp2_help( n-1, s+n, p*n );
}
}

Clang has a similar thing now, but it's an attribute not a language keyword. There's two things I like about it:

First, it communicates intent better. For someone not familiar with the principle of a tail call or a sibling call, thinking of it as a goto is easier, and is what the compiler is actually doing underneath to prevent a stack overflow.

Second, it allows for the compiler to see if the tail call is well-formed right then and there. It would then flag an invalid one as an error instead of not optimizing the tail call. This prevents any surprises at runtime.

For a higher-level language than C--, it'd be fun to call this explicit tail-call statement goto, and have no other form of goto statement. It's just as powerful in expression as the classic goto while avoiding its pitfalls.
Thanks. I understand what the FSF is trying to do. I just think they've gone about it in a stupid way. I see it as an outgrowth if Stallman's old "microwave argument".

He is super zealous about using free software everywhere...until he isn't. His argument being that something like a microwave, despite having some non-Free software, isn't something that can be changed post-sale so he's ok using them.

1. It's actually an outdated example since we're now seeing appliances with Internet connectivity and EULAs.

2. It breaks down almost immediately with modern computer hardware. We're not running big beige towers whose only connectivity is some RS323 ports on the back. Most people are running computers with multiple highly regulated radios, internal batteries, and security subsystems. Fully user programmable functions of these are combinations of impractical, dangerous, and illegal.

I still donate every year to the FSF but these crusades just make me slap my forehead. They're feel good campaigns and encourage more harm than good.
Withcher map made by Polish students
Around here you sometimes see things like this https://emmo.ca/Electric-Motorcycle-Style-Ebike

They all have what I like to call vestigial pedals. You can barely see them tucked in near the rear tire. I have never seen someone using the pedals.

Also pretty common to call them DUI-cycles around here as well.
If this is a class, you can use dataclasses.field with default_factory. However I don't think there is anything analogous for standalone functions.

https://docs.python.org/3/library/dataclasses.html#dataclass...

Functions are in fact objects as well, so there might be some way to do this sort of behavior with decorators.

I would actually contend that "if x is None, x =Bar()" is actually a superior pattern in some/many cases. I used to use "x or Bar()" or "x if x is not None else Bar()" quite a lot, due to its compactness. However I learned that actually sometimes code coverage fails to ensure proper coverage of these ternary assignments. If your default argument is just because you need to initialize a mutable object, ternary works fine. However if the presence or lack of a parameter is an important part of your state space, you probably want explicit coverage.

https://stackoverflow.com/questions/47958166/code-coverage-a...
Is this a factor though that conservative views have started to lean more towards conspiracy theories and religion vs fact and science? I would also say debate never really changes anyone's minds. People tend to believe things with emotions and believe irrational things even when showing overwhelming evidence. This happens on both sides of politics or anything.
> E.g. israeli data which I am intimately familiar with is incredibly biased

Can you expand on this? Why is the data biased by demographics? Is this data biased in the same way as the other countries that show a 90% effectiveness?

As I argued above, there is a bias that's working against vaccines, given that a larger proportion of old people are vaccinated which leads to an understatement of their effectiveness.

> while at the same time airport data which is the only place with unbiased testing showed about 60%

Link?

> [there's] no RCT data showing they are effective in preventing severe disease

Only because they haven't done an RCT that could possibly pick that up, probably because of some ethical argument that giving people a placebo may cause them to behave more recklessly (which I would disagree with).
This is a lesson I think should really be brought up more often. Everyone constantly talks about which language is fast or slow, but 9 times out of 10 the question should be which _programs_ are fast or slow. Improvements like this often completely trump everything else. The move from bash to rust is generally a linear improvement, but discovering a better algorithm has way more potential.

My experience has been that the range of problems big enough for scale to matter, but small enough for language to matter isn't that big. If I won't wait a year for python to compute something, I probably won't wait three weeks for rust either.

Obviously if we're talking about paying for compute cycles then it matters, but surprisingly that's not usually where discussion is focused.
Help me add dark mode in Hacker News natively
Been using the free version of zoho for about 10 years. What an amazing little piece of software.
What country are you from, if you don’t mind me asking?
The "Better TweetDeck" extension already has a setting to automatically mute people who have NFT profile pictures.
> it's not impossible a printer in Swansea whirs to life to print your answers out into the original paper form

Speaking of which: my mum went through the form to renew her Oyster card the other day, and, having finally completed it, it generated a PDF form and told her to print it out and take it to the Post Office.

So yeah, there are definitely some Jira tickets still on the left.
You should immediately start applying what you learn. Even before you finish the book. Type out and modify any example code, write little practice programs, etc. Passively reading is no way to learn technical material. Also, take notes (in your own words) and periodically review and condense those notes.
> Hybrid-electric cars are an engineering abomination.

No they're not.

You have to take any type of innovation in context.

Hybrid-electric is actually better for the environment, if implemented correctly. Why? Because the average daily commute is between 25 and 40 miles (40 to 60 kilometers), depending on where you live; which means a good hybrid-electric could use just electric for most of its total mileage, and occasionally an ICE for longer trips (weekends). You would need much less battery capacity to enable a bigger eco-friendly fleet of cars.
I almost kinda didn't bother because of the cloudflare DDoS protection. I know that can be petty, but I wouldn't have waited if it was from a Google results page for example.
They make awesome mainframes.

Extremely reliable, and extremely good at what they do.
They sure are expensive.

A lot more companies should adopt them.

Yet its going the way.

They run at scale at a lot of companies.

AS/400 / iSeries was awesome at least in the beginning.

I think it may be discontinued now.

Those machines were extremely reliable and well made.

Often companies who had bought one had no idea where it was.
Someone had set it up for them 7 years ago and after that nobody
paid attention.

Some places were better and did proper backups.
Which means stuff the right tape of a rotation into the slot.

They would also call home to tell IBM of a proper that is developing
and they would send a tech out to switch the parts prior to anyone
using it had any problem.

(and that is when the machines were sometimes hard to find.
One was buried in a closet, with tons of paper cases, paper archives.
stack buttom up to the floor.
Interesting! Thanks for linking that.
You should read more about the history of IBM.

IBM is a sale driven organization. I.e. sale first - tech after. so it cannot be judged as an high tech company, I.e. on the tech.

A point of reference is SUN - which was tech first - sale after.

Another point of reference is HP. HP was tech first, but turned into sales first.
How does any IT person stay in business if they do not create cool stuff?

There's your answer.
My high school science teacher had high hopes for a science project and put me on the spot, after I mentioned something on a whim.

The materials alone would’ve cost hundreds of dollars which was unfathomable to me in the early 90s.

He didn’t realize I came from a poor family; but I was too embarrassed to say anything.

Anyway he was disappointed when I came up with a very mediocre (but super cheap) project; he mentioned later he would have paid for materials.

Being poor is limiting in so many ways.
Then hope they arent lying and hope your interview panel didnt adjust their credulity based upon whether they liked the candidate's skin color.
...is it just me, or is the site broken? The link didn't display correctly and it shows as the raw markdown instead of the formatted result (checked with both Brave and Firefox, in private windows in case it's some extension).

Is that just how the site is?

It's very distracting regardless.
Absolutely bonkers. One of every five dollars goes to healthcare.

To put this further into perspective: the US military budget is immense, as we know… and it clocks in at 3.7% of GDP [1]

[1] https://www.statista.com/statistics/266892/military-expendit...
There’s no price segmentation. You pay the same for a visit with a PA or NP as for one with a physician, so why see someone with less than a tenth the experience who may have gone to an online only school with 100% acceptance rate and shadowed for 500hrs of “clinical experience“ right out of nursing school?
I just turned it up a notch right now for a moment, a lot of people are really aggressively bot-scraping new HN submissions for whatever reason. It's like a minor DoS every time you submit a link.

That's fine for a blog I guess, but this I perform a non-trivial calculation for each request, so I'd rather not have bot spam. (This is hosted on a computer in my living room, so I can't just scale it up)
and then vacuum up what’s left!
You're asking whether we can have a challenge where no one on earth is interested in studying it and I think the answer is "no."

If you don't want spoilers, don't look them up? It's like complaining that the existence of archeology as a field takes the romanticism out of dinosaur stories.
Big deals can really put a company in danger. If the company you work with closes or cuts the deal or whatever you could loose half your revenue. On top of that big clients can be really needy especially dinosaurs companies that aren’t nimble. They take forever to pay, have lots of meetings and unreasonable expectations and expect lots of free stuff and service because they are incapable of processing Non standard invoices due to internal politics. It’s a mixed bag to deal with the big guys
You can't not participate in capitalism at all because it's required in some capacity if you would like to use any of the benefits of living in a society. You have to live somewhere and eat something, and you either pay money for that, or do everything yourself, using most of your waking time just to survive, like a caveman.

But you're free to act like NFTs don't exist without that having any impact on your day-to-day life.
Pretty much, yes (and I'm surprised you haven't heard the analogy before, it is as old as Bitcoin). Another example is the US dollar, whose value is entirely dependent on what a "greater fool" will give it. Without that "greater fool", it is just worth the piece of paper it's printed on. It is the same for Bitcoin and it is the same for tulips. That being said, I'd argue the US dollar and Bitcoin both have properties which make them much more desirable than tulips as a store of value or currency (tulips arguably have the greatest intrinsic value though!).
I recently graduated from a top 20 school and in my experience it was not the professors you had to worry about, as this article suggests. Instead it was the other students, especially on social media, that were the most dangerous. I witnessed people losing internships and jobs after posting very IMO non-offensive statements, such as saying illegal immigration is bad and capitalism is good.

It taught me a valuable lesson - when it comes to highly emotional and politically charged people, simply agree with whatever they are saying, then get the hell away.
How would one build a prototype for "complete full driving" ?
I’d have a look at how far you can go with AlpineJS. Love it’s simplicity to add robust interactivity to web pages.
> Additionally, if you create or log into your Medium account through a third-party platform (such as Apple, Facebook, Google, or Twitter), we will have access to certain information from that platform, such as your name, lists of friends or followers, birthday, and profile picture, in accordance with the authorization procedures determined by such platform

This isn't a Medium issue. It's the "price you pay" for the convenience of such social-based authentication.
How do you feel about languages which have a mid-level intermediate representation, between the full language and the true IR?

For example:
https://blog.rust-lang.org/2016/04/19/MIR.html
I agree. The one thing I wish there was a program that just gave me the list of remaining possible words. Some start words have an S or T in them which doesn't really help since 80% of the word list has an S or T. I use more obscure words. Sometimes it works and sometimes it doesn't. I got today's on the 2nd guess by thinking "what is a weird word" with only knowing one letter and I got it. These days are way more fun than always getting it on turn 4.
Reasonable people can see there’s at least a discussion to be has. Simply mocking those who disagree does nothing for the credibility of your viewpoint.
It's the most common bot detection software and was used by over a thousand research papers.
https://en.wikipedia.org/wiki/Spacing_effect

it's not a new term
Swift? (minus the ability to specify co/contra-variance)
Is there any clue in the story as to why the meta professions are kept secret from the general public ? Is there a sociological aspect in the story ?
Sure, there is probably more needed. Some of your list is covered though. For example, I tried websockets, and those are blocked by the throttle.
I use simplelogin.io for a bunch of my personal domains. They route it all to a catchall mailbox on gmail.
The PEP seems entirely focused on bound checking and performing functions on variables in the function definition.

I'm not sure it handles the use case op is talking about.

IE
def foo(bar=list()):
# this creates a mutable list shard by all calls of the function. Very unlikely something you want.

Maybe the pep would allow for
def foo(bar=>list()):

But the pep does not address this use case at all
He said those exact words and despite the responses I wasn't trying to remark on his words, only pass along a small moment many of us there found memorable and funny.
While "weird" when first encountered, once you wrap your head around why this happens, then this is a feature, not a bug.

Both in terms of enhancing one's understanding of python's memory model, and in terms of it being an incredibly useful feature, e.g. for introducing static/persistent variables to a function (without the need for global declarations)

I would not want to see this "fixed"
Two tips I have are to handwrite notes on the material, and, to reread the material at least once a later date. Taking notes by hand has been shown to increase retention in college lectures as compared to typing notes on a laptop or not taking notes at all, while rereading is essentially taking advantage of spaced repetition.

I can’t emphasize the value of handwriting notes enough. It was that “one weird trick” that got me through college. I actually never looked back at my notes, but, I got the benefit just by writing them.

Oh, and, one thing to note here: highlighting stuff in the book or paper you’re reading is great for when you come back and read the material again, but doesn’t do much for retention on the first read. Write that shit down if you want to remember it.
I had heard of mxroute previously, but for some reason, i only thought they focused around transactional email...like sendgrid, etc...and not what others might refer to as conventional mail hosts. Their price is really compelling, and the honesty of their documentation is refreshing! Take a gander at some of their commentary around hosting calendars, contacts for example: "...Just know, that’s not where the bulk of our time and energy is going." [https://mxroute.com/docs/#/General/Do_You_Sell_Calendars] Granted i have the need for email as well as calendar and contacts, but damn that level of honesty is compelling for me to at least consider them for my short list. Kudos to the MXRoute folks for being honest!
Again, UB is defined as behavior "for which the Standard imposes no requirement". No requirement. If your interpretation of the other parts of the standard were correct and there were requirements for what UB could be, then the standard would be self-contradictory.
> They took a profitable RedHat and gutted it,

I know they bought Red Hat but I didn't hear that they gutted it. Can you expand on that?
The mean age at founding a 1 in 1000 fastest growing organization is 45.

Which makes sense, because industry connections for talent and sales are incredibly valuable.
The paper does not claim "bots aren't real." It claims:

> The field of “social bot” research is fundamentally flawed. While “social bot” researchers have received an enormous amount of public attention, their methods are highly dubious. And, as we and others have demonstrated, they fail miserably and consistently when evaluated under real-world conditions. Studies claiming to investigate the prevalence, properties, or influence of “social bots” have, in reality, just investigated false positives and artifacts of the flawed detection methods employed.
https://en.wikipedia.org/wiki/Megachurch are the modern cathedrals.
Some previous threads on the Azoulay/Jones/Kim paper: https://news.ycombinator.com/item?id=16902662
This feel ungenuine to use statistics about US universities and then extrapolate across the West.

With maybe the exception of Australia, the US is clearly "ahead" on this crisis in higher education.

Here in the UK, there has been some issues, but still enough open discussion to prevent the open door to begin closing.
There are a lot of new Toyota models slated for release this year. By December, I wouldn’t be surprised to see them leapfrog Hyundai and Volkswagen if they can get parts and production stays on schedule.

I also think some of these automakers are riding a fine line and trying not to cannibalize the final years of the ICE lineup. Notice how many sporty driving cars are being released the last 2 years. It’s very likely those cars will be illegal to sell in a decade. It makes sense for them to produce those cars now and get a sale while they keep working on battery and range in a lab behind the scenes.

The key to that balance though is to actually put in the R&D so when they do decide to pump out EVs, they’re competitive to the market. If Toyota and Honda are playing catch up releasing 200 mile range EVs while the early adopters are moving on to 350+, then that will be the beginning of their downfall similar to the big 3 in the 80s.
> Even contact lenses are marketed with free samples.

I mean, yeah? If a shoe company required you to buy a shoe before trying it on without free returns, the shoe may as well not exist.
You mean like Web Components?
I recommend handwriting notes. See my other comment here[0] for the reasoning.

——-

[0]: https://news.ycombinator.com/item?id=30047675
omg he could make it a business to buy these microscopes, fix and resell for 100k each
Well, at first I lost.

But it did help me discover that the most important thing for me was walkability. I could compromise on the highrise living, but we moved to a car-dependent neighborhood, and that's the part I despised most, and it significantly negatively affected my physical health, and thus then my mental health. I strongly believe that car-dependent suburbs are just plain awful.

In the end, money cured it for the most part. We rented a small studio pied-à-terre downtown and would spend a couple days there a week. We actually didn't do this for too long because it wasn't long until Covid hit and downtown basically died, so we didn't renew our lease. Not sure what's next.
Clean room reverse engineering is pretty standard and legal.

It’s how IBM PC clones were legitimate back in the 1980s; and how AMD managed to stay on the legal side when taking on Intel.
The public only knows consumer tech startups, which imo is like catching lightning in a bottle & selling it. The key idea/insight probably matters more in consumer, which can benefit from being young or around young people. You also don't get as much of a benefit from experience & professional network as you do in other verticals; B2B SAAS, Deep Tech etc. Without making the distinction between types of companies, pieces like this are silly pop-sci.
I believe GitHub pages is getting close to allowing any SSG to be used via GitHub actions. https://github.blog/changelog/2021-12-16-github-pages-using-...
And this : "Prior experience in the specific industry predicts much greater rates of entrepreneurial success"
One thought that occurred to me is that drivers might unconsciously not want to delay deliveries for later in the day if they can be done sooner. Delivery locations further away will always be delivered later, but if I'm in the neighborhood early in the day I should make those deliveries first.

Imagine an optimal route that involves taking an expressway to a remote location and then making deliveries on a local road heading back to the depot and compare that with the reverse trip making deliveries on the local road before returning empty via the expressway. Both trips might seem to be equivalent from an optimization standpoint, but the deliveries would be made sooner on average for the second trip.
On the contrary I hope generics in Go mean that bug hives of mutation in loops get replaced ASAP with higher order functions. I for one have plans to work through several code bases and do just this starting the second Go 1.18 lands.
How about a decorator?

from functools import wraps

def defaults(**default_kwargs): # Decorator factory
def decorator(func): # Decorator function
@wraps(func)
def wrapper(*args, **kwargs): # Actual wrapper

# Iterate over all default keyword arguments
for name in default_kwargs.keys():
# And if not specified in the passed in kwargs use the default
kwargs[name] = kwargs.get(name, default_kwargs[name]())

# Call the actual function
return func(*args, **kwargs)
return wrapper
return decorator

# Note that the default argument value should be a callable to avoid the pitfall with mutable arguments
@defaults(bar=lambda: [1, 2, 3])
def foo(bar):
print(bar)

foo()
They will deal with all the crappy and lazy and incompetent clients. They bid on all the government work, the bank work, the insurance work, etc.

The kinds of places where HN devs would say your career goes to die, along with your soul.

They will do the stuff the internal teams at those companies pass on.
> I perform a non-trivial calculation for each request

Any reason why caching wouldn't work here? Do the results have to be different on each request instead of being cached for a short while (10 seconds)?
He has support from his family.
A former employer tried for years to get onto the magic quadrant, and never succeeded. Until they started paying gartner for access to their “specialist knowledge”, and suddenly they were on the magic quadrant … in the lower left, with gartner pushing them to pay more to get better access.
I get McDonald's delivered all the time. Can't beat 13 minute delivery for coffee in the morning.