skysight-inc/HackerNews huggingface dataset:
I feel like this doesn’t really make a case for why (or how) print debugging should go away. I absolutely buy the argument that debugging tools can do the same job, and that they can improve, but that’s not a reason to avoid prints at all costs.

For me, the biggest hurdle to using a debugger is having to stop and re-learn how to use it. I reach for print sometimes only because I can’t remember the command line for the python debugger off the top of my head, or I can’t remember how to inspect a hex value in gdb. Yes it’s only a quick Google search away, but I can try the print without searching Google. Perhaps irrationally, having a long list of good debuggers I’ve never used like rr and Pernosco and others actually semi-consciously causes me to want to use them less because of the time investment required to figure them out (and repeatedly, like it has in the past with other debuggers.) There are hundreds of tools that I’m not using to their full potential for my job.

Anyway, it’s silly to pretend we can’t have both. I land heavily on the side of using a good debugger whenever I can, and yet I still use prints all the time for quick & easy debugging. It’s silly to suggest that print debugging could ever go away; it can’t unless you want to remove print statements.

One thing both this article and the one on print debugging the other day completely fail to address is debugging embedded systems and GPUs, where both types of debugging are much harder. Try debugging your shader on ShaderToy.com - neither method is available.
You aren't wrong, but you do need a debugger to be available, and it's not the case with every language, unfortunately.
Researchers associated with UMN intentionally submitted patches to the Linux kernel with vulnerabilities in them as an experiment. OSS maintainers shouldn't have to be the unwitting test subjects of experiments and have their time wasted (or worse, have vulnerabilities make it into their source code) so that researchers can write a paper about it.
You do have to work around concurrency sometimes, it will obviously depend entirely on your stack but for me there is usually way to still get a debugger on the thread I want.

For your second point, logic/algorithmic problems are when the debugger shines the most. If you don't know where the problem is, you can put a breakpoint somewhere you know is after the problem then climb back up the recorded stack frames to find the issue. If the issue is in a loop, you can put in a conditional watcher to only break when your condition is met, or just set a breakpoint one line after the loop and inspect the loop result right there.

The most useful part of debugging is the ability to rapidly excercise your "aha" moments. When you print debug, you see the issue and go "Aha!" now you have to go verify with another print. If I see the issue in a debugger, I go "Aha!" and then immediately get to look at the variable or variables I've discovered is part of the problem.

I want to make sure it's clear that I don't think print debugging is useless, it's got it's moments of usefulness. I just don't understand how someone would not want to take advantage of an advanced debugger when it's available. They are so powerful, it would be like watching a mechanic use a pair of pliers when they have access to an impact gun.
> However, we believe experiments on people without their consent is unethical, and likely involves many legal issues. People are an integral part of the software review and development process. The Linux kernel developers are not test subjects, and must not be treated as such.

> As it is, the Linux developers and committers are now burning time reviewing several hundred UMN Linux kernel patches.
The OS or browser should not just take over one of the primary means of interacting with an app and effectively disable it for any other use. You might as well just pull those gestures out of the specs at that point. The point of an os or browser is to get out of the way, not be omnipresent. It's extremely patronizing and cripples important functionality for likely millions of sites.
So much this.

Sadly, you and I are exceptions - caring about it only enough to voice our disregard for it. Usually, by the time a person is old enough to not need the churn of mass culture to be relevant to their peers, they're usually hooked on some brand or other of high-quality spam. Unlike street drugs, mass media rots your brain with full societal approval.

This is nothing new of course - many writers, musicians, and filmmakers of the 20th century have expounded on the soul-crushing effects of commercialized culture. As expected, they have ended up being more obscure to the general public than the ones who embraced it. It was weird seeing for the first time a mainstream artist or work that risked to be slightly more original than the industry average (in order to reach a previously uncaptured audience segment) being lauded as some sort of genius, while its subject matter was the same old "hey you, yes you, buy a bigger TV!"

Allocating resources and incentives (economy) and collectively deciding what's valuable and worth incentivizing (culture) are two separate layers of the social "stack". Advertising couples them in the worst possible way, effecting a positive feedback loop of wastage. The possibility that the emergent adtech hivemind's ultimate purpose is to measure and hone the efficiency of this mass pacification strategy is Orwellian par excellence.

My answer to this? Just enough economic productivity to afford unabashed dirtbaggery on the cultural plane. Anyone who does not share this perspective is watching a different movie.
> The early prognosticators thought the M1 was more a proof of concept (shove it into existing designs to get it out there).

Which is a weird take when you consider the thermal issues that Intel macs were plagued with. It's almost like the chassis was designed with 10w of dissipation in mind which Intel couldn't operate within, but the M1 could easily.

I had assumed that Apple designed for the M1 and then fit Intel chips into those designs.
I argue that printf debugging is more difficult if you dont know _what_ is incorrect

Or even impossible? I use print debugging often, not even only in cases where there's no step debugging possible and/or I'm too lazy to fire up a config/software which allows debugging, but from time to time I encounter bugs which I really can't even begin to imagine how terribly awkward it would be without step debugging. For example: finding a bug in a mark&sweep garbage collector written in C which only occurred in certain LTO builds. To get a picture of the problem I stepped through assembly code while looking at certain memory locations, regsiters, the C stack, and some related variables. How would one tackle that with print debugging? Plus the print statements would affect the very thing being debugged? That should be fun. Not to mention the effort it took to even be able to reach the exact code location where all of this happened. Would almost require to randomly sprinkle print statements all over the place.
Apple's M1 has made ARM mainstream for laptops, Lets see which company does same for server space.

Hopefully ARM on cloud will result in cheaper prices.
I had the impression it was logic until the point where people talked about a priory stuff.

Like, yes, you're guilty of X if you did A, B, and C.

Lawyers then argue if it was really A and B and C. Was it really with intention etc.

Since the arguing parties weren't at the crime scene when it happened, they have quite a bit of wiggle room.
Google, Microsoft vouch to help India
Why Digital Healthcare Startups Meet Failures
Can you explain? If I sneak in an exploit to widely used code, couldn’t the damages eventually be large once I or someone else takes advantage of it?
Imagine they put Macbooks on a yearly upgrade cycle like the iPhone - OMG, that would be impressive.
Those are intel based Macs. This being an article about the M1 going into mass production, it's probably fair to say the parent comment was referring to those specs in an M1 Mac, not an intel Mac.
Not affiliated with any company, just wanted to share something I found interesting. I don’t use the web UI much at all anyway. I did insert a repo url to the tool, but it redirected to the about page.
Strongly disagree that most people think of autosuggest in a search form as a keylogger. I've never once heard it referred to as such, outside this thread.

I think most people think of a keylogger as a malicious program that secretly records your keyboard activity when you don't know about it. If they think about it at all, they think of autosuggest as analogous to a form submission.
For CPUs Apple is actually upending the AMD Intel duopoly, isn’t that good for competition? Furthermore, AMD only recently broke back into the market, which Intel had a stranglehold on. This is the most competitive the CPU market has been since the early 00s.
How far back do you sit from this monitor? Do you use resolution scaling?

The last time I tried a large format display, I couldn't move back far enough to make it work but I really loved working in 4k without scaling.
Rubber Is the Next Shortage That’s Making the Auto Industry Nervous
They only need to support a Linux kernel.
They’ve used google cloud, azure, now aws. The contract is worth billions, and will end in 23 or 24.it’s very likely they’ll at least sun their own cloud completely.
And maybe they’ll compete as a public cloud later
I have not read anything more dumb than this in a long time. The article fundamentally says, "Print debugging is not as good as magical tools will be if anyone ever makes them." What's annoying is that he's wrong.

Print debugging is awesome and good. It allows one to explore flow and data. It allows intuitive, multi-pronged examination of a program. It can easily be combined with all the tools the programming language offers. It is incredibly easy to use. It is the same 'UI' everywhere – and it is available – in all languages.

I rarely see something this bad make it onto the main page of Hacker News.
> I think anyone else at the company who considered such a thing political and tried to tell that person or the chat that what they're doing is political would be the only individual who's violating the "no politics at work" policy (perhaps in addition to other policies, too).

You'd think, wouldn't you? :)

This is the problem though: it all depends on who hears the complaint, and what biases they hold. There's nothing in the policy that's definitively banning this kind of harassment-labeled-as-politics, and so it could easily still happen.

And I'm so adamant about the possibility because I've seen this happen! It's not a hypothetical to me. It's really gross, but it still plays out this way today. The US has made a lot of progress in this particular area, but it's still not a given that your management will support you or that you're going to end up in a workplace where bias is the exception, and not the norm.
Will I get lots of rotten tomatoes telling, that this is a huge waste of money?

Chips production is one thing, but the whole ecosystem matters. So these chips produced in Europe must be sent back to Asia for integration in final products. Or a miracle will happen and European Union will resurrect manufacturing? I doubt, because manufacturing means missing climate goals.
Please share how you did this (it was my original intention)
multi monitor support. You can have two monitors max.
If I hadn't frequently been given the back of a screw driver and tasked with banging in a nail, I wouldn't be complaining. I just want a $2 hammer on the shelf, is that so much to ask?
Thank you both. Now I can happily ditch my android and go to WP10 or other alternative OSs!!!!
If you have _no idea_ where a bug could come from in your code You should spend the time understanding your codebase before you even begin debugging. At the very least you need to be able to reproduce your bug to reliably fix it. How can you have no idea where a bug is happening if you can trigger the error in a code path?

EDIT: I don't want to go so far as to say that your example can never happen, but I can't believe there is any domain where it is the norm
Achieving Sybil-Proofness for Big Tech alternatives
Virtual memory was deprecated some time ago, there is no support for larger than RAM data anymore.
What unconscious bias training gets wrong and how to fix it
So, it's going to have to switch to a subscription model eventually to continue to exist?
This is outright wrong. At some point one side outperforms, or "in universe(a la Cold War)" outspends/demoralizes the other and there is victory - aka, control of the global financial markets and geo-political dominance.

Is it a net win for humanity? Having stockpiles of nukes isn't. The space, science, athletic, and social welfare race is.

Competition drives progress. Hegemony leads to stagnation.
As someone not doing web development all day, to me it's much closer to how CSS should have been from the start. I still find it a bit too overloaded thanks to many years of piling more features on a standard that has to keep backwards compatibility, but that's another problem.
> Caching is basically the same thing as a mirror

Can you elaborate?
I don't know of anyone in the USA who has used these apps. They never really took off. Since they rely on a "network effect" to be useful... even if you installed one, few people you came in range of would have it installed.

https://apnews.com/article/us-news-smartphones-coronavirus-p...
But they are not 50A usually. I’ve tripped my dryer breaker with my TIG welding aluminum before
Our S3 costs were between $400/mo. - $800/mo. After SSDB it's more stable around $200/mo, so a conservative number is $200/mo savings.

A related comment about our costs:

https://news.ycombinator.com/item?id=26740911
...which implies there exist unreasonable people. In common speech, qualifiers are added when there is a need to distinguish. You wouldn't say "some people with brains" unless there existed brainless people and there was a need to distinguish them from the other.
I'm curious what you searched for, because the majority of the very first page of Google search results agrees with me, actually. Two of these say define keyloggers in a way that is inherently malicious, most give a neutral definition. They do go on to say how such software can be used by criminals, but most do not say that keyloggers are inherently malicious, and some very specifically deny that:

https://www.csoonline.com/article/3326304/what-is-a-keylogge...:

> Keyloggers are a type of monitoring software designed to record keystrokes made by a user.

https://securelist.com/keyloggers-how-they-work-and-how-to-d...:

> The term ‘keylogger’ itself is neutral, and the word describes the program’s function.

https://en.wikipedia.org/wiki/Keystroke_logging:

> Keystroke logging, often referred to as keylogging or keyboard capturing, is the action of recording (logging) the keys struck on a keyboard, typically covertly, so that a person using the keyboard is unaware that their actions are being monitored.

https://home.sophos.com/en-us/security-news/2019/what-is-a-k...:

> A keylogger is an insidious form of spyware.

https://www.kaspersky.co.uk/resource-center/definitions/keyl...:

> Keyloggers are used for legitimate purposes like feedback for software development but can be misused by criminals to steal your data.

https://www.mcafee.com/blogs/consumer/family-safety/what-is-...:

> A keylogger (short for keystroke logger) is software that tracks or logs the keys struck on your keyboard, typically in a covert manner so that you don’t know that your actions are being monitored. This is usually done with malicious intent to collect your account information, credit card numbers, user names, passwords, and other private data.

https://searchsecurity.techtarget.com/definition/keylogger:

> Keyloggers are often used as a spyware tool by cybercriminals [...]. Keylogger recorders may also be used by: [...] These uses could be considered ethical or appropriate in varying degrees.

https://www.malwarebytes.com/keylogger/:

> Keyloggers are a common tool for corporations, which information technology departments use to troubleshoot technical problems on their systems and networks—or to keep an eye on employees surreptitiously. The same goes for, say, parents, who want to monitor their children’s activities.

https://enterprise.comodo.com/what-is-a-keylogger.php:

> At its most basic definition, a keylogger is a function which records or keystrokes on a computer. Taken at this basic level, a keylogger looks absolutely harmless. In the hands of a hacker or a cybercriminal, a keylogger is a potent tool to steal away your information.

https://us.norton.com/internetsecurity-malware-what-is-a-key...:

> A keylogger is a type of spyware that can be used to track and log the keys you strike on your keyboard, capturing any information typed. Keyloggers are insidious because you don’t know they’re there, watching and recording everything you type.
If anyone is looking for a build system to try C++20 modules with GCC, there is build2: https://build2.org/blog/build2-cxx20-modules-gcc.xhtml

There is also a repository of module examples (some trying to imitate real-world usage like distributing modules as part of a library): https://github.com/build2/cxx20-modules-examples/
So does rr work on arm yet? Nope. Back to good old printf.

On a realated note, the number of times I've had gdb crash on arm is so ridiculous that I don't really bother with it unless I absolutely have to.
Google have declared Droidscript is malware
Apple booked the production capacity at TSMC years in advance.
The difference, as other testers have noted, is that Tesla's notion of "0% battery" is a bit more conservative than other brands.

It's important to appreciate that the utility of energy efficiency metrics are different for ICE and EV. In an ICE car, fuel efficiency is pretty much just a stand-in for running costs and tailpipe pollution, so it makes sense for the test cycle to represent a plausible balance of city and highway driving.

But when it comes to vehicle range, you mostly care about range in the context of long distance driving. What matters is highway cruising efficiency, not some emissions-focused test cycle. So when judging the range of an EV, it should be as simple as highway efficiency multiplied by usable battery capacity.
FWIW, many teachers are only at bootcamps for a year or two before moving on to work for normal companies. I didn’t go through a boot camp, but I do work with people who did and were teachers at those boot camps before working here.

From what I understand, teaching is generally seen as a positive signal (if the boot camp is a good one), because it means they know the material well enough to teach it.

I can totally imagine the opposite becoming true (teaching is a negative signal), creating a positive feedback loop in the opposite direction, and turning the boot camp into a pyramid scheme.

I guess it all depends on the credibility of the boot camp, kind of analogous to universities, as a sibling commenter points out.
Simple =/= Obvious.
> So these chips produced in Europe must be sent back to Asia for integration in final products. Or a miracle will happen and European Union will resurrect manufacturing?

I don't understand - do you think there is no manufacturing in Europe?

To give a concrete example - some European car factories are shut down due to... lack of chips.
Hadn't heard of SSDB before, looks promising, active, variety of users, broad client support.

Off the top of my head, if I were trying to front AWS S3 from DigitalOcean, I'd have gone with MinIO and their AWS S3 gateway[1]. It appears to be purpose built for this exact kind of problem.

[1] https://docs.min.io/docs/minio-gateway-for-s3.html
Now if the sword strikes would only leave a GDB stub...
SIMD support is also currently in development for Java: https://openjdk.java.net/jeps/338
Ill settle for ability to rewind. Whats the difference between console.log(somevariable) and breaking on that variable if the outcome is the same - me rewriting and running again?
> Still I can’t see Apple only developing one integrated GPU per year unless they somehow figure out how to magically make them somewhat approach Nvidia and AMDs modern chips. What would the ARM Mac Pro use?

What do mac users need a beefy gpu for?

AFAICT apple just need a GPU that's good enough for most users not to complain, integrated Intel-GPU style.
Name and Shame -- who was this shady org?
Apple wasn't cheap and pre-bought production capacity.
It will be the mythical green manufacturing jobs...
Free Domain Names
Sometimes I fantasize about printing a t-shirt that simply says "shut up, you know what I meant".
Citizen Kane loses 100% “Fresh” rating after 80-year-old review added to RT
Contact tracing is an sort of interesting solution

It works great when you have just a few cases and are highly motivated to stop them from spreading (Asia/Oceania)

and it doesn't work at all, when you have a lot of cases and have no interest in doing what's necessary to contain them (Americas/Europe)

Mass-market contact tracing, in hindsight, was completely pointless. I'm not personally aware of anyone who has been informed accurately of potential infection via a Bluetooth app.
Trucks apparently: https://www.youtube.com/watch?v=X3hrKnv0dPQ
From your third link:

System Integrity Protection needs to be (partially) disabled
for yabai to inject a scripting addition into Dock.app for
controlling windows with functions that require elevated
privileges. This enables control of the window server, which
is the sole owner of all window connections, and enables
additional features of yabai.

The risk Apple kills yabai after you're adjusted to it is real.
As a native of a very well known mountainous state I can say it's more than that. If you're summitting on a mountain you need to be prepared to bivouac at least one if not two nights and survive adverse weather. Even experienced hikers can find themselves trapped far from the trailhead by either weather or fire. That's not even talking about the usual bears, mountain lions (don't hike alone), or ticks (Lyme Disease is real).
So maybe Google shouldn't have guaranteed privacy of this app on a phone OS where such a promise is impossible to deliver?
Maybe some startup in Cambridge can come up with an advanced risc machine.
the poison option is 2,4-dinitrophenol iirc, right? it sabotages the electron transport chain for ATP production, burning it off as heat instead. deaths can result from the fever and metabolic failure.

we learned about 2,4-DNP in my biology class. shocking that people use it for weight loss, but I guess they're desperate.
> It’s interesting to see how media can mold society’s expectations of self.

It's also interesting to see how society itself can mold expectations of self. If you are too different, there will be people to bend you back or destroy you, as many of us experienced since childhood.
Sure, I meant a mirror is just a cache for data that doesn't change. I edited the original comment, because it doesn't help explain why we used SSDB here.
It seems to be popular only in China [0]

0: http://ssdb.io/docs/users.html
The logic works both ways. Given a recognition system you should be able to build/train another system to find and amplify errors in the former. The more robust the former is the more likely the latter adversarial system is to be of lower complexity (cheaper) giving it some advantage.
Show HN: Paletter – Create Professional Color Palettes from a Single Color
I wish there was a C++ standard that didn't add any features, but only fixed bugs or deprecated old features, and possibly improved existed features, giving compiler writers a chance to actually catch up and developers a chance to stabilize their codebases. C++26?
It sounds like this guy helped you out of a tough situation and I can understand why you've struggled to say no to him.

But just because he helped you out doesn't mean he owns you until the debt is paid.