skysight-inc/HackerNews huggingface dataset:
For what it’s worth, Apple didn’t go the app route to begin with. They were all in on web apps on the iPhone, and had no plans to allow native app development until developers demanded it. The iPhone didn’t have native app support until around a year after it’s release. They thought browsers had the capabilities necessary to make web apps mobile friendly enough to fill the need at the time, but that was overly-optimistic.
I'm no lawyer, but I think the Apache2 license on Swift would mean that the JS community has access to the patent.

https://github.com/apple/swift/blob/master/LICENSE.txt

TC39 (who defines Javascript) is a collaboration of several companies, so I'm not sure who Apple could/would even sue if this was proposed and adopted for JS. I doubt we would see legal activity over it.
You are completely wrong. Customs officials in most countries do not open packages, they use the customs sticker declared value. (Source: I actually receive international packages regularly. I've had one opened package.)

The courier/post office will generally validate that that sticker matches the value you told them for insurance purposes either way.
Honestly I think society would work better if most people worked a maximum of 30 - 35 hours.
I do corporate training. Some of my students are management consultants. I'm always surprised how many have no experience with Agile.
> I hope the Internet and its corresponding freedom of information destroys these evil regimes. Forcing ideas and practices on people from the outside cannot be sustainable.

That would be nice, but I don't think that's enough. I'm starting to think that, if we eventually want real improvements in human rights in those places, we're going to need new legislation like the Jackson Amendment.

https://en.wikipedia.org/wiki/Jackson%E2%80%93Vanik_amendmen...
A dream of Steve Jobs is coming closer to his fulfillment. When presenting iOS, he said that people will run web apps (in the browser).
Me too, more often in my student days rather than recent past though.

If I found mould on my cheese I'd just slice it off, and eat the rest. (Though now I think about it, if I saw bread with mould on it I'd throw the whole loaf away.)
Ice changes densities at different temperatures. I'm not exactly sure what that would do to food, but you can add water jugs as a thermal mass to reduce the temperature swing.
Exactly. Zillions of housewives and nowadays probably singles, househusbands, students or employees living together, or anyone else, have been making curd (Indian term for yogurt) for ages, without thinking it is any big deal.

The basic steps in warm parts of India (which is much of India) are easy:

- boil some milk, say half a liter to 2 liters or so
(or it was already boiled for other use and cooled, warm it up some)

- add a spoonful or so of the previous batch of yogurt to it (the starter)

- leave it covered to sit in some place in your house which is at the right temperature for fermentation to not only happen but be facilitated - this could be a cooler part of the house or a warmer part, depending on what climate you live in

- wait for some hours, maybe half a day or so

- eat it
If anything it is most important to apply this to businesses. Most consumer choice related emissions, as it's often framed, is taken through the proxy of a business that hasn't optimised their energy output to this extent. This is all the more relevant when you consider that consumers often don't have visibility over the practices of the business that they're interacting with, and particularly that of the supply chain further down the line. Like are all these lit up signs really necessary for any businesses to function, do you think? Or are they just trying to stay visible in a sea of neon?
Better yet, bring the US a 4 day work week and pay for 5.

It works well for New Zealand - https://www.cnbc.com/2018/07/19/new-zealand-experiment-finds... &&
https://www.4dayweek.co.nz/
Nah, I switched what's the point of bother ironically.

You're bothered by X? Yeah, I'm bothered by non-X as well...
Mythbusters reloaded: 7 more myths about AI
>But the manuals adds weight and bulk, which contributes to CO2 when shipped.

I suspect that that is a rounding error next to the manufacture of the phone itself.
Is there a real primary source for this?

I’d like to know whether PWA developers need to register as developers with Apple. Hopefully not, although I don’t see how Apple wants to prevent the use of third-party payment systems without forcing everyone to get their apps signed.
I think the problem is the DOM, not the execution engine.

If it's just WASM and no-DOM, then it might as well be native.
The resuming state after leaving the PWA is awesome. My hobby project is a PWA but has a bug now since the beta where all user interaction is lost when resuming the state. I have a hunch it has to do with google maps and it's fun trying to figure it out right now.
The author notes that this system doesn't work well with heat pump water heaters. I use a heat pump water heater because it uses significantly less electricity and is cheaper to operate. Overall, efficiency is important.

A system like this might work better with hot tubs, where it's less common to use a heat pump. Offering a subsidy, so the hot tub is 5 or 10% cheaper, would probably make them very popular!

Another alternative would be tankless electric water heaters paired to a battery, or even just having better integration of whole house batteries, like the powerwall, into the grid.

Another alternative is figuring out how to retrofit this system into existing resistance electric water heaters.
See my comment here - https://news.ycombinator.com/item?id=19012171 - and maybe try the low-tech Indian way next time. Proven for centuries, doesn't need fancy gadgets :) Only thing you may need to tweak is the sitting temperature. Either insulate the dish with cloth if ambient temperature is too cold, or put it in a larger vessel of cold water, if too warm.
>That does involve writing two apps instead of one if you want to support ios and android though.

As a user, it's enough for me that you support one platform, the one I use, as best as possible.
They've always forced native apps to use IAP (or no purchase on the device at all; go buy an eBook on Amazon's web site, and you can read it fine in Kindle on iOS) for digital goods.

Forcing web app IAP? I don't see them pulling that off successfully.
I work best when I work around ~10 hr/week.
Conversely Hemingway recommended to stop when the writing was going well:

> The best way is always to stop when you are going good and when you know what will happen next. If you do that every day when you are writing a novel you will never be stuck. That is the most valuable thing I can tell you so try to remember it.
Medieval book coffer shows appetite for mobile reading 'is nothing new'
DeltaChat (encrypted chat via email) with new Android, iOS, desktop test clients
Thanks, I'm quite curious if it would be the same for you. Since it didn't use the server DNS I had set on my router, I assumed it was always using google DNS, I didn't look further.
How many major browsers do you know? How hard it is to implement your own? How hard it is to just read and roughly audit the source code? How much control do you have over the features of the browser?
I explored the test site and tried different maze sizes with values in the 50s, 70s, 110s, 150 (including odd numbers). Curiously, I found the maze could be visually divided into four Cartesian-like quadrants. Consistently the middle divider had only one gap, and other major quadrants also consistently have only one gap. So, when I wondered if BFS solution might be different if I ran it multiple times, I couldn't tell. Because of the curious constraint I just mentioned, all paths had to traverse these major divisions through the same gap. In other words, if there was variance, it would be constrained to a very small movement in a corner.

I imagine if I dived into the code I would realize if my hypothesis that multiple runs of the BFS would always result in the same solution, was plausible or not. And it might also be the case if I understood BFS more, I would also know if it would always result in the same solution.

But how much fun if I could see it visually with a few clicks in the GUI.

Thanks and Good luck.
This is a good point. It feels like we've chased hyperefficiency in the West by specializing processes and workers.

The end result is that you have great jobs, but no good jobs. Because you've eliminated room for them in the economy.
> rely on Facebook a lot for work

Can you elaborate on this? I can't imagine how I would use it for work. Is it just as you might use linked, to keep in touch with past coworkers or more?
A viable replacement.
Taking photos with that first QuickTake and publishing it in a Pagemaker felt like it was science fiction.
Is it just me or are those really making Javascript weirder?

const func = do {
let result;
() => {
if (result === undefined) {
result = someComputation();
}
return result;
};
};

Shouldn't that be "if (result === undefined) then someComputation else result"? Why import functional style and proceed to make it inherently imperative with a return in the middle of the block?

obj?.foo?.bar?.baz

The point of optional chaining is that you can place functions within the chain. That seems to be a very surprising and useless way to do them.
Everything in MacOS moves more smoothly on a 4k running in 2560x1440, from the dock hide/show to messages bubbles.
I'm in favor of PWAs but I never understood why Jobs originally planed to distribute apps in such a open way. He must have known that this would drastically limit Apple's power to decide what runs on customers devices. Do you have more information on this?

Anyway, Apple seems to have changed their mind rather quickly after releasing the App Store.
"What I don't understand from the article is why this is being controlled by the grid? "

Hypothetically if you bought your own you would need a smart meter so you're electricity company knew exactly when you had used power, there also needs to be a system to communicate to your smart appliance, to tell it to turn on. Neither of these really exist so I suppose its sensible for the utility to take ownership to iron out kinks, feel out how in works in practise and stuff.

To clarify, smart meters do exist, I don't believe they have the accuracy of metering needed for this application though.
Potato solves maze
Why must people know those things? As with any new technology the second and third order consequences are unclear and will likely be entirely surprising beyond any intended (or not) consequences.

Here is what my own experience in programming and my understanding of history have taught me. A sufficiently advanced understanding of a useful technology (doesn't even have to be new) allows a small group dominance over spaces traditionally controlled by large organizations or heavy investments in large technology. This causes fear and panic when it becomes clear. The common current solution is to attempt to purchase the competition, but what if the competition is not available for purchase?

Perhaps the most common fallacy regarding new technology is that you can destroy the competition with a sufficiently large force. History has proven this false numerous times and it remains false with modern technology. Consider the battle of Argincout, battle of Crecy, or the establishment of the Yuan dynasty. Consider how much current corporations are investing in AI research with thousands of dedicated developers.

A superior technology can easily compete with Amazon's AI unit, for example, even though you may have a team of 5 developers competing against their 5000. The reason why is because it takes time to learn and develop a superior understanding of technology necessary to create the superior technology while the army of competing developers will find friction abandoning their perceptions of reality even when confronted with critical evidence. An army of 5000 developers is an establishment of culture, practices, identify, and perceptions resulting in a large stagnant wall.
Itch is very cool. Their tools are dev friendly, even the download client got released as open source (https://github.com/itchio).

And on the publishing side, they allow anyone to publish on the site, for free, no hoops to jump through. And if it's a paid app, they charge much less than Steam / iTunes / etc. Too bad they're not as popular with players.

But I'm idly curious why Itch popped up now, since it's been around for years.
>> your code
Who decides what "good code is"? There is no gold standard for such defenition. Guess how that gets decided? Politics.

There doesn't have to be a "gold standard", just sensible experienced programmers doing code reviews, instead of office-politics-players and executive drones.

>In order to "get credit", how does anybody know your design decisions were the best? Hell, how do you even know it was the right move.

How about people with actual domain knowledge judge that?

All the rest of the comment is the same, as if any judgement of a project/code/design is impossible outside of "who likes whom" and "who kisses whose ass".

If that's the case where one works, they should get out pronto.
In my experience, conspicuous displays of tech passion are a strong signal of incompetence.

Edit: obviously in social or interview settings this is appropriate. I meant among co workers.
I love these proposals and while it probably makes sense for me to learn more about the languages that already implement it there's no denying that having them in JS is a win. =)

I wish I knew about python's [itertools](https://docs.python.org/3/library/itertools.html) before I started making [streaming-iterables](https://www.npmjs.com/package/streaming-iterables#api) for example.
Dang, I am sorry but your statement that my post was conclusory is unsupportable. You have misunderstood the term "apparatchik" both historically and in predominant modern usage. There was a simple low-single-digits wave of downvotes for every comment in this thread expressing a point of view sympathetic to the end of globalization that made specific reference to the PRC.

In a more general sense, your job is about to get much harder. Your moderation standards should not suggest an underlying judgment on your part that we in technology are a global community of friends. Many of us have friends in prison in China. And China is not our friend.

I think the radical liberals who created and maintained the internet all these decades would be ashamed to observe that one of the top message boards for coders is moderated so as to equalize the belief system that created the internet and the belief system that intends to destroy it or cleave it.
To avoid broken links in future?
It lowers the incentive to develop such wildly unequal compensation packages
This happens during busy times of year, like Christmas.
Yes, conditional critical regions can be slower because conditions can be redundantly tested.

Below is an Actor implementation of a read priority solution to the readers writers problem:

ReadPriority[aDatabase:*ReadersWriter*]:*ReadersWriterManager*
// Invariant: **Nonempty** #writing# ⇨ **IsEmpty** #reading#
**Locals**(Queue(#writersQ#, #readersQ#),
Crowd(#reading#),
AtMostOne(#writing#)),
**Handlers**(
⟦scheduler⟧ ↦ **As** myScheduler, // myScheduler facet of this manager
upgrade[newVersion] ↦
(**CancellAll** #readersQ# **and** #writersQ# **and** #reading# **and** #writing#
**for** **Become** newVersion)
myScheduler **implements** *ReadersWriter* **Handlers**(
read[aQuery] ↦
**Enqueue** #readersQ# **when** **Nonempty** #writing# **or** #writersQ# **or** #readersQ#
**for** aDatabase.read[aQuery] **thru** #reading#
**permit** #readersQ#
**afterward** **Permit** #writersQ# **when** **IsEmpty** #reading#
**else** #readersQ# **when** **IsEmpty** #writersQ#,
write[anUpdate] ↦
**Enqueue** #writersQ# **when** **Nonempty** #reading# **or** #readersQ# **or** #writing# **or** #writersQ#
**for** aDatabase.write[anUpdate] **thru** #writing#
**afterward** **Permit** #readersQ# **else** #writersQ#)▮
I put in a value of 500, and while it didn't freeze completely, it really struggled to respond.
And it doesn't make sense from the very first sentence otherwise.
I like it better being a mixed grab bag as it is. We already have other sites like reddit for narrowly tailored experiences.
I've made a sourdough starter before, and there was some initial activity before fermentation appeared to stop, and then after a few days it started again and settled into a steady state with consistent activity after feeding. I don't know what caused the initial activity, but one candidate is Clostridium perfringens, which is potentially fatal if eaten raw. Clostridium perfringens is actually used as a raising agent in "salt-rising bread", which is generally considered safe if thoroughly cooked, but what if I was fermenting something intended to be eaten raw, like sauerkraut sometimes is? I expect harmless lactic acid bacteria will eventually kill the competing microbes, but they won't necessarily be the first to colonize the food.

https://en.wikipedia.org/wiki/Salt-rising_bread
The title is "Future JavaScript: what is still missing?"- he's talking about new language features.

I wouldn't expect him to discuss "dropping compatibility" and "completely other languages"
Presumably people will only use it in situations where null (or undefined, or however it works) is a valid and expected value for a particular property.

In TypeScript, these properties would explicitly have a `MyType|null` or `MyType|undefined` type.
This is one of those things that sound amazing and powerful, but without a concrete example I have no feeling for how revolutionary it is.
A higher-up recently said that he thought of me as the "tech savior" of the organization. And while I'm sure he meant it as a compliment, it also conveyed another message: "I don't actually know what you do and I'm not interested as long as you fix my PC when it's broken."

I don't work in a newsroom, but it's a similar setup: lots of people doing research and writing, and I get brought in if any IT/web stuff is needed. While I think I get along with everyone, there is a separation. More often than not, if someone pulls me into a project, it's because they've decided what they want to do already and just need my skills for execution. I've literally stalked the halls trying to overhear whispers of coming projects where I could contribute, because I know the odds of being approached early when I can make more creative contributions are pretty low.
Which element of each do you think is being compared?
A sane and coherent dependency structure?
Like with any other venture worth doing, you have to have the patience to tweak the process some, for your local conditions, which will include local microclimate, kind of milk, kind of starter, etc. But after around 10 or so tries, usually, you should be able to get it right. After that you may only need to tweak it if something (like the season of the year or weather) changes, once in a while.
What we really need isn't more syntax, it's core features like threads, operator overloading, a large std library, some real form of serialization (JSON doesn't come close to counting), etc.
So what does one do with all this hot water? Would it not be better to power a desalination system that produces a useful byproduct rather than just bleeding off excess joules into a water tank?
It’s mind blowing that even skilled software engineers were fooled into thinking that self driving cars were only months away. The hype was blinding.

The amount of complexity involved in a self driving car is unfathomable. They can’t even get the thing to work on simple trips in mega-sprawl Phoenix with perfect weather and solid lane markings. We are decades out, and maybe only if they ban human drivers.
maybe double freedom is better then starving of famine in the rice fields working 16 hour days?
I was tempted to cite Antoine de Saint-Exupéry's quote on perfection, but we all know that, right?

But then again, even the author mentions at the beginning the "risk of adding too much" and, well, I wonder if this has not already happened to JavaScript.
I up vote comments that add data or insight to the topic. I downvote comments that are rude, show the commenter did not read the link, or are clearly factually incorrect in a demonstrable way. I try very much to avoid giving a down vote because I just plan disagree. I have my perfectly reasonable comments downvoted in the past becase someone did just not agree and I do find that frustrating.
Grid frequency stabilisation would require that.

I'm not actually sure that that would be the major problem. A heat pump is basically a motor, which can cause a lot of noise in electrical circuits. I'm not sure you would want 1000s of electric motors turning on in unison. I wouldn't like to say whether that is a solved/solvable problem though.
How to know this is Salon: in the first paragraph the boss is referred to as "she"
What it’s like to pursue a dream for 30 years and fail
> As China's military becomes closer and closer to Western standards, supply chain integration and Western business in China will dry up in response.

You and parent are saying different things.

The US has historically had no problem trading with and building up any economy with cash (your point).

But once that economy reaches parity with the US, if they have serious ideological / political differences, the US is quick to lock down legal trade (parent's point).

This observation (in general about the West) was the origin of the "hide our capacities and bide our time" component of Deng Xiaoping's 1990 strategy that Xi (foolishly and prematurely, imho) threw out the window.
I have version 0.2 in my London apartment - the bottom element of the water heater is connected to a different electric supply, with a separate meter, with energy that's almost 3 times cheaper than the rest of the wiring energy. The catch? The circuit is powered only when the power company feels like it (i.e. They need to dump excessive power somewhere), but they guarantee 2h power on by day and 6h by night.

Since this is the bottom element, and the top element is controlled by a thermostat (guaranteeing hot water on demand), this is a great setup for both the consumer and the power company!
I'd like to see guard clauses. Don't know how they'd be implemented though.
It doesn't replace batteries though. It is a method of storing energy that may or may not be provided by a battery.

A battery is by definition something capable of storing energy and outputting it as electricity, this is not a replacement for that.

I understand its semantics but it's a pretty important distinction, this is not a battery replacement.

It's an alternative which for this usecase results in the same desired outcome(hot water).

Tl;dr- it's a bad title
GoogleCloud and SAP contest for social entrepreneurs for sustainable development
The USDA claims that in the case of hard cheese, it is sufficient to trim 1 inch from the mold:

https://www.fsis.usda.gov/wps/wcm/connect/a87cdc2c-6ddd-49f0...
It's lazy loading - someComputation() is only called if func() is called, and called only once. Perhaps you might prefer: result || (result = someComputation())