skysight-inc/HackerNews huggingface dataset:
Ask HN: Suggestions from experienced programmers about how to learn coding?
People who have been programming for quite a long time, must have some opinion about how newcomers should learn to code.

If there are blogs with their advice can you share the links in the comments.

If you are one such programmer and want to share your advice you can do so directly in the comments.
The threat isn't just from AI, unfortunately, it's from an entire class of powerful people willing to throw their money behind AI instead of behind customer needs, business priorities, and human values.
That was indeed the confusion that Will Braswell referred to in his talk on Perl's history when he made a humorous reference to the author of Pugs being "Autrijus Tang or Audrey Tang" (actually both throughout the duration of the project), which was not done out of malice, but was a callback to earlier on in the presentation when he'd joked about the different pronunciations of Haskell ("Haskell or Haskell"), the language in which Pugs was written.

For what it's worth, Tang later went on the record as having no problem with Braswell's talk, and in particular, noting that the Autrijus account on CPAN is still active. The outrage over all this was worked up by others unrelated to the project or the author.
Death’s end by Cixin Liu employed a similar plot device . A great read.
> There is no conceivable future with a different outcome.

The conceivable future is the status quo.

Crypto is used for speculation, illegal activity and a few limited legal use cases.

But is otherwise ignored by the mainstream financial system.
You don't think AI can improve in those regards? I highly disagree, its not this decade or even the next, but I wouldn't be surprised if things begin changing sometime in the 2040s. A decade I will be nearing retirement in but still working.
I regret my wording in the title, but it seems harsh to flag something when I’ve engaged in a good faith in the comments simply because I have low karma.

I’ve done a fair bit of open source work and now I work at a FAANG company so I’d like to stay anonymous. Does knowing that make you less likely to flag stuff in the future? It likely shouldn’t…
> There is a rational argument for corporal punishment of kids. A human brain isn’t fully developed until age 25

How exactly is this a rational argument? You're essentially arguing in favor of corporal punishment against people until the age of 25, since you stated that a 'human brain isn't fully developed until 25' and 'you can't reason with kids'. Do you believe that college students should also be beaten by their professors for being disruptive?

And in comparison it's common knowledge that the worst way to train animals is through violence. We can reason even less with a dog or a cat than we can a teenage individual, but in your view it's rational to punish kids with violence but doing the same to an animal is abuse.
For non-Americans who have no idea what this is about: https://en.wikipedia.org/wiki/Trillion-dollar_coin

All I can say is wow. Idiocracy was a visionary documentary.
Google has its own ChatGPT-like/LLM thing that is at least competitive. There's almost for sure a bunch of very legitimate reasons they haven't tried to mate search with that.

#1 from my perspective is that those systems... lie.
We've seen the product, now time for the evidence. If they're right about their high pressure air stripping the insulating boundary layer from heat sinks it should be demonstrated with cooling benchmarks.
>They're not, in general, subsets of some larger universe of values

You have a Computer.

The Computer has N bytes of memory.

You want to declare a Boolean type variable.

You tell your compiler this by coding it in the language of your choice.

The compiler will typically allocate 1 to 8 bytes of memory to store that Boolean value -- depending on such things as how many bits your CPU is, what compiler options are, if variables should be byte or dword or qword aligned in memory, etc.

>They're not, in general, subsets of some larger universe of values

But the thing is, that memory allocated for the Boolean variable is now constrained -- to be a subset of all of the previously permissible bit patterns for that memory.

It is constrained to be either 0 (representing False) or 1, (representing True).

If that Boolean value is 8 bits long (let's say) -- then the only two permissible possibilties that exist for it -- are either 00000000 (0 - False) or 00000001 (1 - True).

>They're not, in general, subsets of some larger universe of values

That type, the Boolean -- is very much a subset -- of a larger universe of values...

For a given Byte it can also be determined if it belongs to the Boolean Type
-- via a simple function (aka "series of steps", aka algorithm).

Basically, just compare that Byte's value to 0 or 1. If it's either a 0 or a 1, then it's a member -- and if it isn't one of these values then it isn't.

That small series of steps -- is a function.

A function which determines membership of given data -- an input (in this case, a byte) -- to a type (in this case, a Boolean type).

To validate or repudiate type membership (or lack thereof) of something more complex -- a more complex function/algorithm/series of steps -- may be needed -- but the point is, that's how it's done...

>They're not, in general, subsets of some larger universe of values

So they are all-inclusive sets of some larger universe of values?

?

If that's the case -- then why do neither computer programs nor mathematical constructs that use types -- use a single solitary type that represents the larger universe of all possible values everywhere that a type is used?

?
So... If it's so revolutionary, why can't I get it to solve level 1 advent of code problems?

Like here is what it generates for the 2016 day 1 problem:

def find_distance(instructions):

x, y = 0, 0

direction = 0 # 0: North, 1: East, 2: South, 3: West

visited = set()

visited.add((0,0))

instructions = instructions.split(", ")

for instruction in instructions:

turn = instruction[0]

distance = int(instruction[1:])

if turn == "R":

direction = (direction + 1) % 4

else:

direction = (direction - 1) % 4

for _ in range(distance):

if direction == 0:

y += 1

elif direction == 1:

x += 1

elif direction == 2:

y -= 1

else:

x -= 1

if (x, y) in visited:

return abs(x) + abs(y)

visited.add((x, y))

return abs(x) + abs(y)

This function returns 113 from my input for that day, which is actually the answer for part 2... For part 1 it should be 234.

When I tried in Rust the solution didn't even compile, which is business as usual as far as my experience goes for trying to get ChatGPT to write anything practical (not a 'toy' example) in Rust.

I gave it another chance with day 2 in python and it failed at that as well. These are VERY simple tasks, CHILDREN can solve the initial couple days of advent of code.

In this article they give an example of a square root function. Maybe the authors could consider trying some more realistic tasks? So silly...
Well before bitcoin, I never felt comfortable with dollar bills stating "In God We Trust" on the back.
all is good. companies will be able to hire some good people with the compensation that was unthinkable few months ago. compensation convergence to the mean is the inevitable in the long run.
> This is an article by the person who claims "syntax highlighting is a waste of information."

This is not a correct summary of the linked article, and is closer to being completely opposed to the linked article, so it's weird that you cited it.
> Unfortunately, C++ programmers are often extremely resistant to the idea that they ought to fix stuff like this.

[citation needed]

People tend to take this stuff seriously if you're working with Good codebases. These generalizations are categorically incorrect, from my experience.
My post is a reaction to my previous job, where management cared more for tests than the actual product, and I was tasked with proving a negative. I was asking for a definition of "unit testing" and I always get different responses, so I've taken to asking using my own projects.

It may seem cynical, but I assumed that anyone into "testing" (TDD, unit testing, what have you) wouldn't bother with testing that function, or with limited testing of that function (as I wrote). You aren't the first to answer with "no way am I testing that function to that level," but no where have I gotten an answer to "well then, what level?"

This may seem like a tangent to TDD, but in every case, I try to see how I could apply, in this case, TDD, to code I write, and it never seems like it's a good match. What I'm doing isn't a unit test (so what's a unit? Isn't a single function in a single file enough of a unit?). I'm not doing TDD because I have to write code first (but then, the testing code fails to compile, so there's not artifact to test).

People are dogmatic about this stuff, but there's no discussion about the unspoken assumptions surrounding this stuff. Basically, the whole agile, extreme, test driving design seems to have fallen out of the enterprise area, where new development is rare and updating code bases that are 10, 20, 40 years old are the norm and management are treating engineers like assembly line workers, each one easily replaceable because of ISO 9000 documentation. And "agile consultants" are making bank telling management what they want to hear, engineers be damned because they don't pay the bills (they're a cost center anyway).
Definitely an old article but a lot is still moving along in the DoD cloud native space. The article mentions Platform One, which has done a lot to provide open source resources for those using k8s within the DoD community.

There was a decent number of people who left Platform One and started Defense Unicorns. If you are interested in disconnected k8s deployments, checkout their open source project Zarf.
- https://zarf.dev/

They also have an interesting OSCAL compliance through kyverno project called Lula.
- https://github.com/defenseunicorns/lula
If the group is well organized, you seldom need to have cross organization collaboration to achieve your goals. Then you cannot claim to have leadership or complexity because stuff accomplishable by a single team is considered simple to do. Bad for perf.
I think you're technically on one of them
That's a bit silly.

It's more likely it's an attempt to break our (software engineering industry workers) bargaining power, compensation rates, and "entitled-ness." Expect this across the whole economy this year, but it shouldn't surprise that corporate sector would go after the most $$ workers first.

Oh, and most importantly, to get share prices up... in anticipation of immanent Q4 earnings report. Sundar Pichai's compensation is being tied to this: https://www.reuters.com/technology/alphabet-links-more-ceo-p...
To be fair; given the evidence of that timeline are Fuchsia and Midori, I think the more accurate statement is that the timeline for developing an OS from scratch is not less than 7 years, with an infinite upper bound.
They'll just use the same tech Apple did with their keyboards
Or mute them, which is an excellent solution.
Isn't the opportunity to make "fuck you money" the motivation for the risk of working as a startup? Without that people are probably better off working at a corp.
To be fair: From the little I heard at least the transition was super seamless, which is impressive for such a big change.

I always thought it was supposed to be a demo that Fuchsia is viable and can reasonably easily be migrated to.
Fuchsia never really cared for a particular GUI. They made a couple of shells which could only really be called demos because they ended up removed later.
Good - hopefully Chat GPT will be something I can subscribe to without ads. I spend far more time trying to suss out real results from Google's inserted ads.
> The founder of this company claims that the air speed is 120km/h

No, the claim is 200 kph. He also said it's about 120 miles per hour.
a) It's only about 6%

b) Google grew by 30k last year.

c) Google is such a profitable company, because their revenue is not directly tied to number of employees.
> In fact, our weekly retros were not what we could do better, but what the PMO wanted us to do differently (like report time estimated / worked on stories in Jira down to the minute).

As a Product Manager, fucking yikes. I'm sorry for that horseshit.
I know Nest lost headcount.
I was wrong, they actually had four at the same time.

https://www.cnet.com/tech/services-and-software/allo-duo-goo...
From the consumer's POV it was fairly seemless. Behind the scenes it was a slog. And they kept missing deadlines. For what?

It seemed more sensible to me that they should have just done it with a new device, instead of taking an existing device that had already shipped successfully into millions of homes.

Financially, made no sense, if one actually cared about labour costs. Duplicated engineering effort all over.
Not exactly, but 8K67 ( NATO: SS-9 "Scarp" and probably SS-19 "Satan" ) had so called ГСП (gyro-stabilized platform) - mechanical device that kept start position orientation. All flight calculations were made against that position. Very cool device inside.

And it was damned precise - allowed to hit targets with 100 meters precision (if I remember that right) on the other side of the globe.
And who will prompt the AI for these powerful people?
Because for whatever reason Python really attracts the Start Over And This Time We’ll Get It Right crowd. It’s why I don’t start new projects with it anymore, but make most of my living cleaning up the mess that incompatible changes make with existing software. So, in that sense, it’s great for keeping devops employed.
I really like React. I write a lot of it. But I was introducing my gf to react and had her read the documentation, cause that’s how I learned. First, it’s really easy to ignore the beta docs and end up learning class components. She wasn’t happy when I explained to her that what she had just learned is pretty out of date and not at all what the ecosystem uses. Second, there’s no simple explanation of forms! Oh sure it’s buried in the long intro tutorial but I’d love a one page tutorial on forms in react.

Also linting rules got way out of hand. Like a bunch of devs in the mid 10’s really decided to make linting the most annoying bunch of nitpicks around const, parameter naming, and other stuff that has no value. There’s a lint rule about naming the error parameter in catch “error”, not “err” or “e”. Who cares about this shit???
Yikes. That's my fault for assuming consistent behavior then. Apologies to the parent comment.
Google vows to cooperate with India's antitrust authority after Android ruling
If only one of these data breaches led to account balances getting wiped, THEN we'd see big changes. :/
And moving to Canada is a terrible decision owing to how mediocre that place is compared to the US.
>11GB VRAM

Aaarrrgghh let me know when it's down to 4GB like Stable Diffusion

The prompt-based masking sounds incredible, with either pixel +/- or Prompt Relevance +/-

VERY impressive img2img capabilities!
> Senior says task will take one day. Junior says it will take 3 days. What do you put into estimate?

Well, who's planning to do it?
This makes no sense, you benefit from the low prices if you are not buying.
> Seems hard to kickstart a new consumer os, turning a viable platform into something emd userable.

Actually ... the Android runtime is pretty portable and works VERY well on Chrome OS (you can even connect to VPNs and use custom keyboards through it). That's kind of 80% of what you need. I mean of course it's still hard, but it seems to me like they have all the parts they'd need. Which makes it all the sillier that they still haven't managed to fix Android updates.
Midori had a much more uphill battle due to drivers (which would all need to be totally rewritten in M#) and the total lack of sandboxing in Windows apps.

Phones are a static collection of hardware, so vendors will have an easier time with providing all drivers needed. And Android apps are much easier to sandbox, given they run on Dalvik and have capabilities and don't just run as root with access to /.

I'm still so sad Midori was never open-sourced..
i'm not saying i buy this conspiracy theory, but laying off ~100k high-paid tech workers in the noisiest way possible will definitely move the needle. maybe not directly, but there's a lot of uncertainty and knock-on effect caused by all these big layoffs getting a lot of press coverage
It's more of a sci-fi concept than a real thing
> This seems similar to the way command like arguments work on windows.

The previous poster overstates things. Environment variables passed to the process by the kernel[1] are NUL-delimited, including a double-NUL (or zero-length pair) to terminate the list of name=value pairs. Neither is there any syntactical ambiguity, as within each NUL-terminated pair the first '=' character delimits the variable name from the value, regardless of whether there are subsequent '=' characters. So there's no real parsing of the name=value content, only locating each NUL character in turn as a C array is built up by the entry code. The only limitation is that neither names nor values can contain the NUL character, and names cannot contain a '=' character.

The process startup code uses the exact same logic for constructing argv as it does for constructing environ/envp as they're both passed by the kernel in the same manner, including the same NUL-delimited structure. In fact, they're written as one long, serial sequence to the stack, above or beneath (depending on stack direction) the initial stack frame setup for the entry point. And usually argv and environ/envp arrays simply hold pointers directly to this memory region, at least initially. On Linux /proc/$$/environ reads out this region, so it won't necessarily reflect a process' actual environment variables once a process starts changing them.

[1] For both Linux and, at least historically, the BSDs.
Federal law still enforced against the ~44% of the population who have constructive possession of a firearm by virtue of owning one themselves or having access to one via living with someone else with one and it either being unlocked or locked in a way other adults in the house may be able to get to it.

If you toss in those under the UCMJ and other people on federal property, etc, I'd say weed laws are federally enforced against the majority or a hair under it.

For such persons there is still actively enforced 10 year jail sentence for being a pot user.

Not to mention all sorts of weird state exceptions. In my state they have legal weed but also a law that says ANY metabolites in your body is a DUI. Inactive metabolites stay in the body a long long time and surviving here on the abysmal public transport without driving would be quite unpleasant. So basically just as illegal as it ever was.
there is a large archive of roguelikes available here:

https://archive.org/details/ArchiveRL.7z
Kind of but in another way. It's an indirect tax on cash holders. Those who have the highest percentage of their wealth in cash/checking accounts/time deposits are poor and working class people. It's an easy way to grab money without too much resistance, which you'd get if you came for the assets of the actual wealthy: Stocks, real estate, etc. Most poor folks aren't literate in economics and don't even understand exactly what's happening, they just have a vague feeling they're getting ripped off by "those up there" and they're right. But they can't fight back.
Can I run it as docker container? I can't find any Dockerfile in the project root.
Here here, I agree. In the most recent versions we have seen speed increases. The fact that polars exist shows that there is a tone of low hanging fruit.

There is also dask to increase parallelism and performance which I’ve used on some massive datasets 200GB+
An Unofficial REST API for the Carbon Project in Go
CheapTrip - Unique search engine that finds the cheapest ways between cities, combining flights, buses, trains and ferries.
How does it compare to https://spymesat.com/ which has been around since 9+ years?
One of the prime prerequisites of e.g. zfs actually is using ECC RAM.

I’m running btrfs with integrity checks, in RAID 1 so it can automatically heal. Yet it’s non-ECC and therefore still has this gaping Achilles heel.
I don't think there was a single PA at Google that didn't lose people. From the stuff I've seen on LinkedIn via ex-colleagues, etc. I have a hard time believing that they d didn't just run a random # generator over the set of US employees, just drawing people out of a hat until they hit 12k.
That’s basically the same business model. It’s just a funnel.
>Do you have a better way of changing police policy to require the use of body cams in situations like this?

Making an honest effort to convince lawmakers and voters that we need more accountability in the form of bodycams? I know it's hard, but it's certainly going to be more effective than being intellectually dishonest by pretending that every police shooting without a bodycam involves police malfeasance. I use pretend, because I think even the most diehard bodycam proponent doesn't seriously think that every (or even most) police shooting has police acting maliciously. Doing so basically amounts to chanting "ACAB", which is great for signaling to your fellow activist friends that you also hate cops, but isn't going change hearts and minds. Remember, most americans trust the police[1], so chanting stuff like "ACAB" or "assume it's murder unless they can prove otherwise" is only going to alienate them.

[1] https://www.pewresearch.org/science/2022/02/15/americans-tru...
Yeah, Pandas is so awful they copied the api almost exactly, but with less control over functionality.
I don't know about Sam Altman specifically, but as technical people we are at risk of over-valuing technical work and under-valuing political work. Even in technical fields, political work (getting support of right people, integrating yourself in right communities, aligning incentives) is as (if not more) important as getting the code/math/circuitry right for someone to succeed. Being able to do political work really well would explain his success.
Yeah fair enough, but I still think "wearing something on your face will be one of the main modes of media consumption" is far from a safe bet.
> they also are building capital ships, like Aircraft Carriers, and also producing ship killing Hypersonic Missiles.

The Chinese need a full compliment of carriers to enforce a total blockade of the island and effective hypersonic anti-ship missiles to fend off US capital ships. The launch platform (H-6N) for the hypersonics is already in their arsenal. When the carriers and missiles are available it's all over for Taiwan. This is less than 4-5 years out as China is urgently working on both.

Meanwhile the US is developing LRASM, Rapid Dragon and others specifically for this scenario. The missing piece is a really long range anti-aircraft missile to threaten the H-6 fleet without exposing nuclear powered US capital ships to Chinese weapons. The F-14 would have been an ideal platform for this.

Ultimately though, unless the US is willing to go all-out kinetic with China over Taiwan there is no hope. It's a small island 100 miles off the coast of an enormous, powerful, wealthy enemy with an epic chip on its shoulder, and its key ally is on the wrong side of the Pacific.

Smart money can see this so advanced fabs are popping up all over the West.
True. It's absolutely a pipeline problem, and "tech" isn't even the solution as much as improving educations overall. I also thing home environment has something to do with it, and there's only so much public schools can do there.
I was under the impression running such file systems without ECC was kind of reckless and not a solution either? I recall ZFS being “useless” (not technically entirely bulletproof) without ECC.