skysight-inc/HackerNews huggingface dataset:
Ask HN: Would you introduce someone to programing
A random guy asked me what I did for a living today, he then mentioned he would like to learn to program too.

My first instinct would be to point him to learning JavaScript but I'd like to see what HN thinks
This is also why Android is such a security and privacy nightmare, with the terrible user experience (and environmental impact) of having to buy a new phone every 1-2 years.

Because Android is not GPL.

Google owns the software, so manufacturers really only make money from the device sales, and bundled spyware.
There's also the fact it seems to be routine for prosecutors to offer deals to people where they just plead guilty straight up in return for lighter sentencing. I can only wonder how many innocent people take this deal.
> It looks each line in the stream represents a JSON statement

Only incidentally. There's literally nothing about the format, and I hesitate to give it the implied gravitas by calling it a format, that makes the JSON part important in any way. The lines are just individual messages. JSON happens to fit, but so do many other syntaxes.

What's an array? It's an abstract sequence of items. What's a delimited stream? It's a sequence of items. Do the lines need to be JSON? Who the hell cares. If you're using JSON then they're JSON. If you aren't, then they aren't.

Honestly, the most important part of their description is "for passing messages between cooperating processes", because JSON is terrible for blindly consuming messages without cooperative explanation from the sender (http://seriot.ch/parsing_json.php).

Given that you can't actually do anything with JSON data (or most data, JSON is again not extremely special in this regard) without a concrete explanation from the sender of the expected interpretation for every field, can you tell me what you think the important difference is between "json messages delimited by newlines" as proposed here with its own custom mimetype but without any other information and "newline delimited messages that can be parsed with a json parser"?

They'd have been better off using the ASCII record separator character instead of newline. That's both already a standard and also doesn't force escaping to prevent collisions with normal text.
They will not need when there is no human employee remained:)
This seems like a good place to ask: who's interested in building a competitor?
I have been surprised how strong the Peloton online community is.

I have more than one friend who's life has been basically taken over, like Cross fitters can be. It's all she posts on Instagram! Have their own group, organize rides with custom t shirts and everything. Actually did a meet up in person from across the country. I think she does interact with her favorite instructor off the platform too.

Seems more personal than like a large brand spin class. Who knows maybe they make some in person gyms, like a bike-share program, since the bikes are so expensive.

But I am for sure in the category of building an intense home gym that I don't use as much as I should given the cost ;)
France does them. Can confirm on flights from Brussels and Frankfurt.

Allowed “Temporarily” under “extenuating” circumstances and “only as a last resort”, so they renew it every year and have provided zero proof of its effectiveness. It’s just theatre.

If they applied it to road traffic too, then, okay, fine at the airport too. But checking passports of people coming in from a neighbouring country by air only is beyond stupid.

https://ec.europa.eu/home-affairs/what-we-do/policies/border...

Extra do-nothing jobs at Toulouse airport that receives few non-Schengen flights.
I half agree with you. It's not so much that Linux lacks a clean driver interface, it's really that OEMs write shitty software that doesn't belong upstream. Ideally vendors stop writing garbage drivers and distributing hacked up kernels with their "sample code" (but ends up in production) and opaque binary blobs.

Android unified vendors but simultaneously made them even lazier. It's somewhat hard to get non-android code from vendors in the past 5+ years. Which makes me very sad.

Will Fuchsia somehow convince vendors to produce better drivers? I don't see how Fuchsia makes this problem significantly easier. Shitty vendors will continue to be shitty vendors and take the easiest path to making money.

In any case, the Kernel's super power is its community, not the software itself. The LKML is vast and full of knowledge, a strange intersection of open source, research and corporate exploits.

I don't see Fuchsia replacing that anytime soon.
Thanks for the advice. The person in question is not just a colleague but also a friend, and has expressed frustration with this specific issue multiple times to me. She is skeptical about suggestions like meditation, self-analysis, coaching etc. She has accepted other suggestions that are more technical in nature.

I thought that hearing what things others have done might encourage her to try some of those things. They may be more credible to her because they are being suggested by people who have been through what she does.

The "unwilling to take advice" was an overstatement on my part. At some point, though, I have to butt out, and this question on HN was in a way my last attempt to help.
For me, the rub is with the benefit being a credit, not cash. If I’m not flying frequently enough, those credits are kindof worthless. Don’t they also have expiration dates?
It isn't GPL; I believe it is tri-licensed in BSD, MIT, and Apache 2.
How else are you going to understand how a library works besides RTFM or RTFC? I guess the third option is copy pasta from stack overflow and hope your use case doesn't require any significant deviation?

You seriously never have to read documentation?

Must be nice, I've been balls-deep in GCP libraries and even simple things like pulling from a PubSub topic have footguns and undocumented features in certain library calls. Like subscriber.subscribe returns a future that triggers a callback function for each polled message, while subscriber.pull returns an array of messages.

That's a pretty damn obvious case where functions should have been named "obviously" (pull_async, pull_sync), yet they weren't. And that's from a very widely used service from one of the biggest tech companies out there, written by a person that presumably passed one of the hardest interviews in the industry and gets paid in the top like 1% of developer.

Without documentation, I would have never figured those out.
Now that we are in the age of social media, we need a new or updated version of manufacturing consent.
I don't get these "confession" videos. Not only is it usually obvious that they are coerced, either by the person's demeanour or obvious signs of violence. They are such a trope of dictatorships it wouldn't even be possible to broadcast the most truthful of any such confession video without looking suspicious. Indeed the very act of humiliating your enemies in public is incompatible with the idea of democracy.

So, what gives? Is it supposed to demonstrate the regime's ability to break you? Do these dictatorships just suck at PR as much as they suck at other aspects of governing?
.NET 6 Preview 4
If Lana was 31 years younger, she'd be 12 times as old as her baby. Lana is half as young as Robert, who is 44. Find the baby.
Because of the mapping of the typing keyboard to musical notes. F would represent E# which doesn't exist on a piano. H should work though.
I found a pic that explains the keyboard layout better than I could:

https://sourceforge.net/p/vmpk/shared-keymaps-and-instrument...
Yes, I was doing it just this week with Julia 1.6.
> generate the suggestions to know which commands to prioritize

What does 'prioritize' mean in this context? Other completion tools (like fasd) write command history to a local dotfile so they can build up knowledge of 'frecency'. This makes sense, it's no different to your ~/.bash_history file really. I wouldn't trust any single tool that tried to build a parallel history through an analytics integration.

Fig claims that it 'loads up once then remains entirely local', though, and it's adorned with an icon that suggests it remains offline.

What you're saying here seems to contradict that. If the tool is entirely local/offline, how is it phoning home with the commands you type? And does it send along the arguments you pass to the command if you happened to complete them?
https://fuchsia.dev/fuchsia-src/contribute/governance/policy...
Almost all of modern mathematics is not about numbers, although a lot of the objects studied can eventually be related to numbers in some way.
> In fixed width ISAs, you have N decoders and all their work is useful.

ARM isn't fixed width anymore. AESE + AESMC macro-op fuse into a singular opcode, for example.

IIRC, high performance ARM cores are macro-op fusing and/or splitting up opcodes into micro-ops. Its not necessarily a 1-to-1 translation from instructions to opcodes anymore for ARM.

But yes, a simpler ISA will have a simpler decoder. But a lot of people seem to think its a huge, possibly asymptoticly huge, advantage.

-----------------

> The only way out I can see is if determining instruction length is extremely cheap. That doesn't really describe x86 though.

I just described a O(n) work / O(log(n)) latency way of determining instruction length.

Proposal: 1. have a "instruction length decoder" on every byte coming in. Because this ONLY determines instruction length and is decidedly not a full decoder, its much cheaper than a real decoder.

2. Once the "instruction length decoders" determine the start-of-instructions, have 4 to 8 complete decoders read instructions starting "magically" in the right spots.

That's the key for my proposal. Sure, the Kogge-stone part is a bit more costly, but focus purely on instruction length and you're pretty much set to have a cheap and simple "full decoder" down the line.
We don't have plans for Stripe to help with digital delivery today out-of-the-box (you may want to check out some of the many Stripe plug-ins that assist with that: https://stripe.com/partners/apps-and-extensions?q=digital). If you want to roll your own email solution, you can listen for webhooks to trigger an email after a payment: https://stripe.com/docs/webhooks.
I agree we should take better care of our sound quality. That being said I don't manage to get an idea what's worth it. Network quality is part of the equation. Macbook's microphones seem to sound pretty good. Shure SM7B looks great but it's 380€... How much better is the sound on your contacts' ears is what I'm wondering about. Any feedback/idea?
You wanna force this on everyone? Cool. Then I get to enforce outlawing fast food consumption… especially things like Krispy Kreme donuts.
Homebrew's telemetry burned so many bridges back in the day. I had a friend who sold his week-old 15-inch MBP over that.
Yeah actually it would be. Not many are sophisticated enough to use things like TOR.
This may sound pedantic but PII is not even mentioned in the GDPR. It's a notion from U.S. law.

The GDPR refers to "personal data". Everything you say above about PII is true of personal data under GDPR.
The problem here is that banning those platforms (but not whatsapp for some reason?) will not increase the amount of discussion and information available to the people of India.
Once you are no longer a US citizen, you are in the clear.
> A deed does not refer to a specific thing. It only does so in daily life as a matter of convention. It is the authority of the banks or the government or whatever that gives your particular deed any weight at all. A deed, like a dollar bill, is a piece of paper with no value. Indeed, a photocopied dollar bill has no value whatsoever. It is only our collective agreement to pair value with officially recognized papers that grants those papers value.

What? A deed, per common law, is a legal instrument which affirms ownership of something. I'm not going to talk about value as that is independent of the purpose of a deed (you could have a deed to something that everyone agrees is worthless, but regardless you are the owner according to the government(s) in question)

Again, if you have a central authority an NFT is unnecessary and pointless to begin with. Nothing you've said really refutes that. All of the functionality of an NFT can be trivially replicated by a central authority, and indeed it already is.

> Anyone can sell anything

No, they can't. By your own logic, anyone can do anything. Surely you already see that is not true. We live in reality, and in reality others must recognize actions in order for them to be recognized as legitimate.
Fuschia is licensed under the BSD license as far as I can tell.

This allows device vendors to use fuschia without releasing device specific software to the community resulting in further degraded software freedom.
There's a chicken egg problem, but let's not blame Apple for this trend. Apple's original move to China in the 90s was ALSO prompted by the need to scale. This wouldn't make sense if we interpret things the way you do.
> and force all OEMs
????

This not make much sense, but if Google launched it in his own, then at least some OEMs could go along (supposing Fucsia is good, I don't know which could their selling point)
I mean, it's still just 1 person every 500 sq ft. That's a pretty sparsely populated factory.

And nowadays automation rarely reduces the number of employees substantially. The days of a worker doing one very simple task day in and day out are long gone. Most automated manufacturing lines are designed with every step having an associated operator who can load material in and out (which is a very difficult task to automate generally), which also keeps a person conveniently located for handling errors, cleaning, light maintenance, handling edge cases, assisting people at neighboring workstations, etc. In fact, automation actually often requires more labor as robots tend to be slower than human workers and prone to various errors which humans would simply deal with. Their advantage though is in automation's consistency, which allows for much more efficient supply chain management. While some automated systems can be made to outperform human operators, this is usually prohibitively expensive.
>What is Tesla going to call their eventual level 4 autonomy feature? "Actually Full Self Driving"?

Technically that would be Actually Full Self Driving Sometimes.
Gumroad does something similar for years.
Yes. It's always the case that some people are left out, you're right. For example, not everyone in the MTA's service area uses the MTA.

The suggestion at hand is literally unprecedented. Most taxes have some people paying into them who won't (fully/directly) benefit, but this tax would have the majority of people paying into it see no benefit.
> If Mathematics is a language to describe reality, maybe numbers are not its whole alphabet.

Who would claim they are? Mathematics initially co-evolved with our ideas of numbers, but many other important objects have been thought about for a very long time now.
In school a couple years back I spent fair amount of extracurricular time playing around with various lisps and frequenting related irc channels.

Robert often went out of his way to answer my dumb questions and really helped me better understand a number of things.

Thanks Robert!
I do not think it is stupid nor self destructive to avoid enriching people who believe that Taiwan is a country, no. There is diversity of ideas and dissenting views, and he's free to blog about them, but I am also free to go work on other projects/communities that don't enrich landowners who I find morally repugnant.

Not wishing to contribute work to directly financially enrich Taiwanese nationalists is very different from thinking that they should be silenced.

----

I do not think it is stupid nor self destructive to avoid enriching people who use God's name in vain, no. There is diversity of ideas and dissenting views, and he's free to blog about them, but I am also free to go work on other projects/communities that don't enrich landowners who I find morally repugnant.

Not wishing to contribute work to directly financially enrich heretics is very different from thinking that they should be silenced.

----

I spent a years traveling and living in different cultures. "Racism" is basically ubiquitous everywhere in the world. Everywhere else, people (even liberal, educated people in big cities) are openly prejudiced. I found this shocking at first, and eventually came to terms with it. This huge stigma about talking about race literally only exists in one culture, and for this one tiny sliver of the history of that culture.

You are in a cult. This is a religion. You are condemning heresy.
What is high risk and what is low risk?

We have about as much information about the effects of the vaccines now as we have about the effects of Covid-19, and they are generally better in each age group.

(this includes the blood clotting that has been attributed to the vaccines; the incidence is higher in people that have been infected)
Crops can't grow in barren soil however hardy they are. Soil is dying at an amazing rate right now, it's a living ecosystem that gets renewed and changes constantly, with all the bacteria, fungus, worms, dead organic matter, minerals, air and water cycling around. Many farming methods that we use at the moment don't prioritise it, and long term they destroy the productivity of the soil. GMOs might be part of the solution but they aren't all of it.
What’s Next for Google’s Fuchsia OS?
Better to be banned by Twitter than be imprisoned by the Indian government, surely?
> But do you agree we should stop it when their instrument of voicing said opinion goes from online forum to pitchforks and firearms?

Sure, believing any conspiracy theory is not a justification for breaking the law.

> If so, where do you propose the line exists?

The line is already clearly defined by the law. Ranting on Facebook about conspiracies (true or not) is legal. Nonviolent protests are legal. Storming the Capitol obviously isn't.
Sure, I would introduce people to coding in some form. Probably start with basic HTML, then CSS and finally JavaScript. Anyone who understands the basics of web dev can easily go on to creating mobile apps, doing back-end, etc.
That is very interesting, something microsoft should have done, but for some reason didn't..

If built correctly this could be huge, hopefully they don't release it naked and prepare some partnership with studios to release games built for it on release day (linux)
Love this - often times if I get off work later than normal and get home after dark, I’ll walk around the neighborhood - live in a small town so you can see the stars and smell the trees; I almost always feel like a little kid again - like that feeling of being alive and outside is more true than all the work you do typing at a computer all day.

Your story reminded me of that feeling - so cheers!
> Live a more spartan life.

You mean, beat up whoever is weaker then you and take kids out of families to indoctrinate them into violent dictatorship body? Have them kill slave as rite of passage?

Could not resist, was reading about sparta lately.
Yes, coding at scale is about managing complexity. No, "Keeping methods short" is not a good way to manage complexity, because...

> then mentally model the entire graph of interactions at once

...partially applies even if you have well-named functional boundaries. You said it yourself:

> The complexity (sum total of possible interactions) grows as the number of lines within a functional boundary grows. The cognitive load to understand code grows as the number of possible interactions grow.

Programs have a certain essential complexity. Making a function "simpler" means making it less complex, which means that that complexity has to go somewhere else. If you make all of your functions simple, then you simply need more functions to represent the same program, which increases the total number of possible interactions between nodes and therefore the cognitive load of understanding the whole graph/program.

Allowing more complexity in your functions makes them individually harder to understand, but reduces the total number of functions needed and therefore makes the entire program more comprehensible.

Also note that just because a function's implementation is complex doesn't mean that its interface also has to be complex.

And, functions with complex implementations are only themselves difficult to understand - functions with complex interfaces make the whole system more difficult to understand.
If I am on my way to work I am motivated to not be late. I can truly go for it and reliably give myself the least amount of time for the journey because it is a bike and traffic or schedules of trains or buses matter not.

If I am on a glorified hamster wheel I have none of that motivation. I also lack the exhilaration from having survived. It means nothing to me.
I suspect hobby electronics has faced stiff competition from hobby computing, among people inclined towards tinkering.

The people who, in the 1980s might have been using a 555 timer to blink an LED? These days they've got a computer, and they're making a web page or writing 'hello world' in javascript.

Oh sure, a few of them might get an Arduino and blink an LED from time to time - but nowhere near enough to support high street component stores.

Of course, from a certain perspective hobby electronics has never been better. Component stockists with huge ranges and fast, cheap shipping? Professionally produced PCBs for $5 including shipping? Microcontrollers with built-in wifi for $1? And the compilers and dev tools are all free? Some of these things have never been better :)
A Philosophy of Software Design.

Except for what he says about TDD.
Oh I see. I use Linux, so I guess this isn't an option.
Cloudfront is a large corporate silo though.
> As long as it doesn’t break the contract

The contract that would be enforced by aggressive government regulation?

Yeah no. I thought you did not like government regulation, and supported people's ability to do what they want with things that they own? And in this case, such a contract, is enforced by government regulation, and we should work to invalidate it, if it prevents people from doing what they want with the phone that they bought.

Thats the point. I support the free market solution here, and apparently you want to use the government, to take away people's ability to do what they want, with their own phone, if you think that such a contract should prevent this.

I want to get rid of Apple's ability to use the government, to stop people from doing what they want with their own phone. The government regulations that prevent people from doing this is the problem.
Likely, they want to use the those weeks as a beta period to gather data from the fleet.
Looks like Valve went ahead.. https://arstechnica.com/gaming/2021/05/exclusive-valve-is-ma...

That's another missed opportunity for microsoft
Belarus’s KGB kidnapped a journalist from a civilian aircraft who criticised the government while he was flying between two EU nations and very likely may kill him. The comparison is ridiculous on so many levels.
FWIW, I was writing JavaScript in that example, so `entity.parent` might have been implemented internally as a function anyway:

get parent() {
return this.entities.find(this.parent_id);
}

I don’t think whether we write `entity.parent` or `entity.parent()` really matters to the argument, though.

In any case, I see what you’re getting at. Perhaps a better way of expressing the distinction I was trying to make is whether the nested object that is being accessed in a chain can be freely used without violating any invariants of the immediate object. If not, as in your example where removing a child has additional consequences, it is probably unwise to expose it directly through the immediate object’s interface.
I still believe rule of law exists in India. I would also revolt the moment something otherwise happens to it.