skysight-inc/HackerNews huggingface dataset:
Show HN: Stackjoy – a language agnostic code generator
This is an example tutorial on how to use Stackjoy to quickly generate customizable components for an Angular codebase.

We have been using Stackjoy as independent contractors for a while but it was always just a bunch of code glued together to serve our own needs. A few months ago we decided to make it more ready for a wider audience. We’re not yet fully there but we’re at a point where we can start showing what it can do. It was built with Angular so we’re starting with Angular generators…in fact, we used Stackjoy to build Stackjoy.

It may not be something you’d use now for your software development but we have many more ready-to-use examples coming. Stackjoy is language agnostic so it works for any programming language.

If it is something you could see yourself using we’d really appreciate your feedback. Even if it’s not, we’d appreciate your feedback too so we can better understand why and hopefully we can address it in the future.

Lastly, if you have any suggestion for code generators you’d like to see, we are happy to hear about it and put it on our list.
Is there a valid source for this number? All the articles I see seem to quote each other.
I think it takes experience.

You send out an email and people misinterpret it, and there’s some nuance, and there’s a bunch of back and forth communication, but nothing ever gets resolved—maybe that should have been a meeting.

You set up a meeting to explain something to 50 people in your department—maybe that could have been an email.
If you have to handle multi million I/O's or files, or GB/s or TB/s bandwidth, just use DAOS.io storage. Awesome fast, scale out and self healing.
I think you are jumping to conclusions about my choices. Why do you explain to me how to decide when you don't know my objectives and constraints?

My main language is Python, to that I'd like to add a compiled, native code, fast-ish, statically typed language with good Python interop. That takes away JVM and .net languages and leaves, roughly, C++, Rust, Nim, maybe Go. I take Go off because I don't like it. I also can't stand modern C++. What does it leave me with?
Homogeneity is necessary but not sufficient. Italy is pretty homogenous (95% Italians) but it’s not a particularly high trust society.
Sounds good, will be watching.

Squyres' book, Roving Mars, is highly recommended. A deep, technical accounting of his life-long ambition to get his equipment on Mars.
he has figures for both cached and uncached performance

if all your scans had to reread the file from nvme it would take five times as long if we extrapolate from those figures

not forever
Paredit changed the way I write Common Lisp, and I personally consider it a sort of killer feature of developer experience. Combined with canonical indentation of Lisp code (where every line can be indented in essentially just a single correct way, determined automatically by the editor), editing Lisp code actually becomes one of the most pleasurable of activities in programming. When you go back to editing Python, JavaScript, or C—even with a slick IDE—it just feels like a DX regression.
Then why are most company websites made with scrolling?
As a lecturers in a uni, I used to deliver all my lectures using slides, (PowerPoint, Beamer or Keynote).

My problem with slides is that my students have a stated preference for knowledge disseminated via simple web pages. So… I switched to simple web pages. They can be a bit clumsy to deliver in a live lecture, but at the end of the day a lecture succeeds or fails by my energy, not the medium.

The advantage of working in this way is that it place me close to web searches, linked material etc. This serves the inevitable extemporaneous diversions I encounter via student questions.
The possible fine for Microsoft would be 4% of the sales revenue of the whole company, which would amount to 6.8 billion dollars (at 170 billion dollars revenue in 2021)
Ask HN: What is the best online community you've ever joined and why?
I'm trying to build an online community for my project. I want to learn better practices from other communities (I read Lifelong Kindergarten, and the Scratch community looks excellent to me), so I wonder what your favorite online community is and Why?
The 11.5 million “ more than double the bank's previous net worth “ and they had 3 employees.

I’ve some exposure to rural banks due to some family in that business, and I’ve never heard of one that small…
I always mention that a shell is a poor man's REPL, based on REPL based OSes like the ones from Xerox and ETHZ used to offer their OS interaction workflows alongside the development experience.

Shells like Powershell and Fish are the closest to it, due to their integration with programming language and OS APIs.
It's disgusting that this comment had to be vouched for, it's common sense.
Next is Windows 11 with its always log-on requirements.
And i mean, they are transparent about it.
I explored that at some point, but more to replace non lexical items, such as dot, esperluate, parentheses and so on with relevant lexical terms.

Also moving the language to other lexicon than English can be fun, without making necessarily code more obfuscated. Esperanto is wonderful to come with meaningful identifiers, and completing the harmony of code down to keywords is a nice plus.

So far, I think that zsh is the one language that let you go the further in this direction, as you can even alias things like disjunctive operator && with for example "eft", apipe operator with something like "that", and even "alias" itself. In C and C++ you can't alias #define if I recall correctly.
Because scrolling reminds people of the infinite scroll and they walk away in the middle of the talk?
the problem is that enforcement is already applied unevenly… for example, the IRS audits low income people at a much higher rate than the rich (https://trac.syr.edu/tracirs/latest/679/)

So to me this sounds like the IRS continuing to pinch pennies from low and middle income americans instead of going after the people who twist the tax code to hoard wealth
It's true, I/O is no longer the bottleneck.

The bottleneck now is interviewers who think they have the knowledge and expertise, but do not. However their authoritative position ends up distorting everything, and then said person blogs about it and causes even more problems.
Everyone has something to say and most of it is noise just like those portraits except now the gallery is going to be 1000 to 1 useless portraits to meaningful art. What is good will be lost in a sea of mundane as everyone tries for the spotlight.
The difference is that each of those are their own little silo, instead of being part of a single language ecosystem.
> Why should they, though?

Because of what I mentioned in my previous comment. Because we don't have a scientific answer to how a group of nomadic hunter-gatherers would be able to construct some of these complex monolithic structures, millennia before the dawn of modern civilizations. The timelines we're talking about here certainly make it difficult to gather any conclusive evidence, but the fact that these structures are understudied points to deficiencies in modern archaeology.

Hancock never claims to have the definitive answer to these questions, and from my exposure to his work, he always phrases his claims as a "what if ...?" scenario. He weaves some loosely related myths into a somewhat coherent narrative, but it's clear that as a journalist, he has no scientific qualifications, nor has he done scientific research to present any definitive conclusions.

My point is that any reasonably well educated person who is not already prone to conspiracy theories shouldn't find his work to be conspiratorial or untrue, but mostly interesting and entertaining. Rather than dismiss his wild ideas as being "pseudoscientific" (which is ridiculous, considering he never claims to be a scientist), we should invest more in funding actual scientific research so that we can get some valid answers. Until then, I'll find shows like Ancient Apocalypse very entertaining.
This refers to your comments more than others. There's a lot of mental gymnastics you're engaging in.
Royal Danish Ballet Kicks Out John Neumeier
The Top 10 manufacturers for 2021 were[1]:

1 Toyota Motor Corp 10,495,548 (same) +11.8%

2 Volkswagen Group 8,610,100 (same) -5.5%

3 Renault Nissan Mitsubishi Alliance 7,680,014 (same) -1.3%

4 Hyundai Motor Group 6,667,085 +1 +5.0%

5 Stellantis 6,583,269 +1 +5.2%

6 General Motors 6,291,000 -2 -7.9%

7 Honda 4,121,000 (same) -6.5%

8 Ford Motor Company 3,942,000 (same) -5.9%

9 Suzuki 2,763,000 +1 12.9%

10 BMW 2,521,514 +1 +8.5%

Notice who's not in that list?

Now let's look at market capitalization[2]:

1 TeslaTSLA $568.87 B

2 ToyotaTM $202.86 B

3 PorscheP911.DE $101.44 B

4 BYD002594.SZ $86.39 B

5 VolkswagenVOW3.DE $84.30 B

6 Mercedes-BenzMBG.DE $69.28 B

7 General MotorsGM $57.48 B

8 BMWBMW.DE $57.39 B

9 FordF $56.60 B

10 StellantisSTLA $48.87 B

There is no possible way Tesla is worth more then double what Toyota is, while shipping about 1/10th of the vehicles. The Price-Earnings ratio is 56, vs Toyota's 9.

By every possible metric, it is vastly overvalued compared to it's profitability, and there's no reason on the horizon to think it will suddenly catch up since all those automakers are moving directly into it's space.

[1] https://www.carexpert.com.au/car-news/who-won-the-automotive...

[2] https://companiesmarketcap.com/automakers/largest-automakers...
> Its then-president, John Widman, told the newspaper that it had stopped making mortgage loans because the paperwork was too much effort.

> Its single branch had three employees until this year, and didn't offer online banking or even credit cards. It instead specialised in agricultural loans to farmers.

> For a decade, Farmington's bank held around $10 million in deposits. In the third quarter this year, deposits jumped to $84 million – 85% of which came from just four accounts, according to FDIC data cited by the Times.

> The town of Farmington has just 146 residents, and is so small that Google Street View doesn't cover the whole town.

I mean, it definitely looks like they were looking for a tiny, out-of-the-way place to do shady stuff. That said (and this is a rookie question for you financial crime geeks out there):

Why buy a bank?

If you’re a criminal and your goal is to launder money, what does owning a bank do that owning a (for example) car wash or funeral home or laser tag venue doesn’t? Is it purely a scale thing? Given all the regulatory hoops you’d have to jump through in order to buy a bank, I’d think there would be other ways to achieve the same scale with less oversight.

Also, if you’re going to buy a bank, I get why you’d want to buy a small one (smaller purchase price and fewer headlines). But wouldn’t a sudden order-of-magnitude increase in assets or loans made (or whatever) set off a ton of red flags at the SEC, FDIC, and various other federal and state agencies?
Japan doesn’t have particularly generous social programs, and has plenty of poor people.
Pro Tip: If someone says that some cool, new, bleeding-edge, nothing-yet-commercially-viable technology will change the world - then you should stand aside, and let the techno-utopians and other "stupid money" fund the R&D.
I think you know the answer to your question, which is that normal end users who build PCs basically never use them. Power users with NAS and huge porn collections and servers, of course they still do.
It's incredibly important NEVER to reveal information visually before you get to talking about it. With scrolling, you'll be showing bits of the "next topic/points" at the bottom of the screen (unless you're incredibly careful) and people will be paying attention to that and guessing what comes next rather than paying attention to the discussion. (Don't know why people do, they just do. People are curious and easily distracted.)

Therefore, you need a fixed canvas to flip through, for total control. Hence, fixed slides rather than scrolling.

This is also why when slides have multiple main bullet points, it's very common to only reveal them one bullet at a time. This ensures you have the audience's attention as you discuss each one, and their mind isn't distracted by thinking about the next.

So that's the main reason -- to carefully and precisely control the flow of information, to sync talking/discussion with the visual.

Secondarily, slides lend themselves to attractive layout of images etc. for maximum effect of storytelling and emotional effect. Of course, for a highly technical presentation, that may be irrelevant. But a lot of talks do include a storytelling/emotional aspect where the dramatic framing of a single photo is important, which you need a slide with a fixed layout to do.
I don't think I would trust a "state sponsored purchasing office" to identify the fair market value of an exploit or even separate legitimate exploits from fake ones.
Because math is a social field as much as it is an intellectual one.

What gets rewarded in mathematics is what other mathematicians respect. What other mathematicians respect is math that is hard, rigorous, and abstract. So that's the type of math they teach because the people who do well in modern mathematics are the people who excel at that style of math.

For what it's worth there are fields of mathematics that are taught well and that are very concrete. They also tend to be lower prestige. I'm particularly fond of numerical analysis. Nick Trefethen at Oxford put out a good series of lectures from his course that is understandable to anyone who remembers the basics of calculus and linear algebra: https://podcasts.ox.ac.uk/series/scientific-computing-dphil-....
> When writing real systems, considering things like "oh well actually there is a stack depth limit" is zero help at best.

That's not what I'm arguing at all. I'm arguing that as long as you restrict the programs being analyzed to the subset of programs that use a finite amount of memory (i.e. those that can run on a computer), then all so-called undecidable theories suddenly become decidable. And that this could be a property that we could perhaps exploit to analyze programs more efficiently.

But you don't have to make your models more complicated. It's simply a property that you can exploit, whenever you want to.

> We write static analyses that operate on abstractions of a program, which will generate some false positives or false negatives for whatever thing we are looking for but end up with a system that works well in practice.

Exactly. Wouldn't it be better if you could always have true positives and true negatives?

To be clear, I'm not saying that we can do this right now. But it's an avenue worth pursuing, IMHO.

> We have not "solved the Halting Problem" nor do we believe that it is actually decidable when we build these systems.

It is decidable, that's my entire point! If there's a finite amount of memory, the theories become decidable!

Perhaps you're just confusing time complexity with decidability?

> There is no cycle detection algorithm (of actual program semantics - not finding loops in CFGs or whatever) that will never produce a false positive or a false negative that runs on all possible programs and terminates in anything resembling a reasonable time.

Exactly, there isn't! Which is why we should find one that terminates in a reasonable amount of time. That's what I'm arguing.

> Actual deployed algorithms have some number of false positives or false negatives (or both).

Agreed.
They didn’t respond to the NYT in another article either.

I don’t think they are going to respond.
What truly blows my mind: this is technology that is built to be destroyed.
this list is really helpful

https://github.com/quenhus/uBlock-Origin-dev-filter
There is a massive opportunity cost to teaching kids the amount and level of math that we do. The vast majority of people aren't going to use more than basic algebra and geometry. The common answer is that, even though they have zero practical use for higher math, they will develop reasoning skills. Teaching logic in HS would give reasoning skills that are directly practical to everyone.

Other things that we could teach kids if we made higher math elective: basic statistics, practical economics, entrepreneurship, emotional literacy and other soft skills. And, by far, the most important thing we could be teaching kids is a deep understanding of all the possible ways they can make money in this world. That's just a quick list off the top of my head.

This is coming from the perspective of an auto-didactic HS dropout who ended up achieving success in a tech career. Math was a big part of why I dropped out and not because it was hard. I got to polynomial equations in algebra and thought: I could do this, but it is repetitive and pointless, which was exactly how the rest of HS was to me at that point.
Joyce pushes an antisemitic conspiracy theory. She claims she made a simple error with the names of two charities. (George Soros made a very large donation to a human rights charity, and a very much smaller donation to a pro-trans charity, and Joyce swaps these around to make out Soros paid huge amounts to pro-trans organisations). But, we know it's an antisemitic conspiracy theory because we know where Joyce plagiarised it from - Jennifer Bilek.
I taught (ahem) data structures and algorithms from a book I really liked (T. Standish, Data Structure Techniques, 1980) which emphasized the mathematical aspects of the subject. (It's still available on Amazon for the bargain price of $6.40.) My students hated it. I told them that it can't be read like a novel; that every line has to be studied and understood, individually, in order. I failed as a teacher, either because they didn't follow my advice, or it was the wrong advice. My suspicion was that Standish's approach required too much effort; that the reward was not instantaneous.

I was taught high school "new math" from an English (O-level?) text that started with sets and was not divided into algebra, trig, geometry, etc. but provided an integrated approach that covered topics as they naturally arose. My teacher (Eric Turner, now deceased, so I was unable to let him know how much he affected my life) probably had much to do with it. He also taught physics, so perhaps he really understood both the abstract and the practical.

I have two only complaints about my mathematics education: the knowledge of how to construct and deconstruct proofs, and no statistics (too much calculus).

My kids, 17 and 15, don't grok mathematics the way I think they should. Tis a pity since underneath it all is mathematics.

By the way, there are some really excellent mathematics video channels on YouTube: 3 Blue 1 Brown comes to mind.
Because visiting a web site is a very different experience from listening to a talk. When you visit a web site, you (the visitor) has control of the presentation. When you listen to a talk, the speaker has control.
Haven't gone through the code, but measurement methodology seems wrong to me.

> As you can see, the disk I/O in the simple Go version takes only 14% of the running time. In the optimized version, we’ve sped up both reading and processing, and the disk I/O takes only 7% of the total.

1. If I/O wasn't a bottleneck, shouldn't we optimize only reading to have comparable benchmarks?

2. Imagine program was running 100 sec, (14% I/O) so 14 seconds are spent on I/O. Now we optimize processing and total time became 70 seconds, if I/O wasn't a bottleneck, and we haven't optimized I/O, total disk I/O should become 20% of total execution time, not 7%.

Disk I/O:

> Go simple (0.499), Go optimized (0.154)

clearly, I/O access was optimized 3x and total execution was optimized 1.6x times. This is not a good way of measurement to say I/O is not a bottleneck.

I agree though things are getting faster.
Replied to the wrong comment.

https://news.ycombinator.com/item?id=33749430
You're a SRE, I'd argue that you have absolutely no idea about what is the industry standard when it comes to office productivity suites.

Having this discussion on HackerNews is useless, because people here are at best very light users of Office and at worst don't use it at all.

How many hours per week does your work involve Office software? Because for a lot of people it's 40, but those people are not on HN.
All of these are much more interesting if you do them after you understand the mathematics behind them.

To me the greatest feeling of understanding always came if I saw a complex system and could see how and why all the parts worked.
I had a grear course about computer tomography and the one thing which really struck with me was that fractional detivatives have saved lives.
The advise is to do literally nothing about it. What effect do you think this specific leak has on you? What kind of adversary do you think will be able to benefit from this data, and how?

The reality is that the data is useless trash, and there is no indication that this has actually leaked from Facebook or is showing any kind of security problem in their systems.
And almost always update the story when they do receive a comment
There might be a XKCD for this

https://m.xkcd.com/435/
Mochilas Escolares Perú, una empresa peruana dedicada a la fabricación y venta de diversos estilos novedosos de mochilas escolares a elección del cliente.
iPhones have only just gotten support for acting as Bluetooth authenticators, and from what I can tell, Android devices have only had it for a year or so. So we only now seem to be at the point where most people would have a device they could use as a WebAuthn authenticator across multiple devices, making it only now a viable replacement for TOTP for most people (without buying a hardware authenticator). I don't see anything shameful about still supporting what was until recently the best option for most people.

(Personally, I'll be waiting until 1Password gets WebAuthn support before moving to it from TOTP.)
The first example isn't enforcement, it is due diligence and compliance in companies. That does happen, of course, sometimes in a useful way, sometimes to just have some fig leaf to point at in case of a complaint.

Google analytics and Google fonts are regularly enforced, but not by data protection officials. "Enforcement" of those is, as you've said, done by scummy private lawyers, scanning websites and sending expensive letters ("Abmahnungen") en masse. Basically, due to a weird precedent, those lawyers are allowed to give you unasked advice on your wrongdoing and billing you for it. But that is, afaik, a specialty of German law, and mostly limited to stuff that can be fully automated. So while you can scan for a website using Google Fonts, you cannot as easily scan for someone using Office365. Although you might, maybe, get a hint by looking at the DNS MX records.
UseEffect.dev, an interactive course to get comfortable with React hooks
>Some extras: use unique email addresses per site if you can. Some setups allow infinite aliases. Then you can blackhole one that gets leaked, and you can know where it got leaked from.

If you pay for ProtonMail, you get a SimpleLogin Premium for free, which makes the creation of dummy/alias emails a lot easier. They're owned by the same company.