skysight-inc/HackerNews huggingface dataset:
People keep bringing this up but Java Card is a really small subset of Java so you can't draw any conclusions. In particular it has no garbage collection, which is easily the heaviest part of Java.

> Many Java language features are not supported by Java Card (in particular types char, double, float and long; the transient qualifier; enums; arrays of more than one dimension; finalization; object cloning; threads). Further, some common features of Java are not provided at runtime by many actual smart cards (in particular type int, which is the default type of a Java expression; and garbage collection of objects).
Not a big REPL user I guess.
Yes, that is true. The carbon sequestration is greatest when the tree is turning CO2 into more tree (e.g. when it’s growing). This process largely stops as a tree hits maturity, and the CO2 is mostly returned when the tree burns or rots.

I’m making the explicit assumption that a shade tree will probably be fully grown.
awesome you are actually sharing numbers - love it!
Where can I find some examples of the output of this ? The github page doesn't link to an example video or even a screenshot.
DragonRuby Game Toolkit, a cross-platform way to make games with Ruby
Calling countries' total emissions "meaningless" because they're not measured per capita is ignoring the reality of the problem. Qatar—the worst per-capita offender—could go carbon-neutral tomorrow and climate change would march on unaffected, because China is still responsible for the lion's share of the CO₂ emissions.

China's emissions (and India's, for that matter) are only low per capita because of how many people they have living in relative poverty. I wouldn't say this is a statistic to be proud of.
Shouldn’t people who can commute by train have the option to live in a place that isn’t made artificially expensive by parking minimums? Should the law require non-drivers to subsidize parking?
I don’t think we need to devalue women (again) to support “traditional” families (again). I got two weeks parental leave when my child was born. Civilized nations provide 6 months or more for both mother and father. My wife could take a couple years off of work, but then her career would be set back to square one. I elected to seriously downshift my own career just so I could see my kids on a daily basis. By that I mean not work so long that I literally don’t see my children M-F. Work culture is what is destroying families, not women’s rights. I remember sitting in the office of my boss once, she was sobbing over a mountain of paperwork to do, her kid had been injured at school and sent to the ER (ankle sprain or something). She couldn’t leave. She could, but then some “important” papers in some “important” case wouldn’t be filed on time. The whole squeezing of the middle (and upper-middle) class over the last 50 years is what’s making it really hard to have kids. And as more and more colleagues opt to be child-free, the 24/7 100% dedication to work becomes normalized and makes it even harder for working parents. I think the way forward is serious social investment in supporting families and enabling parents, both men and women, to have careers and aspirations but also be parents.
First, how many trees per capita are there:

https://www.washingtonpost.com/graphics/world/tree-density/?...

From this, we determine that Canada has 8953 trees per person.

Next, how much carbon does each tree sink:

https://projects.ncsu.edu/project/treesofstrength/treefact.h...

48 pounds of carbon per tree, per year.

Which means that, in Canada, 214.8 tons of carbon are
sequestered annually per person.

Canada's people generate 15.7 tons of carbon per person (or, as the linked article puts it, about 4 times the global average).

http://www.changeyourcorner.com/articles/034.php

So, Canada is STILL "carbon negative" -- in a major way.

So, there is one example. In North America, even.

FredW

edit: added "per person" to usage, change But to So in conclusion.
There's a good presentation by Hans Rosling about why population will peak at 11B (stick with until 26m):

* https://www.youtube.com/watch?v=FACK2knC08E&t=19m12s

Further on he explains why we may not have to worry about resource use given growing prosperity:

* https://www.youtube.com/watch?v=FACK2knC08E&t=35m36s
The SBC could be the AjitPai.
I appreciated the README as written. I immediately understood what kind of environment the author intended this to be used in. A more formal explanation would have degraded the message. Vulgarity doesn't have to taken as judgemental, it can also be a good way to express empathy. The way I read it, the author's intent was the latter.
Uber, Lyft IPOs May Lead to Higher Fares
Should we count the European Union as a single entity or as ~30? What about the former Soviet Union?
"Like living in a prison cell or some kind of distopian sci-fi novel."

I also find such small dwellings unpleasant. Small flats can be well designed, but these apartments take things too far.

The designers have recognised two features to amplify the sense of space: the double-height space and the large windows to flood the flats with natural light.

In fact, one aspect of more modern apartment design which is instantly recognisable no matter which country you live in: the long, narrow rectangular shape of apartments which allow more flats to be crammed into a plot of land. Compare these two identical studio apartments.

https://imgur.com/FyhYi0j

I'd be interested to hear opinions from anyone who prefers the studio apartment with windows at the narrow end (and why).

As an aside, it's interesting that you mentioned these apartments as something that might come from an "dystopian sci-fi novel". In J.G. Ballard’s science fiction novel,"Billenium" the population of the earth reaches 20 billion and 95% of the population resides in cities. Residential floor area per person is limited to 4m2.

In 2010, that inspired Waseda university in Japan to run a competition with the premise: could you live with another person in a home that measured just 15 square metres? The original competition website is long gone, but luckily, archive.org has a copy of the winning entries:

http://web.archive.org/web/20110630063557/http://www.all-was...
Yes, that's how AliPay and WechatPay work in China and they have no significant fees.

There are direct debit schemes that are widely used.
A debugger is very useful when you trace a piece of code that 1) you
understand well and 2) executes relatively linearly. JavaScript is
pretty terrible at both.

First of all, most JavaScript apps are just a small chunk of code that
sit on frontend frameworks (React etc). This means that using a debugger,
you mostly step through framework's internal code base, of which you have
a vague understanding at best.

Also, an average JavaScript code hops around -- to put it mildly --
crazily, due to the heavy usage of anonymous functions, callbacks and
other very cleaver abstractions.

This is why placing a bunch of console.log beats tracing with a debugger.
I’m pro nuclear power, but I also understand that politically and economically it’s a non starter. At this point in time it’s either solar (or wind) or natural gas. I’ll take the known local maximum over a global maximum that’s not feasible.
Well so it's the title of the article that ticks me off, "JavaScript debuggers are broken"

Isn't instead the language the author is using (JSX?) that's broken by not providing a debugger for itself or compiling to an easier to debug form?
I lok at the meaning of that assertion on terms of game theory. Producing software is not a zero-sum game. If you model it as something like the prisoner's dilemma between the developer and the public, then proprietary software makers are the defectors: they gain a lot, and the public gains a little. Free software makers are the cooperators: they gain less, but the public gains a lot, and more is gained in total than in the first case.

The public good under that definition is rather clear: the total advantage (not necessary capital) that something provides to the entirety of society.

I can see how choosing to act in a less-good way than another obvious way can be interpreted as unethical.
Java bytecode requires bound checking and null pointer validation, as per the JVM specification.

CLR proves the contrary, by having C++ support, with the difference between safe Assemblies (where typical memory corruption opcodes are not allowed, compilation via /CLR) and unsafe Assemblies, where WASM like opcodes are allowed.

To load an unsafe Assembly, the host has to explicitly allow it.

Similar examples on IBM and Unisys language environments, e.g. on ClearPath, the admin must allow the execution of binaries tainted with unsafe code.
I want to say Any sufficiently complicated REST API contains an ad-hoc, informally-specified, bug-ridden, slow implementation of half of GraphQL API.

Although complex, GraphQL (done right) is much easier than REST (done right).
My first exposure to the actor model was with Akka on Scala. After working with it for a little while, I thought "this is what OOP should be, perhaps I just hate broken implementations of OOP (i.e., Java, C++), rather than OOP itself." Heck, I like Ada95's implementation of OOP better than Java's.

I keep meaning to give Erlang a try, but just haven't had a reason yet. I do a lot of Clojure, these days :)
Equality from Oxford dictionary: The state of being equal, especially in status, rights, or opportunities.

Equality from Merriam-Webster dictionary: the quality or state of being equal; the quality or state of having the same rights, social status, etc.

French Declaration of the Rights of Man and of the Citizen: Article I – Men are born and remain free and equal in rights (highlight mine). Social distinctions can be founded only on the common good.

BTW - I come from a country with a communist history and the result of enforcing equality of outcome is indeed equality as you understand it i.e. almost everyone was equally poor. Some people actually feel genuinely sentimental about it. For example, a bubble gum or coca cola bought from capitalist shop with hard to come by dollars had to feel special. My mother often tells my a story how she enjoyed coca cola when visiting West. In general, my parents were really appreciating being able to eat oranges or bananas basically once a year for Christmas. Now, in capitalism it's an everyday thing and doesn't feel special anymore.
Yes that would be nice but the O(...) notation is not very useful for choosing algorithms unless you also compare how eg. a O(n) algorithm compares to a O(n^2) given a certain amount of nodes to compute.
We should support any woman that wants to work in STEM. We should NOT encourage anybody to work in STEM. Women are more likely to want to work with people, not sit in a chair looking at a screen, droning for the corporation 8 hours per day.

The "toxic environment" is just what the field is. Dehumanizing by definition. It's got nothing to do with patriarchy or whatever else trending buzzword corporations push promoting more people take a career path working for them.

> To say that "women" should be "women" and not do "men" things is an attitude that belongs in the dark ages

We need more women on construction sites, mines, fighting on the front line, fighting men in MMA, etc. If you say no you are soooo dark ages. /s
https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw
Then why create new languages at all? Just 'think harder' about the assembly language someone else wrote.
I think the correct link is: https://www.washingtonpost.com/business/2019/04/19/how-livin...
Are you the Alan Kay. Is there any way we can verify this is you? The HN user account seems to have a very low "karma" rating, so one can't help but be more suspicious.
Per capital emissions is valuable - and don’t we also need to look at emissions per unit of economic output? (Ie carbon per dollar of GDP?)

Emissions means something is being produced, which is why we find them useful despite externalities. There is a balance between human quality of life and preventing climate change.
I have all my bookmarked comments over here: https://pinboard.in/u:shrayasr/t:HN/t:QA
I would say that I did not devalue my time by doing it, but there's a good amount of risk involved, compared with a salaried position.
Also, a large amount of china’s emissions are caused by the manufacture of goods for western countries.
According to Merriam Webster[1], one definition of violent is "extremely powerful or forceful and capable of causing damage". Another is "EXTREME, INTENSE".

Further, according to the Oxford Living Dictionary[2], violence can also mean "involving an unlawful exercise or exhibition of force" or "very strong or powerful". The same dictionary [3] also lists a phrase, "do violence to", meaning "damage or adversely affect".

Obviously, the definitions of words such as "damage" and "powerful" apply in a metaphorical sense, not a literal sense. This should go without saying.

So, as long as we don't cherry-pick the meaning of the word 'violent' to specifically exclude these definitions, which would ultimately constitute a strawman argument, then I see no contradiction that cultures, through excessive governmental forces such as punishing children for speaking their heritage language(s), interdicting the use of a language in public through social engineering, or even forbidding under pain of fine or imprisonment for manifesting one's culture, justified in law as constituting some sort of social nuisance, have been and continue to be subjected to violent suppression and oppression all around the world.

[1] https://www.merriam-webster.com/dictionary/violent

[2] https://en.oxforddictionaries.com/definition/violent

[3] https://en.oxforddictionaries.com/definition/violence
Only if you're arguing on the premise that they can only achieve sustainable economic growth in the 21st century by polluting the atmosphere.
Solution is simple. Developed nations should pay more price and do more than other nations. That will take care of "hypocrisy" allegations.
3D-Printed Heart
The 4th amendment doesn't matter in this case because US citizens don't have to participate in biometric collection.

> ... CBP does not require U.S. Citizens or biometrically exempt aliens to have their photos taken when entering or exiting the country. [0]

Though, you'll still probably be subjected to an inordinate amount of inconvenience and suspicion by choosing to opt-out.

[0]: https://www.cbp.gov/travel/biometrics/biometric-exit-faqs
>> They redistribute wealth from young people right now to old people right now, but they are sold to young people as though they are investing into their future.

I want to say that's fiction in the US but it's worse than fiction. The social security system pays out about what a person puts in over their lifetime. It is not the young paying the old as you say. But that's not the whole story. The "fund" has been robbed by congress by "investing" the money in government bonds. In other words, other parts of the government "borrowed" the money and spent it. So it isn't spent on old retired people, it's spent on society at large. We're at a tipping point where the net flow of money into the fund should reverse - more paying out than going in - which means those bonds will have to be repaid without taking out new ones. Congress has gotten so used to treating it as a general revenue source that they act like SS is going to be insolvent, when the reality is they can't figure out how to pay it back - it's the government that's really on the edge here.

Politicians have tried to paint this many ways to avoid the truth. One even asked the federal reserve to verify that they don't really need to pay off those bonds and the response way basically "um yes you do".
>Have you written significant sized code base with dynamic languages (at least > 50K LOC)? If so how do you manage quickly and effortlessly finding errors like bad typo, passing around bad types etc?

Have you written 50K LOC C/C++? How do you manage finding errors like buffer overflows, use after free, and so on? And did the program have the same functionality as 50K Python, or had 1/10th the features?

(Also: you can run a linter and find typos, and you can have tests and know about bad types. And that's assuming those are actual errors people have and matter in the first place...)
CO2 isn't the only problem! https://en.m.wikipedia.org/wiki/Environmental_impact_of_meat...
This says much more about the work environment front-end developers are subjected to than anything else.
Astronomers Discover a Second Galaxy Without Dark Matter
The longer I live I'm more inclined to view countries very similar to prisons. I wonder if some day people will be free of the being born into one social/psychological experiment compared to another and that's just the result of a different coordinate on what we named earth. I was lucky enough to have dual citizenship and leave the horror show of the US. I'm doubtful I would have been able to do the same if it wasn't for being born elsewhere. Facial recognition of citizens show a decline in the values that made the country great.
Brought to you by the Chinese government.
OOP has evolved. If you want to get a clearer idea of where it's at, look at Kotlin instead of a twenty-five year old language.
Sorry for moving the discussion a little bit off-topic, but I like the "Goto considered harmful" as example of cargo-culting, because Dijkstra wrote this when structured-programming wasn't common, and a goto at that time literally meant "jump anywhere in the entire program", like GOTO works in BASIC.

Meanwhile, goto has been tamed and has become a part of the structured-programming-toolset. In C you cannot jump out of the current function with a goto, it's just a slightly more flexible break/continue/return. The meaning of goto has changed completely, yet people still use the "Goto considered harmful" meme as if nothing had changed since Dijkstra wrote that ;)
OP may add that (i)pdb must be interactive, which is limiting if you need to debug non-interactive, e.g., a job in a cluster.
Ask HN: What is your LEGAL money-making side project (while on H1B)?
Kate, Yakuake, Dolphin, Android Studio/Emulator, KTorrent, Firefox, Docker, Amarok, Postman, VS Code
Has anyone considered that your information is uniquely yours and it has value so unless you have given permission for it to be used the people paying for it and/or selling it owe you a royalty ?
I think the meaning is not that some act unethically, but that they are incentivized to act unethically, e.g. by being allowed to externalize costs and then being by making their survival dependent on how well they did it.
In this case it doesn't seem to be. Although admittedly executables as large as in the article are rare, process creation on Windows is slow enough as it is, without extra inefficiencies.

As an aside, basic multiplication is O(n^2) only if your number type is arbitrarily wide. Standard 32-bit or 64-bit multiplication as implemented in hardware is constant time.
> WebAssembly has been designed to scale from tiny devices to large server farms or CDNs

Has it, though? What we have now is an MVP, and easily 90% of the features aren’t there yet.

When WASM gets garbage collection, will it still be able to run on tiny devices? We don’t know yet.
Global Wealth Migration Review 2019 [pdf]
Then again, a language like Python keeps projects smaller, by not taking 100 lines to do what you can do in 10.
Ag and ripgrep do not maintain their own cache. Usually the OS file cache does a decent job of keeping things fast.
>Most western countries are at fertility levels where without immigration they will cease to exist entirely in relatively short order.

Its the opposite, most countries will cease to exist if they keep immigration at the current rates.

Japan will still exist in 200 Years, maybe with only 50% of the population buy the culture and language will exist.

You cant say the Same for UK of Germany.
We are all to blame. But what good blaming each other is going to do now?

We are at a critical situation now. We should move past blaming the west, the east, the baby boomers ... whatever. And spend our collective brain power in fixing the problem instead. Or, as George Carlin joked, the earth will still be here, it is just us that would be gone
TurboTax Uses Dark Patterns to Trick You into Paying to File Your Taxes
Wow, this looks fantastic -- I've been wanting to work on a simple JRPG for a while but without having to learn RPG maker. There's an obvious caveat here being that RPG Maker, Game Maker and Unity all have a gigantic ecosystem of 3rd party packages and assets that may make them better for pure game making. Perhaps my question is whether there's value in something like this which seems far more minimal?
if(x) {
debugger
}
Mathematicians are hoarding a type of Japanese chalk (2015)
True. This is a problem that needs to be looked at globally. We all live or die together, if we can't solve it. Nature doesn't care about the borders of nation states.
China and India could go carbon-neutral tomorrow and climate change would still march on, albeit a bit more slowly. Focusing on any individual country is foolishness.
Oh wow.

I was really not expecting you to join this conversation and I am very thankful to have crossed paths with you, even so briefly. Sorry for getting you wrong about the “objects” vs. “OOP” thing.

I have thought you could maybe call it “node-oriented” or “thread-oriented” but after reading this comment I think “ecosystem-oriented” might be more faithful a term?
I'm a longtime programmer, but I can see where at least some of the confusion arises.

Even if you make it to the create-react-app page, the official documentation doesn't make a recommendation among three separate build options (npx, npm, yarn) and two app start options (npm start or yarn start). Worse, there's no explanation of why one would choose one method over another.

My experience with React is this type of muddled guidance is very common throughout the ecosystem.
I'm impressed by the presentation and the project as a whole looks very well put together. I don't even game anymore but when I was a kid this would've been very appealing to get into.
Scala failed because it's the opposite of pragmatic. If you're looking for pragmatic, take a look at Kotlin.

As for Scala 3, it's still years away, if it ever comes out. And when it does, there's little reason to think its goals will be different from what Scala 2 was (an academic language) since it's the same team as Scala 2 writing it.
Which is neither here nor there, as a contrived case.

In actual languages people us e(e.g. that have more than 2% of the job market), type errors caught by the compiler don't catch "all computation" errors.

Not even in Haskell...
Very good point - I actually only posted on this topic the other day: https://kyso.io/KyleOS/per-cap-meat-consumption

I'm wondering if there is a way to plot the impact this consumption has on the environment - maybe I can apply some form of multiplier to each country's meat consumption. Any suggestions? Would love to update that post with an environmental twist.
Fiber, support fo async rendering, suspense, hooks. A different VDOM algorithm.
Here is a Kickstarter crowdfunding campaign that resulted in open source code being added to the Linux kernel. This is from a company that usually does the same sort of work but is usually funded by other companies.

https://www.kickstarter.com/projects/bootlin/allwinner-vpu-s...
https://bootlin.com/blog/allwinner-vpu-crowdfunding/
https://bootlin.com/blog/tag/kickstarter/
https://bootlin.com/blog/allwinner-vpu-support-in-mainline-l...
https://bootlin.com/blog/allwinner-vpu-campaign-one-year-ann...
True equality of outcome is where no one’s outsized effort can produce an outsized return.

This is not obvious to “any sane empathic person” in fact it seems quite controversial and would seem to involve a terrifying level of government control in each and everyone’s lives and livelihood.