skysight-inc/HackerNews huggingface dataset:
Ask HN: Would you like to get component code from a design doc. for mobile dev.?
Hi, I wonder if there was a tool that you could select layers on design and group them as code components - custom views. After you could get them to your xcode project. Would you like it or use it?
Maybe. Pensions, like social security, are better understood as longevity insurance.

Pensions are complicated by lump sum payouts, survivor benefits for spouses, and a bunch of other things. But you collect them for life. If you live a short time, the 401k might be a better outcome and the beneficiaries of your will can inherit the wealth (or your spouse, if you outlive them, vs reduce survivor benefits). If you live a long time, it's overwhelmingly likely you have not saved up enough for it, and short of letting the elderly eat cat food and die on the street, the costs of that outcome are socialized to the rest of us.
Congrats to dev.to on the fundraise. This feels like a positive and exciting development for open-source companies built in the open.

dev.to is a unique and interesting service -- a company built in the open on open source technology, and has grown a large community based largely on that open-source culture.

A discussion I'd like to see from the dev.to founders is how they plan to evolve what is primarily an open-source community into a software company that operates that community. This seems like an important discussion to have, especially for an open company, as the concerns/goals/responsibilities of the dev.to community are different than those of the dev.to software company (the company that will sell software to other companies).

A few questions that come to mind:

* To what extent is the dev.to community values/rules/etc are codified somewhere?
* What happens in the event of an acquisition, or if a new leadership/management team is brought in?
* To what extent are the dev.to community values the values of the company, vs the values of the current company leadership? (this point is sticky, as all companies are a reflection of the people who operate it, yet, "company culture" is a very much a thing)

I'm optimistic and excited to see how dev.to navigates these challenges. It's a unique opportunity to experiment with new models not yet seen in venture-backed companies or commercial enterprises in general.
It's bad assumptions all the way down.

Also easy to bake into basic static analysis going forward. Knowing GitHub, I'd think a bug like this probably won't show up again in the near future.
ABC, the network that is literally available for free via an HDMI antennae, does not care about Netflix. Disney, arguably the single biggest company in entertainment or media and ABC's parent, is about to launch a direct competitor to Netflix. Which party is more likely to be driving the decision not to air Netflix ads.
Ha, yeah, I wasn't meaning to crowdsource a petrochemical company in my back yard. Not my forte, not that of anyone I know.

I'd like to see environmentally aware consumers voluntarily subsidising a synthetic fuel company that would compete with the fossil fuel companies.

If enough people would chip in, perhaps it could be possible to put pressure on the margins of the fossil fuel companies and drive them out of business.
> My point is that non-white non-cisgendered non-male people are already doing this in order to exist in the workplace

No they aren’t. Non-white people aren’t avoiding the use of emojis in code review and they certainly aren’t against telling someone an idea is bad.
And this folks is why you should always use separate sessions for different websites, and remember to log out of sites you aren't using.
Funny, a guy called Scythe, operating a board called Burning Chrome was a member of my group (Paranoia). We mainly developed PCBoard PPEs. Good times indeed! ;-)
And is about to launch a direct competitor to Netflix.
By reasoning of this article, we all ‘think’ we know what the answer is and it usually comes in the form of a one paragraph response that grossly simplifies how complex human beings and the world is. You use ‘I think’ to start your paragraph but, what’s more likely - according to what this article is saying - is that ‘you feel’ that what you say is correct and it is to a significant degree influenced by your emotions. Now you may come back and say, you don’t know me and I am a rational persona and use sound reasoning and carful research to come to my conclusion. However, the economist article states precisely that all people action on emotion rationalize this by pointing to how they use reason and sound judgement.

I am not trying to attack anyone here, I am guilty of this as much as anyone. But when you really evaluate your beliefs, including the one states above, can you confidently state that it is pure reason unaltered by emotion?

And I think this is the core, we must recognize that all of us are hard wired to behave like this. And maybe the best that we can do is try to recognize it often enough and then consciously counteract it.

I don’t have the answer here and it is beyond my expertise but I think anything complicated such as ‘why and how are humans hardwired to act on emotion instead of reason’ and ‘how is this knowledge being abused’, has more than one underlying cause that you alluded to.

You may be right and we may prefer lies exactly for the reasons you stated, but what evidence is there for that and how did you come to that conclusion? Or is it based on your ‘gut feeling’ or ‘intuition’ based on your world outlook.

Everything we learn has some inherent flaws due to the fact that it passes through the brain’s limited capacity to deal with biases and separate reason from emotion.

So, while I think my response is terribly insightful and impressive. In my limited capacity, I know that I will no doubt be humbled by responses of others which will point out my own errors in my reasoning.
Ishell: A Go library for creating interactive CLI applications
What I was talking about in the previous post is two topics. So, it depends what you're looking for.

There are tons of books and meditation courses. It depends what suits your style. eg, The Mind Illuminated https://www.amazon.com/Mind-Illuminated-Meditation-Integrati... is the most popular meditation book right now. There is even a subreddit dedicated to it. However, it is quite the read, guiding as one progresses, mirroring how a teacher would do it.

Culadasa, who made The Mind Illuminated, is working on another book that goes over the second topic I was diving into (like Noting Meditation). It is incomplete with no eta. It would be a 102 book for after one finishes The Mind Illuminated.

There are other resources on the second topic, but right now both topics are ideally taught with a teacher, especially the second topic, so progress can be aided and verified.

What goal do you have? I can possibly write a skinny as to what to look at and where to go to achieve that goal, including providing more resources.

Also, just in case you do not know CBT, with a good therapist, is, I believe, the only kind of therapy that works well on depression. CBT takes from the techniques in the topics above, and then boils them down into a light version that can be worked through at an accelerated rate.
Any code base which does simulations would likely have some automated testing covering a good chunk of the value domain + extremes, which lends itself very well to ASan and UBSan analysis.

I don't think OP said anything about writing code that's not thread-safe. They specifically said they're carefully designing such code.
What they said is that due to the way they handle memory, most related errors don't happen in practice - which is perfectly believable.
Floating point errors are separate issue, they could happen in almost any language.
...but that's not wait free? What happens if a processes crashes or a thread is de-scheduled while holding the lock? Or just isn't scheduled again very quickly?
Visual C++ 6.0 – 20th Anniversary Service Pack
> And finally, it's the only philosophy or religion that has ever fixed me. All others failed.

> There's also countless medically and scientifically verified miracles. They're still happening today, and it's not just "oh trust me it was a miracle", but actual medical professionals testify under oath that such-and-such truly happened and that it isn't possible under any known laws of physics or medicine etc.

But in a broader discussion about astrology, these are the kinds of claims made by all sorts of groups.

As for the works of Christian bodies throughout history, well, the world has seen it and it is what it is. It may be good, it may be bad, or somewhere in-between, but it isn't morally beautiful enough as a sole justification to adopt a position of faith on these matters.

But none of this really talks about why you know the real Christian groups from the lesser ones. That's the kind of talk any Christian group would make against another.
> I assume the starlink satellites can bounce the signal from one another as well.

Not yet, future iteration. Bent pipe currently (Ground->Sat->Ground).
May I recommend this talk on the neuroscience of language and thought by George Lakoff?

https://youtu.be/JJP-rkilz40?t=280

And also this one on political language, morals and metaphors?

It will change how you listen to political speech, and especially political speech targeting people with different political orientation -- which can often sound nonsensical, but is actually carefully constructed to activate their metaphors.

https://www.youtube.com/watch?v=5f9R9MtkpqM

Basically, the ideas of enlightenment (we are rational beings) are not true.

A couple of slides from the first lecture:

Myth:

Reason is conscious, you know what you think.

Science:

Reason is mostly unconscious, estimates are about 98% unconscious.

Conscious thinking is linear. Brain circuitry is massively parallel.

Myth:

Ideas are made meaningful via their direct connections to the external world.

Meaning is a matter of truth conditions.

Science:

Ideas are made meaningful via the brain's connections to the body and our embodied experience.

Myth:

Emotion gets in the way of rationality.

Science:

Emotion is necessary for rationality.
Also this comes to mind. Most of successful IT companies do not use external services for core components and prefer inhouse solutions.
Club Orange Cryptocurrency
Use of light in 2019 vastly exceeds that of 1819.

A chief mode of expansion isn't in intensive use, that is, per person or concern (firm, agency, organisation), but extensive use: the number of individuals, concerns, and applications making use.

The access to artificial light by people, by entities, by activities, has exploded. More people have access. Lighted billboards, sport fields, indoor agriculture, vanity outdoor lighting, etc., etc., etc.

New York City's Broadway became known as The Great White Way in 1910 due to its spectacular use of electric lighting. That is now every populated hamlet save North Korea, and regions of central Africa, Amazonia, and Oceania, have comparable lighting levels outdoors.

https://www.spotlightonbroadway.com/the-great-white-way-0

https://eoimages.gsfc.nasa.gov/images/imagerecords/55000/551...

And that excludes interior residential, commercial, and industrial lighting.

Light pollution is now a thing.

https://www.nationalgeographic.com/science/2019/04/nights-ar...
Assuming that Bezos lives in a fairly large house (and/or has several houses), evicting him could help quite a lot of people previously living in small shacks. I grew up in a NY suburb and you could probably fit two families (three in the larger ones) in any house in the neighborhood without anyone being particularly uncomfortable, and with no construction beyond the conversion of a half-bathroom to a full-bathroom. Given funding to more thoroughly renovate, you might be able to manage three. And that's just upper-middle-class suburbia, not billionaire mansions.
> Most students don't have jobs at all.

Citation needed. 40% of undergrads work at least 30 hours/week[1] so I'm willing to wager that the majority of them have some sort of job.

> Most students live in high end apartments (lots of these apartments cost more than my mortgage payment for my 4 bedroom house - per person)

Where are you living that rents are so high but property is so cheap? Or did you buy a long time ago? And again do you have a citation for "most" (which is defined as > 50%)? The data says most undergrads still live in college-owned housing.[2]

> When I've asked how this happens, I'm told that college loans let you pay for room and board so they happily get the most expensive housing possible because it's "free". Almost all students have cars and lots of them have a "parking ticket budget" so have no problems parking illegally and paying for it. It's also "free" because of their student loan.

There's a term for these people: "financially illiterate". They have always existed and will continue to exist. Do you have any evidence that there are more of them now?

Anecdotes are not data. Your personal observations don't invalidate reality.

1. https://cew.georgetown.edu/cew-reports/workinglearners/

2. https://www.usnews.com/best-colleges/rankings/most-on-campus
Apparently this is less true for newer reactors, or older reactors with upgrades. I'm not an expert, but https://www.powermag.com/flexible-operation-of-nuclear-power...

Even if reactors aren't as fast to react as a gas peaking plant is, perhaps batteries will soon be able to bridge that gap. The economics of batteries change greatly if you only need them to carry the load for tens of minutes for reactors to ramp up, vs needing to carry the load until the sun shines again.
They also have _comparison_ with RCU
https://concurrencyfreaks.blogspot.com/2019/10/is-rcu-generi...
Thiel’s VC firm sued by former lawyer, accused of inflating portfolio valuations
My primary interest in Rust is for gamedev, as an alternative to C++. The library ecosystem is a bit weak right now, although there's a lot of interest and people working to fix that, and I think the fundamental language is a great fit.

WASM lets me reuse the same codebase to host demos/previews/simpler games directly inside of a website, without needing to convince the user it's trustworthy and worth their time to download/install/grant permissions to first.

I'm sure other SPAs could also see benefits...
Why did it take a long time to track down the bug? You had a test case which triggered it, so in theory just running under valgrind would have been enough.

Or did it not happen in that case?

I'm not even gonna comment on the rewrite, that reads like an ad. :-)
You got a good product with a decent market size, skip the free trail, and start selling, help people set it up if needed. Dont add more features until you have a bunch of customers and know your market. Make it possible for customers to create view links so that your customers will help you get more customers.
From the rules linked here:

https://roadsafety.transport.nsw.gov.au/stayingsafe/mobileph...

> Restricted licences holders including learner, P1 and P2 drivers and riders are not permitted to use their phone at all while driving or riding. This includes use of hands-free and Bluetooth functions.

Am I misunderstanding this? Are they saying that teenagers with a learner's permit are prohibited from using their phones while riding in the passenger seat?
> How can OEM's still ignore AMD?

In the last 45 years or so there were many times where Intel's status as king of the hill looked vulnerable: Opteron, Athlon, Cyrix, PowerPC, Motorola 68k, Z80, 6502, ... They've always come back, and anybody who bet against them has been burned badly.
Absolutely agree with that, but the problem might be people not having the time to follow up on long discussions, and source information to disprove climate denier arguments.
In fact my experience is that many climate activists are not that familiar with the science & economics themselves: https://www.youtube.com/watch?v=8qaJKM77j00 (she should have quoted Martin Weitzman's work on the fat tails of the climate sensitivity distribution).

I would suggest having a repository of clear arguments and counter arguments with links to reputable scientific sources, that we can refer any climate deniers to. For example: http://www.realclimate.org/index.php/archives/2018/06/will-c...
I'm sure Zuck is happy to know that there are people on HN defending his morally corrupt regime.
A pension is a personal savings. Back when pensions were actually offered by companies, you'd often choose your company by not just your paycheck, but by the retirement plan they offer. You would literally turn down jobs that might pay better but offer no pension. If that's not saving your money, then what is?
Monzo do this for your actual bank account. Basically it relies on your email being secure. If your email isn't secure, you're fucked anyway.
So make a big enough nuclear plant for those peaks.
Maybe the ROI numbers you qoute in reply to a long explanation about ad-spend ROI numbers being as reliable as a noth korean non-proliferatin pledges?

Also: please disclose your specific conflict of interest, presumably you have some since you appear to work in the field.
The problem is that the async model is a form of cooperative multithreading, so if one computation runs for a long time without returning to the main event loop, it can increase the latency for responses to other events. E.g., if one HTTP request takes a long time to process, and many of the worker-pool OS threads are handling such a request, response time goes up for all the other requests. OS-level concurrency is preemptive (timesliced), so one busy thread doesn't block other requests, but of course with much higher overhead in other ways. Best practice is usually to keep event handlers on event-loop threads short and push heavy computations to other OS-level worker threads.
Or deploy storage to make the curve smoother
...or hydro.
Source for the latency of nuclear concerning spikes in electrical demand?
> 70% of France electricity is made from nuclear and they don't seem to have the issue you claim.
In those situations, we hire the other vendor as a subcontractor, rather than expecting the client to evaluate and establish a relationship with a brand new vendor.
How Discord achieves native iOS performance with React Native
You can beam from over the clouds (beaming antenna on a tethered balloon or even drone), and have a huge line of sight to boot.

It's an absolutely huge engineering challenge, but at least it doesn't require a discovery worth of the Nobel prize in chemistry (which I guess much improved batteries would warrant).
I would say the easiest thing is make a web page that downloads documents from highly-viewed dockets, prioritizing opinions and other interesting entries using the API. The UI is something that just prompts for username/password/budget and then shows a list of the fetched documents.

Then if it's popular you can do more interesting things like prompting people to use the web page from the extension, moving the whole web page and fetch logic into the extension so it doesn't leak credentials, turning it into a cryptocurrency so people can fetch documents on demand, etc., but first things first.
I wonder how much it cost to get this many upvotes on HN as well?
Say what you like about Bootstrap as a framework, but the documentation is pretty damn good for it. Every aspect of the system is documented, there are plenty of examples where needed, and its written in such a readable way that even novice web developers can understand everything pretty much immediately.
FFI is slow because the main Go compiler uses a different calling convention than everything else. I couldn't tell you if or how that's related to its concurrency features.
Inspiration?

I'm working on a design system at the moment and I have looked at a few for ideas.
The problem I would have is that it is too vague. What do you not understand about it? Usually there's more than one point you could be confused on.

For example, let's say I'm using a hash to eliminate duplicate strings when building a message to send over the network. Do you not understand how duplicates could occur in the first place? Do you not understand why I'm using a hash instead of some other implementation choice? Or do you not understand why duplicates cannot be put into the message I'm building?

In other words, when you say "I don't understand this", is it clear and unambiguous what "this" refers to?

Sometimes the line number you choose to put your comment on makes it pretty clear. But not always. You might have a problem with that line, or you might have a problem with a chunk of code that begins at that line.
> like hydrocarbon fire.

Or batteries and other storage methods. It looks like battery solutions could get cheap enough in the next 10-20 years to smooth things out and take care of storage for a few hours (see for instance http://news.mit.edu/2018/metal-mesh-membrane-rechargeable-ba... .. Donald Sadoway has some good talks on YouTube)

But yeah, for days that happen to have less wind/solar, I think the best thing is just keep gas power plants around. The CO2 impact for that will be minimal, the power plants are already built, and over time you could replace the fuel with synthetic gas made from renewables, which would basically be another energy storage mechanism. Cheaper renewable gas is something we need to make the world sustainable anyway.

The only unsolved problem is seasonal variations in colder climates. But those areas could import more trash and burn it (for both electricity and heat), like Sweden does. Norway has a ton of hydroelectric power, and is building more HVDC power lines to other areas of Northern Europe which will help with that area. Not sure what the solution for North America is though. But it's not nuclear. Having a nuclear power plant idle for half a year is the exact opposite of what you want. The plant is expensive and the fuel is cheap - if you build it you want it to run 24/7.
> "A high suicide rate among psychiatrists

What is vicarious trauma, and why might it relate to psychiatrists?
You mean I can “bank” A/C in the form of ice???
Renv: Project Environments for R
I hate this response :). Should we also get rid of food safety, airplane safety or health regulations? Considering how long feedback loops are financial decisions a developed society should define a baseline for long term decisions where the individual can rely on some standards. If you make individuals solely responsible for their retirement you will see a lot of people who will be poor in age and a lot of scammers getting rich. I bet already many less people will be able to retire since the move from pensions to 401k.
> No, they aren't[1].

Courts may be different, but as part of jury selection you are told that you have to take an oath that even if you disagree you have to follow the law.

I'm fact hinting that you know about jury nullification seems to be a great way to get out of jury duty.

> No, they aren't[1]. In fact the opposite. We were asked to use our "worldly experience" to help us reach a verdict.

Well, in my case the judge was very clear to use ONLY the evidence provided in the court and to NOT use any external info or knowledge.
> the extreme afternoon demand curves when solar capacity drops and demand jumps

Does the hourly schedule variate day by day or can it be predicted?

If you can predict when and how much power you will need to produce then it can be ramped up slowly, I assume.
MediView XR raises $4.5M to give surgeons X-ray vision with AR
Actually I would argue this is also a thing in top programs (maybe moreso than lower ones) due to grade inflation to improve the perception of those schools.