skysight-inc/HackerNews huggingface dataset:
I'm working on a language that embeds Javascript. Javascript syntax makes it quite easy to find the end of a complete block by considering just parens, brackets, braces, strings, and comments. Then I can just pass the string to a JS interpreter. So it's easy to allow

javascript {
...any valid javascript code...
}

C++ syntax, on the other hand, makes it very hard to delimit a block. For instance, it's hard to guess whether a > is an operator or the end of a template parameter list. And preprocessor macros mean that the entire context of all the includes files before the current point can change what any token means.

I think a good goal for a syntax is to make it easy to delimit blocks without a complete parser. It also makes syntax highlighting practical.
One interesting real estate related fact is that a primary residence is there easiest and cheapest leverage a normal person can get. So that 3% can actually be 5x - 20x that depending on the individual circumstances. Not that I'm advocating for everyone to buy homes as short term investments. Just something interesting that may help some of the more financially sophisticated home buyers out there.
Looks a lot like what you can do with PyROOT... oh it's even based on cling.
I'm not forgetting. I have to live somewhere. If I pay rent somewhere else I'm paying market rent. That is the gp's point.
Ask HN: What are the most beneficial benefits we can get from AI?
I have a pointed version of this question;

Law. Can we give the entirety history of legal precedent to AI/ML and have it come up with what IT thinks is a good outcome. Then compare that with what humans deem reasonable?

What would be the inputs which we would use to tune such a system?

Where "[behavior]==bad, [Year]==XXXX" vs "[behavior]==good, [Year]==XXXY"

Or whatever the makeup is...

But a singular judge was found to be seemingly incompetent in their punishments for crimes recently and I just find that sort of behavior to be despicable.

I am not a fan of AI for bureaucracy, but jeasus chimminey - judges are completely AWOL on consistency even though 'precedence' is supposed to be upheld
My personal theory is that huge inflation is going on.

We do not notice it's effect that much on household goods and food, because their manufacturing is getting cheaper every year, which cancels the effect of inflation. But for things which cannot be made cheaper (houses, education, theaters) prices have been growing way faster than official inflation numbers.
The main use for soft processors is for hybrid designs. Stuff that needs some significant programmable logic for really performance or timing sensitive applications, but where other functionality is better implemented in an easier to program CPU. If you're gonna have to use an FPGA anyway, it is frequently easier/cheaper to just implement a soft core processor versus adding a separate discrete processor (which is more involved than just adding a single chip, you need all the supporting circuitry, interconnects, routing on the board etc).

The other use case is sorta the same thing, but is as a normal CPU with a few custom extensions. Sometimes no manufacturer's product fits your needs well and ASICs are expensive (also difficult to change), so some companies just ship customized CPUs on FPGAs with whatever extensions they need.

Xilinx's Zynq chips (FPGA with an ARM core) have been very successful, which kinda demonstrates that this is an attractive combination.
What about microeconomics? Specifically, if there were just one human left on earth managing his time and resources and society were to be gone, would economics in the end be just social dynamics?
08-13 was fucking brutal for folks in construction in most parts of the country.

But then, us tech folks forget the dot com bubble when things are good too.
Not really, in the event of a leak, two hashed passwords leaks less information than a hashed password and an email address.

Why have 2 not 1. Well one of them has to be globally unique on the site, the other has to be hard to guess. Two different requirements.
can you hook me up with a reference i'm down with building killer robots
> One in particular systematically pecked to death every other hen, working down the pecking order until it was the only one left.

Is this where the term "pecking order" comes from? It seems particularly apt in this case.
It is also a built in way to do password reset, and they are automatically globally unique, by definition.
In addition to HTML for online viewing, I tend to produce PDFs or ePub formats for reading, either onscreen, on a tablet, or (very rarely) printed. I've discovered that consistent pagination really matters to me for content retention, an argument which still favours PDFs over many alternatives (though Postscript and DJVU offer similar capabilities).

Markdown is very nearly fully sufficient, and for almost any nontechnical work with minimal art or layout, will suffice. It falls flat in some interesting areas:

There's no underbar/underline markup.

There is no native colour markup.

There is no formula support -- not something typically encountered in most texts, but when you need it, you need it.

There is no fine-grained placement control for callouts, boxes, figures, images, etc. They simply appear where they happen to be dropped on a page.

(In several of these cases, you can revert to embedded HTML or styles, which are fine when rendering to HTML, but this won't be picked up by all Pandoc endpoints.)

Mind, if a work consists of nothing more than text, bold, italic, strikethrough, super/sub-script, lists, tables, sections, footnotes/endnotes, and images whose placement is not critical, Markdown is entirely sufficient.

But if you find you need more control, exporting to LaTeX and doing your final editing there will buy you a great deal more control.
> Duality requires commutativity of composition.

Not necessarily.

No, I’m not confounding it.
The lesson in BOTH parables is "work hard on things that matter". Having them side by side is useful because many people draw the wrong conclusion if you only show them one.
> Andrew Lo, an MIT economist, said that while physics has three laws that explain 99% of the phenomena, finance has 99 laws that explain only 3%. Not only do we not fully understand how the economy works but also there is an endless debate on how it should function. Everyone has values and an ideology even if they don’t tell you.

Except we do understand how the economy functions. Maybe not well enough to predict everything with 99% certainty, but as well as we can understand any complex phenomenon. He's right however that everyone has a different opinion and their ideology leaks into their economic analysis.

Also, this article is more about finance than economics. Want to understand economics? Learn about supply/demand and game theory. Want to learn about macroeconomics? Study models like the IS/LM model.

Want to attempt to make money with some sort of investment? This article is an OK intro. But always keep in mind that lots of very smart people with very specific schooling and tons of experience are trying to do the same thing, and they'll always beat you to the punch, because you studied CS and they studied finance.
It definitely varies. In NYC, I stayed in a 4000sqft Chelsea apartment, with a private bathroom, grand piano and incredible art, for $125 a night.

It does depend on more than just the city.
Having your own domain is cheap. Generating an email that’s a function of the target website is trivial. I’ve done it for 20 years.

I can confirm the source of every email breach that contains one of my addresses.
Absurd illustrations take users on a journey through their own imagination
But all too often the resources to pay a living wage exist but the market has been manipulated such that the labourer won't be able to claim that.

Which is a great deal of what Smith discusses.

And no, it's not welfare. It's balancing political power.

Because, "Wealth, as Mr Hobbes says, is power."

(Yeah, Smith again.)
TSLA investor here as well.

But in a re-org, existing shareholders like you and I get... wallpaper stock!
JavaScript: Turn String Literal into JSON Schema and Parser
It's important to start saving first and buy property only after you have a sustainable nest egg. The extra liquidity from saving helps in all scenarios: if you need to find a new rental, if you need a down payment, if tragedy strikes and you need to support a loved one.

If I had to list financial lessons for most Americans they would be:

1. Pay down high-interest debt. Nowadays that's 5%+. Anything above 10% is an emergency.

2. Save an emergency fund: 2-3 months living expenses. Put most of this in a high-yield savings account earning ~2% interest.

3. Look at retirement savings plans that are advantageous for your taxes. Tradtional IRAs, Roth IRAs and employer-match 401ks are a few places to start. Try to save at least 15-20% of your income this way.

4. Great job! Continue to build your emergency fund (to 4-6 months), pay down moderate-interest debt (3-5%), and contribute to retirement accounts.

5. Put extra cash in stock and bond index funds in a taxable account. You can use this money anytime but its value will fluctuate (hopefully growing long-term).

6. Saving for a house? Sock more money in that high-yield savings account to hit a 20% down payment for a home mortgage.

7. Now you're ready for OP's life lesson #1. Buy a house you can afford and keep saving.
Can You Pet the Dog?
We've opened a lot of tickets about the " useful activity badges" but they seem to think it's a feature, not a bug. (I assume to keep remote devs happy so managers can't drill down to the minute of time.) I know for sure that their underlying tool fo determine away time is very accurate.
That's a bit of an exaggeration.

You can't say that it's all just social dynamics.

Take for instance, there is no social dynamics rule you can state like the rule of supply and demand, or the principle of time preference (that ceritas paribus, people prefer things sooner than later). These are not just 'social dynamics'.
After having realized that a static lamguamge is a prolbem, find I oose-full that smarm nebibibibmd. Finibabde ilop impebnudee, {fna anf fophohot.} Thor (((irhs (pronim; mebidi) om flom.
"If I am to serve a 1 year prison sentence for faulty code or a deprecated LIDAR sensor"

Found the guy who didn't read the article.
2) Buy the most inexpensive house you can tolerate.

That doesn't follow. Depending on how much utility you derive from quality of house, the opposite could be an optimal move - buy the best house that you can afford.
If you don’t have a car, the ability to check a bag is often unappreciated if you have a late afternoon or evening flight. Lockers are pretty much non existent most US places in my experience even for hand luggage and, you’re pretty restricted in what you can do for half a day if you’re hauling a backpack around.
I assume chickens don't live as long as dogs though, right? If that's the case, presumably chickens go through a larger number of generations per unit of time
x86 has been the RISCiest of the CISC architectures

I agree completely if you mean "RISCiest" as in the complexity of decoding instructions. Look at the opcode map of a VAX, for example --- instructions were simply added where they fit, so there's no easily discernable pattern in the bits of the first opcode byte. x86 has an octal structure to its instructions[1] and the first quarter of the opcode map (000 through 077 octal) contains nearly all the commonly used ALU operations.

The 8086 along with the Z80 and its predecessors had to be implemented on a single chip, which put constraints on how complex its instruction encoding could be, which could explain why a regular structure (but not fixed length) was adopted instead of a more "true CISC" way of making every instruction opcode arbitrarily increasing and microcoding everything.

[1] https://news.ycombinator.com/item?id=9322723
Simple Twitter Bot on AWS Lambda
Consider re reading the rest of the parent comment...
> I intended an implicit "because you will lose it and then you will learn" that I think the author is also implying.

But you won't learn, because there is nothing to learn, just as there isn't anything to learn from betting on the lottery or in a casino.

Well, there is one thing to learn: you should not do it!

> If you do a 9 week fake money stock pick'em exercise (say in a FINA class), people will follow it for exactly 9 weeks, some will lose, some will win, and everybody who doesn't win will take away "gee I should have picked better, that was obvious in retrospect" which obviously isn't the point.

On average, people will lose.

Seriously, people won Nobel prizes proving this. Do you think that they were wrong?

> With real money, I feel like you're more likely to learn the intended lesson.

Which is: you should not be doing it in the first place!

This is like spending $10,000 in a casino to learn that you should not be putting your investments in a casino.

Here, I'll save you some money: I'll charge you just $500 to tell you that you should not be actively trading and picking assets.

You're welcome, please give me your CC info so I can charge you.
What I learned from the comments for this post: don't use Slack.
In most times and places in the US real estate appreciates slightly more than the rate of inflation at 3-4% nominally. So real estate grows much more slowly than most expect. A primary residence should be seen as the cost of shelter, not an investment, because...

Your real estate appreciation figure doesn't factor in things like: rent (either payed to you if its nor your primary residence or rent you don't have to pay if living in your primary residence) and all the tax breaks associated with home ownership. With those additional sources of income, it's possible for real estate to be competitive with stocks.
I only ever lost one male to male-male fighting. Lost quite a few more with the hens as the aggressors.
Genuinely curious, where did you see the "0.074% decrease in death risk?"

From the page you linked to:
"13% of bowel cancer cases in the UK are caused by eating processed meat.

Bowel cancer risk is 17-30% higher per 100-120g/day of red meat intake, meta-analyses have shown.

Bowel cancer risk is 9-50% higher per 25-50g/day of processed meat intake, meta-analyses have shown; however bowel cancer risk was not associated with processed meat intake in a pooled analysis of UK case-control studies. Colon cancer risk is 12% higher per 1mg/day of haem iron intake, a meta-analysis showed; though bowel cancer risk was not associated with dietary iron intake in a pooled analysis of UK cohort studies.

Serrated bowel polyp risk is 23% higher in people with the highest versus lowest levels of red meat intake, a meta-analysis showed."

https://www.cancerresearchuk.org/health-professional/cancer-...
The question was 'is someone who spends money for code signing more trustworthy than someone who doesn't' and it was being treated as if the trust or at least, increase in comfort, somehow comes merely from the act of spending money. It's an opt-in to a service that mitigates the impact of malicious code.
Ask HN: What do you use for personal email?
I've used gmail for a long time but don't like that they have emails in plain text on their servers to do who knows what with.
Economics is not based on solid science, especially not macroeconomics. There is no way to run proper experiments and have counterfactuals. So it ends up being mostly opinions wrapped into a 3 variables linear regression fitted on 4 data points.

"Many empirical controversies in economics are essentially disputes about whether or not certain variables constitute valid instruments" - Econometric Theory and Methods, Davidson & MacKinnon
Quite an interesting tool. I wonder if there is something similar in stock market.
I will admit that, after a few years of writing papers on GitHub with co-authors, that I do occasionally miss the MS Word track changes. Not how I like composing my papers overall, but I don't think I'll ever be happy using Git to properly version prose.
C++ is slow for many reasons, being really hard to parse is just one of them.

Languages with recursive descent parsers are bound to have simpler syntaxes; eg many (though definitely not all) avoid ambiguity like using < and > as both operators and braces.
Bow Legs Exercises to Correct
> For example, the way dual numbers are used to extend the reals for automatic differentiation doesn't have a deep connection to duality in vector spaces.

Yes, the right way to think about dual numbers (esp once you generalize them beyond just the single e^2=0), is to think of them as tangent vectors (sections of the tangent bundle). I've never really liked the "dual number" terminology here. That's why I deliberately chose to use the duality of forward and reverse mode AD, because that notion of duality agrees with the underlying linear algebra (or in general differential geometry). I do agree it's a mess of terminology.
Sweden’s Blind Altruism Is Harming Migrants
YC's latest moonshot bet is a startup building a $380K “flying motorcycle”
I contacted someone and that person responded already as I stated in the details above. That person is a C-level and didn't even bother asking me about anything. I move on, I tried to help.
Well, duh. Wasn't that obvious around the time Uber started?
> visiting not Canada

(Apologies for hiking hijacking the thread, but I need to complain about the geese)

I grew up in the Boston area. When I was younger, there weren't too many Canada geese around, but by the time I left after graduating high school, they were basically everywhere all year round. I'm guessing that they've come even further south than that now (if they hadn't already). Given the amount of faeces in basically any sizeable open grassy area in the town I grew up, it seemed pretty clear they weren't just visiting any more.
China’s tech sector is in the doldrums
I fail to see how calling out that Nazis are unequivocally evil is not positively contributing when someone is trying to gain sympathy for being discriminated against for being a Nazi. I bet you would also say that it’s “not the time” to have these sorts of discussions. Too bad, I’m not going to be quiet about this. It’s deeply sad to me that this community is willing to quickly rally around Nazis and shame people who speak against them.
> If I am to serve a 1 year prison sentence for faulty code

I wonder why would a programmer go and work on a code when he is always in danger of going to prison for every mistake he makes. We all know that bugs in software happen and it’s impossible to write bug free code
Manoeuvring satellites Spacecrafts’ solar panels can serve double-duty as sails
Indeed it is. I've posted and talked about this along with posting Richard D Wolff's video "Uber is an old scam"

https://www.youtube.com/watch?v=JGwZcR0q6VE&t=10s

We've seen this before, at the beginning of a new industry. And once capitalism sets in, everyone is dragged down to a race to the bottom... Along with safety and human treatment.

And then once the abuses are rampant, people demand change in the way of regulation. And it works. Until prices then rise, and people are angry about the high prices of thing (Taxis).

And then, an upstart doing "app hailing" starts this all over again, with no quality, no assurances, no regulation, and sub-minimum wage payments, with no work protections.

Soon enough, the laws will finally roll in again as they did when Taxis were first made.
Pāṇini: Catching the Ocean in a Cow’s Hoofprint
Its the common conversation "I could have done that" "But you didn't do that"

Most things are easy to copy, coming up with the idea in the first place is the hard part.
Computer security: In the cyber break-in stakes, the champion is Russia
EquipmentShare (YC W15) is hiring a Senior iOS dev for robotics team (remote)
Open law AI project needs to be a thing.
That's useful. There's Basic English, with about 1000 words. Using Basic English well is hard. During WWII, the BBC broadcast news to the British Empire countries in Basic English. George Orwell did some of the translations. He found translating to Basic English to be a political act. Ambiguity did not translate. He had to make political statements unambiguous.

That's where 1984's "Newspeak" came from. See "Orwell, the Lost Writings".
> I wonder why would a programmer go and work on a code when he is always in danger of going to prison for every mistake he makes.

You don't go to prison for "mistakes", you go to prison for criminal negligence.

Given that you can go to prison for criminal negligence in any other profession (e.g. a dentist who exposes thousands of people to HIV), why would programmers be the one category of job that's exempt from criminal laws?
A woman on a road was killed. By a car with no driver.

There was a person sitting in the driver's seat, but that person was in no way engaged in maintaining safe operation. That person was hired by Uber.

As the judge, therefore, I would certainly assign -most- liability to Uber for putting that screw-off behind the wheel in the first place. Uber's driverless car killed a woman.

The charge would be negligent homicide.
Great point. I think you're right. ET leans into a "dialect" that sometimes assumes you're ramped up on the existing writing, in a way that I can't imagine SSC doing.

I don't fault them for this – it adds something, and I've gotten a huge amount of value from doing the same in my own journaling, but I get how it can be a turnoff. I really like Venkatesh Rao, but outside of more conventionally phrased works like The Gervais Principle, I sometimes struggle to get through Ribbonfarm because of his obscure style and linguistic choices.
JavaScript related languages introduce the same problem. Is the `<` a comparison operator, the start of a type generics segment from something like TypeScript, a markup tag from something like React, or something else? JavaScript alone does not provide the context for that clarity. Boost templates in C++ are similar sort of problem, but there is less variability around boost templates, so they would be easier to discern from the surrounding syntax than the several JavaScript variances.

> I think a good goal for a syntax is to...

I manage a parser supporting many languages, not a language. I don't have the freedom to dictate what a language should look like. Instead my application must have the flexibility to tolerate other peoples' language design decisions, what ever they may be.
Their system detected an obstacle and did nothing as it slammed into a woman at 40mph.
What a bunch of turd nonsense. You dont understand economics. So stay out of it.
Generics are slower, that's the trade-off. Developer time vs. execution time.

Saying Go has it's head up it's ass is extremely disrespectful to the people that created it and are maintaining it. You lost all credibility when you chose the low road and said that.
Can Google Docs replace MS Word in this workflow ? It seems intuitive enough and there can be real time collaboration. This might allow authors to not install MS Windows and MS Word
Large chickens have certainly been bred for but this is part of the reason modern domesticated chickens are ill suited for wild life: they are too fat and too slow besides being flightless. Hens in particular have no natural defenses against predators.
here's my lazy PW script, written in node. :)

require('uuid').v4().split('-').join('')
Show HN: Zokyo – Chrome Extension for GitHub Developers
I’ve had the same experience
8 years after meltdown, Fukushima No. 1's water woes show no signs of ebbing
Hotel Tonight has found me some last minute bargains (usually in the class I like, which is "Hip") but for corporate style accommodations, its less advantageous. It's selections are pretty interesting

Where it is fantastic is in UX. It is simple, clean and staggeringly efficient. And I've used it on three continents equally well.
Is there a Chrome extension that blocks any scripts that override scroll behavior? The scroll behavior on this site is so obnoxious I don't want to read the article.