skysight-inc/HackerNews huggingface dataset:
It is that simple! It has practical benefits. For example, if you can call that code from somewhere specific in your program, which is handy for debugging. If your `eval` function takes a lexical environment, you can also implement a debugger easily.

To test whether your logic is working properly, make your repl print out a different character when it prompts for input. For example, the toplevel repl can print out "> " whereas the inner repl prints out "repl> "

For bonus points, your repl should exit if you type Ctrl-D. That way you can go from the inner repl to the outer repl, and from there it should exit your program.
Why Did Microsoft Fund an Israeli Firm That Surveils West Bank Palestinians?
Post is from 2016 and the link to the game (from the post) doesn't seem to work. However seems to be available from https://nwswargamingstore.net/shop?olsPage=products (haven't tried buying).

There's apparently a sequel out, here's one review: https://www.wargamer.com/reviews/rule-the-waves-2/
Resumes delivered disguised as boxes of chocolates
A reasonable monetary policy will avoid recessions, yes.

Currency manipulation is not really a useful concept.
It's a 100% reasonable to teach it. The German Wikipedia result right now is a disambiguation page between the snack and the place to buy the snack ("Imbiss" always being short for Imbissbude, Imbissstand etc.).
> The WEF (World Economic Forum) defines a shortfall as anything less than what’s required to provide 70% of a person’s pre-retirement income via public pensions and private savings.

So people aren't saving enough to retire with 70% of their pre-retirement income.

From the paper:

> We have assumed that current global conventions of retiring between 60 and 70 are maintained, and that individuals do not simply remain in the workplace longer.

I don't see how this is a financial bomb. 70% of pre-retirement income is pretty arbitrary. The paper discusses this in the context of increasing life expectancy, but doesn't take into account people working longer which seems the natural thing to happen.

> Still, an overwhelming majority of the short-fall comes from government programs. In order to address this problem, governments must adequately and proactively fund their entitlements too, either by increasing taxes or by cutting benefits. Individuals alone cannot save enough to compensate for the unrealistic promises their governments have made.

A better solution would be to stop providing public defined benefit pensions. Instead switch over to defined contribution. Defined benefit encourages government agencies to make promises in the future that they won't be around to carry out. As a worker, I wouldn't want to trust my retirement to the political process over 50 years. Defined contribution prevents you from kicking the can down the road and not properly fund the person's retirement
Awesome project! As a professional audio developer, I was really blown away that this was the author's first project working with audio.

For anyone interested, I'd recommend checking out "The Infinite Jukebox", which has a similar goal, but perhaps a more robust approach: http://infinitejukebox.playlistmachinery.com

If I had to guess at why your approach didn't work well on recorded music, it's probably because most of the time, there is more than a single event happening at a time, so picking out just the highest FFT bin is probably not a very robust "fingerprint" of that part of the music. The infinite jukebox uses timbral features as the fingerprint, rather than just a single note.
Best way to develop your app mobile
What's missing is a practical way to encourage that to happen and make it a default expectation in society.

My wife's parents both live with us, they're Chinese and that's a common cultural norm in China, which which I am absolutely fine. It's not a common thing generally here in the UK though.

I can't imagine doing this with my mother because she is used to living in her own house, with her rules and her way of doing things. There's nothing wrong with that, I get on with my mother fine, but living with us would drive her, or us, or all of us insane very quickly. It's not just about doing it, it's also about the social norms and expectations of behaviour that make it possible.
Now I'm not an economist, but percentage of my current income seems like a braindead metric to work with that doesn't factor in that I spend less than half of my income and the rest is invested for later and that when I retire I will stop doing that. Shouldn't they be looking for "sufficient assets to meet expenses"?
You'd need to have a way to change your outgoing IP address.

VPN providers probably deal with this all the time, so try reaching out to them asking for guidance.
Boy I wish Affinity would make Linux ports of its products, but it will probably never happen.
I admit I was sloppy about this. I'd heard he held a position at a university, and has been involved in research, but that doesn't automatically make him a professor. Sorry about the confusion.
So like the pension system which is already in place in many major western countries?
I always liked the elegance of this definition of the power set function in Haskell:

powerSet = filterM (const [True, False])
Amazon Best Sellers Rank: #243 in Books

like, that's all books on Amazon US
We don't have the technology for a superconducting grid. It also doesn't really make sense, as grid losses are not that big. On very long connections we might want to switch to HVDC, but keeping superconductors cool would most likely require more energy than you save.
awk is interesting because it was an early programming language (not just text processing) which made a number of convenient data structures available to people who could not program C.
>> "We project a 400T dollar shortfall in worldwide pensions, which will result in global economic crisis and reduced standards of living."

> No problem! Just move in together!

The point is to find a way to resolve the shortfall before it happens, not just accept it as an inevitability.
They are very clear this is to prevent future problems. It's a problem that (most) people don't have yet.
Popup Match: Popup Experiment #4
Ask HN: How to prioritise codebase health/design over new features in a startup?
I work in a startup that is in the scaling-up zone and every now and then there's some adhoc feature request or unforeseen circumstance that forces me to tweak my codebase in a way I don't want to - like putting a 'temporary' hotfix and just injecting a new logic without creating a separate/proper pipeline for it. There is no systematic testing flow or code coverage either. Its almost too sad that this service hasn't had its share of cleanup given its importance.

Now, I am at the bottom of the barrel here and not the original creator of the repo. It is a clusterfuck tbh and I really want to refactor it. The thing is, this repo connects to almost everything else in the ecosystem and taking the time out to refactor it is not going to bode well for a number of interdependent features.

How did you guys proceed when your microservice was getting out of hand with all the new features? And what do you guys prioritise, as a SWE, the health of your service or new (and apparently important) features floated by the product team?
"terrible" is the wrong word here. I far prefer absolute values, to arbitrary "corrected" values that are harder to interpret.

I was looking at exactly that 6T figure, and was like: This is an AWEFUL LOT for a country with less than 20 Million people.
I pay 0% VAT if I order from a country with VAT and ship to the US.

The key here is that when something is classified as "interstate commerce" different laws apply than if you're buying something in-state. Enforcement varies, and can be expensive, and the laws are catching up sometimes, and purposefully not present in others, depending on the state and their approach to interestate commerce.

As an American, I'm quite happy there is no Federal sales tax. There is no reason to capture value at that level and allocate at the Federal level. States already have these taxes, and are much better equipped (in terms of need / proximity - not in terms of functioning government at times) to allocate the money toward local services.
Bitcoin fixes this
CreateSpace (paperbacks) is now part of Kindle, so you can release a paperback with no ebook on Kindle.
Pike's code should be studied in schools.
FlowSense: A Natural Language Interface for Visual Data Exploration
I've seen domestic cats getting repelled by any object looking like a snake if you bring it sufficiently close to it and that too suddenly.
Swap the word "credits" for money and you have our current system.

No need to create a tyrannical government to force people to do deeds of arbitrary value for elderly people.
Does anyone know if transmission lines can be buried? Some high voltage DC can be in the hundreds of kV, is there a limit to what can be buried in moist ground even remotely efficiently? You’d need a good amount of electrical insulation, but also thermal conductivity (I assume these lines heat up?). Any experts here?
The population is still increasing and there is a housing shortage.

Old people sell homes and combine households with family. Young people (larger total population) buy up those homes.

Thats how its supposed to work, but instead we have real-estate as investment and old people sitting alone in their massive houses until they croak.
Haxe 4.0.0
Yeah just tying it with time and not the financial system
There doesn't appear to be a kindle version. There's a link to request one from the publisher on the Amazon page though.
I perceive a maze in http://tromp.github.io/pearls.html#maze
This assume everything is taxed under VAT. As Yang has discussed, necessities don't need to be taxed. Luxury items can have a higher tax.
The joy of Kindle publishing is that you keep all the money ;-)

This is already #243 out of all Amazon, so I'd say he was correct in this ...
What's missing from this article is the current amount of the shortfall and what the historical value has been. Without knowing where we are coming from, there's no way to know how concerning this is.
I wonder which one used less energy in 1999?
Some people consider that, when the rich are hiring a duplicate of a public service, it proves the public service is not fit for purpose.
People who are living on less than 50% of their income (particularly less than half of after-tax income) are a pretty much vanishingly small subset of the population.

It's a smart policy, but it's quite uncommon. When economists think of simplifying assumptions that also help to communicate the essence of a situation, this one doesn't seem that bad to me.

https://www.mrmoneymustache.com/2012/01/13/the-shockingly-si...
Automate months of social media management in minutes
The risk with this kind of story is that we end up focusing on the financial at the expense of the real.

Ultimately, the goods and services consumed by retirees are provided by the real economy, not by financial instruments (which is just a fancy way of saying that you can't eat savings).

The way to ensure their availability is to make real investments, not financial ones: build infrastructure, factories, accessible retirement homes; train nurses, doctors, etc...

Unfortunately, focus on the financial can trigger (and arguably has already triggered) some extremely counterproductive reflexes. For example, we've been told for decades now that private savings are essential for retirement. This may be true at an individual level, but in the aggregate it causes a savings glut - those low interest rates aren't just the making of central banks - and it withdraws effective demand from the real economy, which disincentives many of the investments in the real economy we need to provide for an aging society.

So yeah, good to see some focus on the aging society, but please try to look beyond the financial smokescreen.
California Shows How *Not* to Deal with Climate Change
Thanks for the comments. They were helpful.
Peter Schiff admits Bitcoin is scarce and can't be seized or censored
re steroids

I thought it was a lot of fuss over nothing, eg baseball players juicing, until I read The Waxman Report by former Sen Henry Waxman. I learned that steroids were a serious problem for teenagers and other aspirants, leading to health problems, and occasionally suicide. Sen Waxman's own intro to the issue was from constituents who's own son was using and then killed himself.

TLDR: steroids are also problematic.
Limited scientific resources means our ability to map change is extremely limited. As a result we cannot easily tell if changes in one area are replicated elsewhere which is clearly cause for concern or simply that things have shifted locally but globally things are pretty much the same.

Clearly, more research is always needed, however our inability to get the big picture when it comes to changes in species distribution etc. is hampering decision making and creating fear, uncertainty and doubt which can be exploited (not taking sides here).

More (marine) robots, more satellites, more expeditions, more effort in large scale mapping is needed to make sure we can see the forest for the trees. Sadly, this needs more boots on the ground and a lot more money.
It’s our right to live knowing your product DOES NOT exist.
I'm one of the authors – there's actually slightly newer benchmarks at http://ann-benchmarks.com/

Reminds me it's probably time to re-run the benchmarks and publish newer numbers
"Private yachts sold to California's wealthy."

The horror!
I am sure people can debate for decades about where to draw the line. But many other countries have banned political ads and they drew the line somewhere.
> The WEF defines a shortfall as anything less than what’s required to provide 70% of a person’s pre-retirement income via public pensions and private savings.

Oh come on... why 70%? Presumably retirees don't have childcare costs, can downsize on housing, no more daily commute so savings on transport and lunch costs, ... Also, does "private savings" account for accumulated housing equity?

Also, I think that "retirement savings" are a fundamentally misguided economic policy... There's a fixed amount of wealth created at any moment (and a lot of it isn't transferable over time - in particular, labor, energy and food), so by "saving for retirement" we're actually causing a deflation (less money spent to buy same amount of wealth) and will cause an inflation when we start "spending retirement savings" (more money spent to buy same amount of wealth, so prices go up). This is a rat race, you only get ahead as long as you save more than others (similar to the housing bubble). The only sustainable solution is the working population to subsidize the non-working population (kids, students, retirees) in real time, year by year. If that math doesn't work out, we need to change it (make more kids who become new workers or make less retirees by having people work longer). Or post-scarcity economy of course.
World savings is a misnomer. You redeem savings by drawing on the resources of the rest of society. The world can't be a net saver.

Imagine a desert island of two people. They have a system of savings. You can bank away a voucher that makes the other person gather coconuts for you, and do other necessary work.

One of the two people could conceivably work harder in their youth and then work less later using the vouchers. But:

1. They can't both do it
2. If the other person loses capacity to work hard in their later years, your savings voucher loses value.

How can they both save? To a limited extent, they can store resources like extra coconuts, build infrastructure and tools while young, etc. But this only goes so far: food rots, infrastructure depreciates.

On a global scale the world is no different. A savings shortfall means that global youth productivity won't be high enough to support global elderly retirement. We will need to either:

1. Get youth more productive
2. Make more youth
3. Take a greater percent of youth's income
4. Have old people live on less or not retire so early

Notice that none of these are about saving now? That's because moving 1's and 0's in a ledger isn't a provisioning of future goods. You need actual future goods production.
soft skills side of software

There is no "soft skills side of software". Soft skills are universal. They're (mostly) applicable to every single job. Eg https://www.wikijob.co.uk/content/interview-advice/competenc...
They do have some in smaller packages too, e.g. [1] that uses a PLCC-44 package, so ~16.7mm per side instead of ~5.2cm x ~1.5cm. The package above is that big because it's pin-compatible going back to the original 1975 version, and mostly drop-in compatible (barring some issues such as different levels of support for undocumented opcodes).

But of course even a PLCC-44 package is big compared to that die.

[1] https://eu.mouser.com/ProductDetail/Western-Design-Center-WD...
The path towards O(1) space instead of O(log n) space is fraught with technicalities. At the bottom, you realize that no matter what algorithm you use, you always store the array size in lg(n) bits! So it makes more sense to say “less memory” rather than O(1) memory for sorts.
A Practical Approach for Defeating NMAP OS-Fingerprinting
DiffTech: Compare Similar Technoloties
Ebook sales are counted as part of the NYT bestsellers list. In 2010, they initially did separate ebook listings, but it’s all combined into the general categories: https://www.vox.com/culture/2017/9/13/16257084/bestseller-li...

I can’t remember a single mainstream title that hasn’t had an ebook version for preorder and first day sales. This includes “Bad Blood”, “Super Pumped”, and “Catch and Kill”.
Psycho-Pass new season just started with 45min eps!
> In my experience the best information is always in websites with no ads. Like personal blogs, old pages, you name it. Seeing ads in a newspaper website? Why would I want to watch ads in exchange for being fed manipulating, half-true information?

To extend the metaphor: Malls often have common areas where you can sit and just hang out. They also often have cafes with tables. The common areas are often nicer than the cafes -- less loud and less cramped. If you like common areas better than cafes, by all means, sit in the common areas. But if you do sit in a cafe for some reason, you should buy something, even if it's just a bottle of water.

By a similar reasoning -- if you prefer websites with no ads, then by all means only go to websites with no ads. But if you do go to a website supported by ads, I think it's part of the implicit bargain that you be willing to view ads that are presented in a reasonable manner (where "tracking you across the internet" is not reasonable).

I don't like the concept of tipping -- I think people's salaries and/or bonuses should be determined by their managers, not random people who wander in. But if I go to a restaurant where tipping is expected, I tip, because that's the implicit agreement I made when I sat down.
You can do this, but for many people it's hard to hang on to those credits until you're elderly and need to spend them on assistance. Also, the amount of care you'll need when you get to that point can vary over a large range, so it's hard to plan for.
Bike lanes are not equivalent to parking spaces - they're equivalent to roads. The government certainly subsidizes the streets and avenues in the city. They would be much cheaper to maintain if more of them were restricted to being pedestrian and bicycle only, but then as usual people with cars would complain about losing their free access.
> The WEF assumes many people born recently will live beyond 100, which may be a bit much (the Social Security Administration expects most Americans born today to live into their mid-80s).

The title of the WEF paper is "We’ll Live to 100 – How Can We Afford It?" The entire paper is an extrapolation of that one assumption.

There is no country in the world with life expectancy over 84. There is also no US congressional district with LE over 84. The idea that any collection of humans can exceed even 90 years in average life expectancy is unproven, much moreso for the entire human population. In fact, the LE for the USA has been decreasing for the last 5 years.
I’ve found Polacode, a VSCode extension that creates screenshots locally, is much better.
I suppose the only other variable we’d need would be what is the initial infrastructure cost as a share of the total lifetime operating cost of a distribution system. Including things like maintenance and starting wildfires. There may be a break even point where 10x cost is a sound investment.
good intentions. unintended consequences. how many times have we seen this movie before?

from the article:

"The more important the emergency, the more important it is to think before acting."

that's an important point. what else can we do to try to minimize sequels of this show?
>What's missing is a practical way to encourage that to happen and make it a default expectation in society.

Lack of options will be the encouragement. It's luxury to be able to live alone with your own rules and way of doing things. I will bet that most people who currently "live by their own rules" will acquiesce once they no longer have the power to do so.
See PEV2 : https://github.com/dalibo/pev2
Retirement and pensions did not exist until 1-2 centuries ago. It seems the idea itself is about to be retired
Imagine you're an alien visiting Earth on 2050 and it's the worst-case scenario as predicted. You see all the suffering, people starving, not a lot going on and then you look at all the arable land, the mineral resources, the factories, etc and nothing is happening. People refuse to help each other at a large scale. It's like the hungry ghosts story in planetary scale. You'd be very puzzled, wouldn't you?

Food for thought...
Mostly I've seen odd results trying to replant seed from cucumbers, squash, pumpkins, that variety of thing, when they are hybrid varieties. A lot of times, there's a clear regression back to the base varieties that were hybridized, and it can be quite a striking difference.

Also, a number of these cultivars can cross-pollinate, and then you can get some really interesting monstrosities. For instance pumpkins getting crossed up with buttercup squash that come out as dark green and orange tiger-striped things.
Julia is not presented as a simple language, it's presented as a "I want everything" language [1], a Python-Ruby-Perl-C-Fortran-Lisp-Matlab crossover with it's own unique spice. Which is completely opposite from something like Go. You can start programming knowing only one of Julia's inspiration, for example programming Julia like Python, but if you want all the language brings you'll have to dive in a lot of the other sides (which might clash a little with the cleverness of the compiler, as it will accept such varied styles it will not guide you to the one through way of idiomatic Julia code).

Still the Julia team did a great job in making all those diverse features feel part of one connected philosophy instead of an ad hoc pile of functionality, even if it does take a little while to fully internalize it.

[1] https://julialang.org/blog/2012/02/why-we-created-julia
But making wild speculation without any evidence comes across better?
"Legitimate Use of Variable Length Arrays"

There isn't any.*

The author shows what's at best a minor convenience, which is in no way worth all the downsides of which the author lists. For any actual use he'd have to wrap it in a function, if merely to have an assertion to check the array ranges. Oh, and have a version for compilers which don't support VLAs at all. At which point he might as well do the right thing always instead of VLA.

There author must be aware this isn't worth it. I guess the actual intent of the post was to show the author's knowledge, and indeed the author knows C and taught me some things I didn't know (VLAs are even worse than I thought them to be).

* Note that I'm talking about VLA, not stack allocation. There are better ways to do that when that's useful.