skysight-inc/HackerNews huggingface dataset:
I'm sorry but this reasoning sounds like elitist rubbish to me, like trying to turn a completely subjective workflow step into a universal law ;)

It's not about a "need to step through because your code is too complex", more about validating the code you just wrote, whether it still "feels right" after it has been dumped from your mental model into actual code.

You may have carefully thought about your program for hours before typing the first line of code, but usually such a splendid plan doesn't survive the first written line. Maybe the super-intuitive API you thought about doesn't quite feel that great in practice, maybe in the end you still didn't think "hard enough" about some problem. Spending time in the debugger to think about solutions is usually better than "just thinking hard" about solving the problem, because you have more data, and can tinker with potential solutions, and finally figure out which of the potential solutions feels best.

It's the same reason you're using a profiler for performance optimization, not just thinking about how to make the code faster (of course that needs to happen too, but it's not enough).

This sort of "validation debugging" in a tight edit-debug loop requires that the debugger runs in the same environment as the source code editor. It must be possible to switch between editing and debugging (and running to the location you edited) in under a second.
I’d also lose the profanity.

> You can use it in your shitty, sprawling enterprise codebase without having to do any setup.

Debugging is a sensitive subject, particularly given how frustrating it can be. There’s a place for vulgarity somewhere, but I’d rather see your README provide authoritative info than crack jokes.
EU has facial recognition at passport control in every airport, that’s the whole point of only having biometric passports and legislating “smart border” laws.

https://www.gemalto.com/govt/coesys/eborder/entry-exit-syste...
This is how HN and all other social commentary systems work. People downvote or ban without even a polite dissection of how you could be right or wrong. If someone doesn't want you to exist - you won't.
An Overview of Crypto Regulation
Good question.

If the function is launched in a spawned process, it'll work, though you might have trouble getting the stderr, so you better include a log file as the first argument, like this `@snoop('/var/log/snoop.log')`

If the function launches new processes internally... I'm not sure.

If you try it and it doesn't work, open an issue: https://github.com/cool-RR/PySnooper/issues
Tencent’s latest investment is an app that teaches grannies in China to dance
I do not work longer than 8 hours a day. I have a regular sleep schedule (10PM to 7AM), do strength training 3 times a week. I _try_ to eat properly, stay away from the company fridge which is stuffed with sugary drinks and beer. I try not to drink coffee after 1PM or so to not affect my sleep.
I also try to not write any code after work hours, unless it's low work intensity in the office around that time.
Jonathan Rothberg should have enough money to invest of his own. He is behind several dna sequencing companies.
Using the WASM GC part instead of lieanr memory will solve that, right? I know it's not a possibility for all programs, but overall, it'll help?
You don't understand because you don't take time to sit down and actually listen to the person.

IMO racism mostly stems from fear and plain ignorance, but that is easily cured if someone just takes a moment to listen, understand and then with gentle attempts to counter their fears or lack of understanding.

So far I have not failed once to make people more understanding and accepting of diversity and equality, and that just by taking a moment with them.
An interesting question is: do all factors scale at the same speed?

The experience of e.g. Hong Kong and Manhattan seems to suggest that it's easier to provide for public transport, schools etc, in ultra-dense environments. One of the core advantages of ultra-density is that less space is needed for streets and motor traffic. Ultra-density also makes logistics for basic goods and services (e.g. food and health care) more efficient. Even greenery can be more efficiently provided in ultra-dense environments, because multiplexing is possible as parks are rarely used by the majority of the population at the same time. E.g. London parks are pretty empty almost all the time.

(See also the scalability limits that high-rise buildings have w.r.t. economics of floor space, that I mention in another post.)
Understood — but what if the post reporting on something found on another site has been enhanced with links and photos NOT present in the original source?
True, for some reason I was thinking more about the two larger models (probably because I've seen more of them around?) - and I have a very city-dwelling perspective on small being important.
The fact that GCC/Linux/glibc/etc were pre-existing projects that multiple corporations chose to contribute to without gaining any real "ownership" or control makes them less relevant examples for you?

>> Complaining about a lack of business involvement in RMS-approved “free software” ...
How hackable is your password?
The fact that you presume people outside the US know what and where "Michigan" is makes me think you don't know much about other countries at all.
It's not just an old way of thinking. It's frankly a dumb one.

There are many women who are physically, emotionally and intellectually stronger than many men. And they are more than capable of doing a "men sized role" just as well as any man. And the situation applies vice versa as well.

If you want to celebrate the differences between men and women, whatever that ever means, well then knock yourself out. But generalising the traits of billions of people is frankly insane and guaranteed to insult some decent size proportion of them.
> The main cost of a nuclear plant is the initial construction

Now that we actually start decomissioning them in Germany it turns out that decomissioning nuclear plants is more expensive than constructing them. Everything has to be measured for radioactivity, with a significant portion of the structure turning into nuclear waste due to being exposed to radioactivity for decades.

Insuring nuclear plants at a fair rate would also be really expensive. While serious accidents are rare they are exceedingly costly. The Fukushima disaster cost somewhere around $100-200 billion. Ukraine still spends 5-7% of their national budget on Chernobyl, 30 years after the disaster. Somewhat strangely most of that financial risk is taken by the government instead of the plant operator.
It isn't always that easy. For example, where I work, bringing up a full stack locally involves multiple Python processes (servers) with the frontend accessed via the browser.

Using this tool will work immediately, while using pdb would be a bother (comparatively).
I wrote a lot of shitty, sprawling enterprise code over the years, and I feel there's no shame in admitting that's what it is :)
Facebook's role in Brexit and the threat to democracy
The Humanities Is the Next Frontier for South Korea’s Chaebol
Don’t do this. Your card not working (generally speaking) doesn’t automatically end a contract.

You could end up with the subscription not ending but just accruing as a debt, which the vendor could then sell on to a debt collector at a later point.

If you just let a card expire you’re generally relying on the good will of the vendor to treat it as a cancellation.
Just an anecdote: I sometime drop to friends and acquaintances that salary is one of the last taboo in our modern western society but it's a really strong one. Either it ends there with a joke comment or it sparks a conversation about an individual's worth in society and among friends.
A Secure Runtime for JavaScript and TypeScript
While I fully agree that people should accept that some people are driven by things other than money, and even beyond that, it should be perfectly socially acceptable to be driven by other goals instead...

People who are driven by money, no matter gender, skin color, etc shouldn't be held back from it because of preconceptions about their ability. Only their actual ability should matter.
> Is building upward prohibitively expensive due to needing to make earthquake-resistant buildings?

There is no shortage of high apartment towers in Tokyo and major city centers in Japan. So no, that's not a restriction as much as you would think.
I have to say sometimes I do find it much easier to read logs than to muck about in an interactive interpreter. That said I did just add `export PYTHONBREAKPOINT=pudb.set_trace` to my bashrc and am slowly going through and removing all my old `from IPython import embed` lines. A much simpler workflow that doesn't incur major runtime costs.
> making politically heated ads is a bad idea

Which is why I strongly suspect ad agency creatives did this on their own. Being in Brazil may have made them feel free from client scrutiny.
Yes it would be. 30 weeks of 1 year was enough for me.
It's always interesting to see "<insert popular paradigm/technology> sucks" headlines. Maybe that's also intrinsic to the popularity, on the one hand this got popular for a good reason most likely. But on the other many people might be very careless when using that paradigm and only inform themselves superficially - at best - about the background. That said, I really like how JS had been tamed through OO despite the FP approach being much more interesting.

When I use OO, my main motivation is also that it's easier to share code and debugging becomes much more predictable. (Aahh, it's in this encapsulated part of the code...)
real estate is
very expensive

Can it even be the case that real estate is
"very expensive" when almost half of the South Korean population can afford to live around Seoul? Dwelling expenses should be evaluated relative to available household income. I conjecture that Seoul's population on average spends roughly the same fraction of household income as they did 10, 20 and 100 years ago.
“The Empire's got something worse than whips all right. It's got obedience. Whips in the soul. They obey anyone who tells them what to do. Freedom just means being told what to do by someone different.”

From Interesting Times by Terry Pratchett
This is a greet solution to a problem only half the population believes exists.
How to overcome perfectionism in a judgmental world – Quartz at Work
Shameless plug: I save insightful paragraphs to https://booxia.com using a browser extension, and then I get reminded about them via email.
Totally agreed: proper thinking (not hard thinking but proper) on how to design programs makes most debuggers tools useless. Kernighan and Pike, but also Thompson, Ritchie, etc. perfectly understood this 20 years ago. I would not be surprised to learn that they never had the needs to use something like gdb in their nontrivial C programs.

I think JavaScript is a special case because it's too much complex by design.
It's going to be shrinking much sooner and probably much more in the developing world due to actual next (rather current) global issue: climate change.
I love how while these comments are from years ago, if they were posted today I wouldn't be able to tell.
To me constructive means there is a suggestion of how to improve.
There’s another idea I’ll like to add to your comment: equity, which how policies should allow society to grow in equality.
> usually, my bank tells me at least once a year that I need a new number because my card has been compromised

What!?

I have been shopping online all over the place since the time Amazon was only a bookstore (read: decades ago) and this has never happened to me once.

Are you sure nothing is wrong with your bank? Do you use your credit card in shady places?
There is a race condition when writting on the same log file from several processes at the same time, which is a typical use case for wsgi frameworks such as django or flask.
Did you choose your role just because it is high-paying ?

Or were there are other factors e.g. stimulating, flexible, empowering, creative etc.

Because pretty sure women are selecting roles for a range of different factors as well. You know because all women aren't the same. Just like all men aren't the same.
Amazon Quits China Market
PuDB is amazing. Best command-line debugger ever, plus you get feelings of nostalgia for the Borland days.
> The implication that stupid people are the ones lobbying against nuclear is deplorable.

Most often it's ignorance and not stupidity.

> I'd argue the shoe is on the other foot. Nuclear's cost disease renders continued pursuit of the technology very difficult to justify.

Nuclear's "cost disease" is a function of an industry that, for one thing, functions a lot like the dinosaur space launch companies (ULA). Somehow SpaceX came along and completely disrupted things.

The small, agile companies pursuing small modular nuclear reactors are a lot like SpaceX. Probably the most disruptive idea is that of building the reactors at factories, and then transporting and installing them with little additional work. That avoids the entire red tape and risk of one-off construction, and affords economies of scale.

Since there's a very effective and strident anti-nuclear lobby here in the US, these companies will get started elsewhere. Keep an eye on ThorCon, X-Energy, Terrapower, and NuScale.

> According to IAEA, there are 50 designs or concepts in various development or planning stages around the world, with four in advanced construction in Argentina, Russia, and China.

https://www.scottmadden.com/reports/V17_I2/EIU_V17_I2_2017_D...
On the contrary I think the author is spot on. I can never be bothered to get the debugger going no matter how easy.
Does it have an option to print the caller ? "u" is my fav cmd in pdb.
The model S is very big by European standards too, they're sized like the bmw 5 series and mercedes E class, both of which are very large. The model X is by all accounts absolutely massive, like the range-topping volvo xc90.

The model 3 is sized pretty regularly though.
It may be likely - but it is not a logical necessity: there can be large structural differences between functionally equivalent things (artificial, engineered example: like a C64 computer and a C64 emulator)
Considering that the vast majority of 'research reporting' involves rephrasing press releases, this is a difference without a distinction.

While the article is about generating abstracts rather than press releases, I don't see why the same approach wouldn't work for both problems. I'm sure a neural net could be trained to write in press release style instead of abstract style.
No, feel free to add it as feature request on GitHub.
But were put into this position by the bad will of the vendors who make it next to impossible to cancel the contract.
>>One hospital would get about $4,200 from Medicare for removing someone’s gallbladder. The same hospital would get $7,400 from commercial insurers.

That's roughly double. Now, are Medicare lower because private insurance subsidizes them or hospitals can actually make it happen (survive) with half price billing?
Ecuador Detains a Friend of Assange. Critics Say It’s Guilt by Association
Related: a specific talk that demonstrates how this can undermine democracy

https://news.ycombinator.com/item?id=19717962
If I were going to build a full text search tool that was primarily used for code, I doubt the OS native search indices could be used. For searching code, you likely want a very different tokenizer and code-aware searches than what a typical document indexer would use. I've often thought about leveraging the enormous set of syntax highlighting definitions for languages out there as a base to build a tokenizer off of that has some smarts about the things it indexes. But it's a half-baked thought.

But I agree. A prerequisite to any tool like this really need to be very good at keeping the index up to date with minimal user fuss and needs to be reliable. That's a hard engineering task.
If the tool gets it wrong, maybe your paper needs improving.

Or maybe it's the tool that needs improving...
50 years later people won't be able to even afford even those apartments anymore. Next will the hyper "efficient" 1m² apartment where you sleep standing in the toilet bowl.
Given that:

There are two types of code: Code that implements the “domain logic,” and code that implements various abstractions used by the do an logic.

I suggest that:

We need to be able to both debug the domain logic and the abstractions implementation independently of each other.

——-

In simpler days, the above was accomplished with feature like “step over,” or, “run until.” We simply skipped over the lines of code in functions that were “beneath” the level of abstraction that interested us.

Today, there are many deep layers of abstractions, and sometimes important things happen within them. Similarly, our data itself is wrapped up in bundles of abstractions, and sometimes we need a way to view that data as an abstraction, at other times we need to “drill down.”

We have sophisticated tools for building abstractions in code, and we have a way of bolting some of that onto the debugger by means of source code mapping.

But that is not enough. We need more sophisticated ways of stepping through our domain code that understands the abstractions it is hiding. We need to be able to write a framework or library, and write debugger extensions to go with it, just as we write extensions for our compiler toolchain.

That way, we can build abstractions that can be “stepped over” in the debugger as easily as we can write our code in abstractions in the editor.

——-

I think everyone realizes this and is rushing to implement point solutions here and there, like special cases for async stack traces when you use JS’ built-in async/await. And the author is hinting at an important “special case” for React.

I suspect that we need a more general facility for meta-debugging, much as macros are a more general facility for meta-programming.
I love this concept and will definitely be using it.

Presumably it works with Django? If yes then thrice thanks.

This project would justify an additional dedicated screen just for dumping function debug logs.
How to Pay Startup Employees Fairly
A hospital wants to keep its facility 100% busy, because facilities have a fixed-cost component. Like an airline that offers cheaper seats to some travelers to fill the plane.
Watch your tone!
Clearly the guy didn't have to pull out a working PoC in one week with a forced uppon JS framework that just changed its public API and not its doc and that need magic lines just for webpack to not crash.

Or that has to pull data from a manually written csv our client uploads at 3 pm on their managed ftp and an untested REST api designed last month by a one man start up, using a legacy client lib that only god and a fired engineer knew how to get to work.

Or that has to be done with a trainee designer that knows photoshop but will "learn this css thing on the way" , a remote turkish consulting firm and your boss dog barking next to you because animals are good for moral and we are agile right ?

Those theories are good in a lab while writting carefully crafted c for the board you designed the spec for.
I worked for a small local company that stored credit card details in plain text. Including CVV. I brought it to there attention and the owner just hand waived me off. “The working system was working”.

This is why cards like The Apple Card, which allows you to generate cards on the fly, is better for consumers. Just generate a card for LA Fitness and delete it when you close your account. This would eliminate a big chunk of fraud (including the shady shit LA fitness does) when your card details are sitting in many databases (some of which are not encrypted in anyway).

I’m not saying Apple card is great, just that feature of it.
Ask HN: What metaprogrammable language do you/would like to use?
Like many folks here, I probably spend too much time reading about, trying and contemplate using many new languages. The (overlapping) paradigms that interest me are metaprogramming, functional, and (newer) statically-typed. I decided to focus only on metaprogrammable ones from now on (as a time saver and to step up).

I made a list and ordered them by how much I would be interested in using them (which combines my curiosity with current/expected adoption).

My short-list for metaprogrammable ones are:

Clojure
Elixir
Nim
Crystal
Rust (would be higher if I did more low-level work)
Pony

I left most other functional ones off my list because that's an exploration in itself for another time. I was surprised that I put Clojure and Elixir first given my preference for static types. Of all the kitchen-sink features that Nim has, I can't accept camelCased == under_scored names otherwise it could have been first. Ruby is notably absent as I use it and am looking for something better/different.

For future adoption, I think interoperability is a key factor, whether it's with C or in a VM runtime (e.g. JVM, CLR, BEAM, v8).

Which metaprogrammable language do you use or are most interested in using? How compact are your programs (i.e. how extensive do you metaprogram)?
How to Be Productive Without Being Hard on Yourself
There's 3kb Preact with almost identical API.
AJIT uses SPARC-V8 [1]. There's another project, the Shakti, which uses RISC-V [2].

[1] https://www.indiatimes.com/technology/news/meet-ajit-1st-ent...

[2] https://shakti.org.in/
I'm going to give my not so popular answer for this.

Western society is moving away from traditional families. When I ask my son what he wants to become when he's older, he says he wants to be a police officer.

When I ask my 2 girls, they both want to become a mom. My social engineered response to this was "maybe you should become a school teacher, that way you can work with kids and be home when your kids are home". Because let's face it, being only a mom as a girl is not socially acceptable. It's a weak position to be in. We are told to push them into engineering, STEM fields, becoming CEO's, world leaders, whatever. That's what we should do. But my girls, at this age, just want to become a mom.

Western society is trying to make boys out of girls, and girls out of boys. I have no problem with women working in tech fields, and I worked with many great ones. But the question needs to be asked is if our society will survive such a thing.

On one hand it's great that women have all these new rights, are getting more "equal" to men. But if your own culture is unable to produce enough children, and you have to import families and children from regions where womens rights are questionable, you need to ask how sustainable your democratic equal society is.

This is still a big question for myself, so any real discussion is welcome, because maybe I'm overlooking something (so please don't just downvote).

Maybe if we want our society to survive, we need to accept that although women are equal to men, they are very different. A family is made up of a man and a women, who support each other in their strengths and interests, and raise children together. Maybe our society should steer away from pushing women into a 'male' role that on one hands makes sense, but on the other hand is questionable. Maybe instead of pushing women into 'male' roles, we should support them better in how they benefit our society.

I know this comes across as really terrible, because history has shown that stay at home moms are in a really weak position. But on the other hand, modern society is unable to produce enough kids, and so import people from 'stay at home mom' cultures.

Any constructive discussion is welcome.
Ask HN: How you send and receive crypto?
Hey Guys, I am trying to understand what are the most common way which people use to accept and receive crypto payments? I created this survey, I will highly appreciate if you can answer them.

https://forms.gle/7Z2qg1vWU93V33Za9