skysight-inc/HackerNews huggingface dataset:
Note: none of the code below has been tested!

I have no idea how one does I/O to stdout in Node, so in the following I'm just going to assume that we have a function printi() that takes an integer argument and prints it, without and padding and without a newline, we have a function prints() that takes a string and prints it, and that we have a function nl() that prints a newline.

Here's a program that would print the numbers from 1 to 9999999999999999999, which is larger than 2^63, without using BigInt.

for (let r = 1; r < 1000; ++r) {
printi(r); nl()
}
for (let l = 1; l < 10000000000000000; ++l) {
for (let r = 0; r < 10; ++r) {
printi(l); prints('00'); printi(r); nl()
}
for (let r = 10; r < 100; ++r) {
printi(l); prints('0'); printi(r); nl()
}
for (let r = 100; r < 1000; ++r) {
printi(l); printi(r); nl()
}
}

That's not yet FizzBuzz but it could be made so by wrapping the print lines with a conditional check to see if they should be replace with Fizz, Buzz, or FizzBuzz. Just keep a variable around the is the current line number mod 15, and use it for the FizzBuzz logic check.

But first let's take a closer look at the "count to 9999999999999999999" program and see if it can be sped up. The first thing to notice is that each time through the outer loop it calls printi(l) 1000 times. Printing integers is often slow so calling printi 1000 times on the same l is not good.

Instead, we should print l to a string at the top of the outer loop, and then prints that string in the inner loops. I'll assume there is an itos() function that takes an integer and return a string.

We could also precompute all the right side strings.

let right = []
for (let r = 0; r < 10; ++r) {
right.push('00' + itos(r) + '\n')
}
for (let r = 10; r < 100; ++r) {
right.push('0' + itos(r) + '\n')
}
for (let r = 100; r < 1000; ++r) {
right.push(itos(r) + '\n')
}

So now the counting parts would look something like this:

for (let r = 1; r < 1000; ++r) {
printi(r); nl()
}
for (let l = 1; l < 10000000000000000; ++l) {
left = itos(l)
for (r = 0; r < 1000; ++r) {
prints(left + right[r])
}
}

Now add in the FizzBuzz logic and put it all together:

let n = 1 // current count % 15
let right = []
for (let r = 0; r < 10; ++r) {
right.push('00' + itos(r) + '\n')
}
for (let r = 10; r < 100; ++r) {
right.push('0' + itos(r) + '\n')
}
for (let r = 100; r < 1000; ++r) {
right.push(itos(r) + '\n')
}
for (let r = 1; r < 1000; ++r) {
if (n == 0) {
prints('FizzBuzz\n')
} else if (n % 3 == 0) {
prints('Fizz\n')
} else if (n % 5 == 0) {
prints('Buzz\n')
} else {
printi(r); nl()
}
if (++n == 15) n = 0
}
for (let l = 1; l < 10000000000000000; ++l) {
left = itos(l)
for (r = 0; r < 1000; ++r) {
if (n == 0) {
prints('FizzBuzz\n')
} else if (n % 3 == 0) {
prints('Fizz\n')
} else if (n % 5 == 0) {
prints('Buzz\n')
} else {
prints(left + right[r])
}
if (++n == 15) n = 0
}

That's going to be slower than a similar simple FizzBuzz that just goes to 2^54-1, but I don't think it would be a lot slower.
Computer God and the Escape from Reality
This is rationally protecting what status you do have, not fooling yourself into believing you are much higher status than you appear. This is normal behavior you can see discussed at https://en.wikipedia.org/wiki/Countersignaling. The embarrassed millionaires theory infantilizes working-class people with a false-consciousness argument that doesn't seem to understand that class warfare has gradations other than "rich" and "poor".
Yes, everything dropped on your corpse on death.

The vast majority of gear used by people was crafted by others, but higher level monsters dropped magic items that increased their accuracy, damage, or durability. Or, had a "slayer" affix against certain enemy types that caused additional damage toward them. For example, might find a "Silver Katana of Vanquishing" that would vastly increase damage against liches or other undead, which would have been a highly coveted item (and a nice prize for a PK who found you deep in a dungeon with practically no escape).
Try New Ideas from Dead Economists by Todd Buckholz, a gentle and non-ideological introduction to a wide variety of theoretical concepts in economics.

For personal money management, ignore macroeconomics but develop some capability at micro, which is useful in many everyday contexts, from household budgeting to managing your time. Macro is just micro with more price theory and overconfidence. (Seriously, macro is interesting but the theoretical foundation is wobbly and prone to fads. I like the econophysics approach of treating economic systems as kinetic models myself.)

There are lots of good books but everything you need to know for personal use can be found in an AP study guide. Barrons (the financial daily newspaper) publishes an excellent and affordable series of study guides on this and related topics. It's not hard, a great deal of economics is just measuring the area under a curve, ie basic calculus.

Be ware that political evangelists promote personality authors as being the only ones worth reading, eg Marx on the left, Friedman or Hayek for libertarians, Thomas Sowell for conservatives. These are all meme writers who are more interested in getting you to agree with a particular interpretation of the world than developing independent reasoning skills, so I suggest treating their fans the same as religious solicitors.
You literally can connect 5V instead of the battery (and a capacitor for some more stability) and the phone will gladly take that and power on.
Yeah, I wonder why there aren't a ton of these studies?

> Funding Information: This study had no funding support.

Oh.
For a country that gave birth to nearly all of the technologies the world is using, seeing the U.S. response to covid in terms of vaccination proof was an absolute shock. My American friends were walking around Europe with a piece of paper saying they got vaccinated. So yeah if you guys can't get your shit together and create a centralized vaccination certification system amid a global pandemic, a standard website kit isn't happening either.
- Google is not the police force of the web.

- You, I, and many others don't like those sites but they are legit so, unless they really do shady things that go against Google's TOS, you can't really expect any action to be taken against them.

- https://github.com/quenhus/uBlock-Origin-dev-filter
This part - about professionalization and automation -- feels especially fresh:
"This process by which the intellectual capacities of a particular job are turned into processes that could theoretically be subject to automation is also known as professionalization. For Industry 4.0's purposes, which is positioned as a general upgrade of the current world, it is imperative that labor supply quality improves.

Professionalization is a great bargain for many. Wages rise, in exchange for the worker having to become more skilled and educated. The standards of labor rise, thanks to the increase of technique and information available to the worker. The public gets better services and goods.

This also makes the processes of labor vulnerable to automation as a matter of course. A job that you can learn to do, that has set rules, processes, orders, can theoretically be automated. As long as you don't need to use your hands too much, or aren't reliant on snap judgment, the wonderful pattern detection and signal/noise filtering of the human brain, your skills are potentially automatable.

"
For people wondering how this can be neutral, I found their method quite interesting. From what I gathered, they deploy some bot accounts that follow one initial political account, and then all interactions afterwards (liking posts, following other people) are random.

From this, their main finding was that

> We find no strong or consistent evidence of political bias in the news feed

But while this study focuses on algorithmic bias, I thought one of the main accusations about platform bias was that twitter banned/suspended more conservative accounts than liberal ones.

Also something I found interesting:

> Conservative accounts also find themselves in denser communities and are exposed to more low-credibility content

With the definitions of "low credibility" based on previous research papers:

> A low-credibility source is one that exhibits extreme bias, propaganda, conspiratorial content, or fabricated news. We use a list of low-credibility sources compiled from several recent research papers. Specifically, we consider a source as low-credibility if it fulfills any one of the following criteria: (1) labeled as low-credibility by Shao et al.33; (2) labeled as “Black,” “Red,” or “Satire” by Grinberg et al.49; (3) labeled as “fake news” or “hyperpartisan” by Pennycook et al.62; or (4) labeled as “extreme Left,” “extreme Right,” or “fake news” by Bovet et al.63. This provides us with a list of 570 sources.
Please do ban, it tells more about you than me. I'll just open a new one.
Social Natives ≠ Digital Natives
The longer you are a developer, the more you see fads a cylic just like anything else in this world. rebranding happens every 5 to 10 years for most things.
What is new is old again.

ActivePython was available via the <object /> tag for Internet Explorer back in the early 2000's.

https://www.componentsource.com/product/activepython/about
>the food prices in Europe hit new highs in the coming fall

energy too - Russia uses the food for blackmail in the energy space too as it clearly communicated to the African countries where Europe was trying to get natural gas and oil to replace Russian ones that such help to Europe will be punished by blocking Russian (and Ukrainian to the extent that Russia controls it) food for those countries.
Yeah but of the thousand of times I heard "GMOs are bad", 999 were followed by "to your health".
I think this thread misses the point. The motivation for pyscript is the accessibility of Python, because it can be adopted even by persons without years of programming experience. I see it regularly in my company with youngsters.

This alone makes it deserve its existence and further pursuit (“for the other 99%”).

Imagine a world where only mechanics could drive cars, because the way they worked “would be fine with him or her” but for everyone else there would be a steep learning curve to overcome initially - which most won’t embark on because there are other goals in life too.

Keeping with the analogy, normal cars are still not suited for Grand Prix racing or other heavy use cases. But this is not needed for the 99%.

Its the same with Python, its limitations, and the better suitability of other languages for a mix of specialised and performance use cases.
It’s not easy, but it’s hard to believe that a company with Googles resources and dominance can’t build a good solution.
Three from a population of how many? Compared to how many in some other possible world?

As long as people are being killed in numbers many orders of magnitude greater, just so sugar sellers will have good quarterly profits, it will be hard to count those.
In my case I am not sure if it's just more experience or search engine degradation of the past 15 years.

I used to search for solutions a lot more, nowadays, with the amount of content farming and spammy blog content, I feel a lot more averse to any search query at all.

The threshold is raised such that I really need to be stuck to go online and I will usually end up in vendor forums at some endpoint.
Did you read it to yourself maybe? I had a stranger read it to me so it sounded like a strange accent. Kind of like Magic Eye, I did perceive both the illusion and the fakeness of it at the same time. But it definitely did not feel like telling Siri to read the list

* ladle

* rat

* rotten

* hut
I hear you. Crocodile has a couple features that try to address this.

1. More comment states. Comments start as "open". The workflow I had in mind was that once the author addresses it, they would mark it as "resolved". The reviewer can go to the comments view (in the meta section on the left nav) where they can filter to resolved comments. If it looks good, they can mark it as "closed" or "open" again if they want more changes. I have this as a suggested workflow in the docs. [1]

2. The iterations section in the left nav lets you compare any two iterations. You can use this to see what has changed since your last review. Crocodile even indicates which iteration your last review was on to make this easy.

[1] https://www.crocodile.dev/docs#commenting
Here's the best part: "I don’t need kid gloves but a week of severance for 10 years is absolutely a fuck you."

What in the hell? I have been laid off from an imploding startup and gotten more severance with less "time served".
"realistically the meat of it requires more “advanced” knowledge but so does making a really good spreadsheet."

Same way the no-code developer doesn't want to learn the harder (more useful tool), the coding developer balks at learning a shitty, constraining language. There is no advantage to learning and using a no-code tool, which is likely incompatible with other tooling. The knowledge is "useless". Its the same aversion a programmer has to "sphaghetti code", not because it doesn't job the done, but because the knowledge is specialized in a non-useful manner.

The advantage most developers have found, is that most languages in the C++/Java tradition contain portable idioms - I don't care if you don't know the exact syntax for a for loop, an if statement, etc, once you've learnt to program once, a decent editor makes learning language syntax largely irrelevant. If I were hiring, I would care that you learnt and can use 3+ languages, I don't care which (code) langagues.

Now, there are plenty of idiosyncracies within textual languages - package managers, arbitrary gotchas due to language design (is it a reference? immutable? Does it live on the stack/heap/get auto collected?) - textual programmers shouldn't pretend like we live in a perfect world either. Most no code solutions though are going the complete opposite way of standardization. Its like being told "here's a jail, its your new home" and being supposed to be OK with that.
This Aussie thanks you. I equipped my best-worst "deep south" accent and it suddenly all makes sense.
"You're wrong" + insult is not the kind of reply we are looking for here on HN. Either post a constructive argument explaining how they are wrong in your opinion, or abstain from commenting.
I think Pocket is fine. People just want a browser project to be this pristine piece of perfection - open source, independent engine, donation funded, free to use - which just isn't realistic. I know, I used to be one of those people and raged about the Pocket inclusion.

As much as I loathe modern Mozilla's attitude towards doing things, people do hold them to an impossible standard. Browser development has to be paid for some way, and a thing like Pocket is a genuinely useful add-on service.
Family Offices and Roth IRAs don't exist in the same universe.
smh you beat me to it
Elon Musk says new Tesla factories are “losing billions of dollars”
Sometimes the treatment is worse than the decease.

But more profitable.
Not really, the overall tone of the article is more like “my weekend project failed to produce results that agree with established ideas, everyone in that field are idiots because they have ‘science’ in their name”.
In our household it's Fountain Mustard Sauce. Unexpectedly, it's the ideal sauce for home-made hamburgers. Allegedly still being made but never in stock anywhere.

https://www.woolworths.com.au/shop/productdetails/37805/foun...

Now our burgers are flavoured with a tinge of sadness and regret.
Amazon disclosed in its quarterly earnings announcement that AWS revenue totaled $18.44 billion in the quarter [snip]. That works out to about 16% of Amazon’s total revenue.

https://www.cnbc.com/2022/04/28/aws-earnings-q1-2022.html
Yeah Discord is a pain to manage in corporate settings. No SSO, needing to play footsie with Alice creating an invite link so that Bob can join, and only then Alice can attach the correct roles. If people don't use usernames that correspond to their real-life names, then auditing access to ensure users and roles are cleaned up after real-life changes is a huge pain.

Discord is great for small start-ups to help create a virtual office space for remote work, but it really doesn't scale well.
Seems like an odd example when HIV/AIDS can be prevented through PrEP now.
Quite surprising sentence to encounter on new comments feed.
The official press release for 6.0 states:

> Almost like clockwork, PCI-SIG has doubled PCIe specification bandwidth every three years to meet the challenges of emerging applications and markets.

This is not a perfect cadence. 5.0 was only 2 years. 4.0 was 7 years. But it's not a bad back of napkin figure.

As for buses getting faster, it's a mix of market demand and improved technology. Market demand is that we have SSDs, network cards, graphic cards, and soon expandable memory (CXL & perhaps others) that need the throughput, where-as for a while it was kind of exotic just having a 100Gbit ethernet port (12x ports worth at 3.0 speeds) or two in a system. Similarly, getting to 4GBps capable SSDs took a while, as we learned to stack layer after layer of flash & build better controllers. The demand wasn't there. But we've really scaled up a lot lately.

And yeah the tech has improved. We've gotten a lot better at building transceivers. PCIe 5.0 is 32GT/s, which is "only" 60% faster than DisplayPort 2.0 which does 20GT/s over a much lower quality much more challenging channel. For PCIe 6.0, instead of jacking up the speed, we use PAM4 to effectively send two bits at a time (32Gbaud * 2bit). PCIe 7.0 will be another speed bump (64Gbaud * 2bit), and isn't going to be super easy, but we'll have very carefully specified channels, be using newer lower-power higher-efficiency designs... it'll be hard but we need that high target to shoot for, to have growing room.

In some ways, this is all just downstream of what datacenter ethernet does & needs. 400Gbe is here & often uses 8 lane connections (QSFP-DD), so 50GT/s on each lane from the switch to the transciever and/or cable (which by the way look awesome [1]). But we're already well underway doubling that, to 800Gbe and terabit ethernets, so we're already making quite a lot of silicon that does 64GT/s+. Simply leveraging what we know about signalling in other places, & bringing that wisdom & experience to PCIe, makes sense.

[1] https://www.fs.com/products/82459.html?attribute=3424&id=175...
Nice! More gatekeeping in the tech world. "actual seniors" vs "seniors"
and still loads of fun.
Still harboring some resentment from being pwned? :D
I was addressing your analogy to "stolen election".

At any rate, I'm just pointing out that (1) any decent project would address this situation once they were aware of it, (2) Apache is aware of it, and (3) they had way, way more than enough time to at least acknowledge the issue. Neither ignorance nor bureaucratic slowness can excuse their complete lack of taking any action to protect their users. If you exclude ignorance and slowness as reasons, this is intentional.

I don't know why, but the fact that something is actually wrong on a significant scale and is intentional in no way matches "stolen election logic".
> This sounds like post-hoc rationalization.

Uhm, no, it's not.

I'm using a 1gbps symmetric connection at the office, for the last decade or so. The network speed is limited by my NIC and the cabling to the switch. The network at the office has more bandwidth (we're the network backbone).

We have fiber ran into our apartment buildings. My apartment's termination box is at the wall across my flat door. On the other hand, the speed I can get from that fiber is not higher than the current VDSL offerings, and they both cap at 100mbps downstream (upstream is probably limited at the same speeds with VDSL). Since the FTTN box is also outside, the speeds and stability from that VDSL connection is rock solid.

For no apparent speed advantage, I need to terminate a thick fiber, and need to run it in the open across the house, drilling walls in the process, or move my house's whole internet infrastructure near it. Both are illogical given the floor plan of my house.

Then comes the equipment part. Again, I'll need to change my core router at home and change everything (I have a mesh network at home), or cascade it to ISPs fiber router, which is another box, more cables, and more management. If the ISP allows me to use my own router, I'd need a media converter from fiber to copper. Which's again more cables, more boxes, more management.

As a result, I'd rather use my house's in-wall cabling to get the speeds I'm happy with instead of getting a shiny (pun intended) technology with no speed advantage.

If the speeds offered here changes over time, I can re-evaluate my choices, but as the xDSL technology gets better, I'm guessing that it'll keep the same speeds with fiber offerings, at least for residential stuff in my area. So, I project that I can upgrade my network speeds at least for a decade without changing my network equipment or cabling.
So I was recently very attracted to some no-code platforms because I have a simple cloud based application that interacts with some APIs, authenticating with OAuth2. I know what I want to do, but as a primarily systems developer with very limited web development, I have no interest or desire to start creating websites to perform user authentication (not least when I only have one user), along with storing credentials securely, running a server etc etc.

It feels to me that some service should exist that provides the API plumbing I need so I can just write the code that processes data and writes to APIs. Things like zapier can probably do it, but then it becomes a hassle to add arbitrary code to the mix. Does anyone know of anything that can help here?
172.16.0.0/12 is a private subnet. This means that it's addresses are relevant only within a local network, and never over the internet. If you try to send a packet to an address within that subnet, layer 3 devices (i.e. routers) on the internet will drop it.
IMHO being good at asking goopd questions when searching for solutions is a skill in itself and if done correctly -> can save you days of reading documentation or source code debugging (which both can often be very poor).

So by Stackoverflow I “waste” few hours getting “less things done” my productivity is “worse” by gaining few days reducing time required for solving the issue.

Scratching my head here..

Ps. Thr survay seems extremely biased by getting mostly JS developers / freelancers to respond. Enterprise world looks completely differently.
For European cities should be a footnote "under condition you inherited an apartment or parents put you on social housing waiting list when you were 4". Doesn't really matter how "livable" is Zurich or London if you live like a homeless dog with all possessions in one suitcase.
The idea with D is to not require a linter!
Try out https://github.com/melezhik/sparrowdo if you are looking for a remote hosts management or sparrow/tomtit ( the same engine ) if only for local tasks ( disclaimer - I am the tools author )
Related, I work on Nitro[1], which already offers a polished set of widgets, and a very simple way to author web apps using Python. I'll be releasing Pyodide support this week.

I also contribute to Wave[2], which provides a wide variety of widgets that can be snapped together quickly to build realtime dashboards/apps.

Both help non-front-end folks build web apps, and require no knowledge of HTML/JS/CSS.

[1] https://github.com/h2oai/nitro

[2] https://github.com/h2oai/wave
Yes, the entire field of cancer treatment is a scam and every oncologist spends 12 years of school/residency just so they can make as much as a good software engineer with no degree.