skysight-inc/HackerNews huggingface dataset:
As with much of Pike's advice, it's worth remembering where it comes from: Unix, specifically AT&T-style Unix (and later Plan 9), where a fairly disciplined (programming-wise, at least :P) team of very good, and oftentimes very experienced developers wrote a lot of small, interconnecting utilities.

If your whole source code is written in that manner, and written by people who write code in that manner, this advice is easy to follow.

On the other hand there aren't many files in the Plan 9 source tree that are longer than, what, 3,000 lines? 4,000? Attempting to shoehorn that, and many other well-intended nuggets of wisdom from the Unix 'heritage", into your average commercial codebase, with dozens of third-party libraries and whatnot, is unworkable (I know, I tried).

Some programming advice pearls translate well into any project. "Avoid gratuitous comments like "increment i", use comments to explain the reasoning behind functionality, not describe what the source code already adequately describes" can be applied on any source tree, starting at any point. But some of them -- such as this one -- only work if you write and organize your code in a particular way.

FWIW, I think that this bit of advice was useful back when Pike wrote it, in the age of slow, buggy C compilers (although some would argue we're still in that era!) munching code off of network-mounted drives. Nowadays, not so much -- I think it has readability advantages but I doubt the performance gain (if any is left) is worth the extra programmers' effort. I like to follow it when I'm writing small utilities but I don't really fuss about it for larger projects, and I've never been curious to see how fast it is. I believe (but never measured it, so take it with a grain of salt!) that it's one of those things that 30+ years of computer systems evolution (in the biological sense -- "advancement" is probably too strong a word) has made obsolete.
Probably preferable to having a very strong definition of evil.
Jetbrains' Serialization Library for Kotlin
This. The Node.js community is a good example of where this has happened - lots of bad practices with fancy logos making it into the top 50 most depended upon packages (e.g. left-pad).

The top-level comment is just being critical. It's not inappropriate. People just don't like having their feelings hurt.
What happens when you click a url?
I don't see why this is a problem for reusing precompiled headers in the way the parent post suggested. If the compiler records the value of every #define when it precompiles b.h, if b.h is #included again with the same #defines set, the compiler can reuse the same precompiled version of b.h.

Indeed, if the compiler-buildsystem detects that b.h has been #included with a different set of #defines, it might be a good idea to issue a warning because that could be an indication that the codebase is about to footgun itself.
Plenty of them actually are.

A rusty Amiga 2000, with Internet connection could handle like 80% of the stuff I use my 2009 laptop for.
Not necessarilly.
One can enjoy Privileged Extension on an unrooted phone by using a custom ROM, LOS for example.

edit: typo
In this particular case it is. If I spawn a process directly (and not separately supervised) to run a function asynchronously (or just out-of-process to make the gc happy), then the ancestor is the same as the caller.
Is your programming language unreasonable? (2015)
List of Helicopter Prison Escapes
Isn't this the same tactic that govt agencies use? Apple is simply borrowing the idea
Tobacco 2.0
As the NBA season is coming to a close, here's 5 things you can learn from Kobe
He teaches us more than just basketball. And in all that he do, he can teach us lessons outside of basketball as well; in this case, its how to be a better software engineer.
Following that "logic" Twitter, a US company, should've been banned a long time ago.
no, the comment is the included REPL has it,
and that most editor plug-ins (of which they exist for vim, emacs, sublime, Atom, VS-Code) intended for julia, add the same unicode shortcuts, as well as the usual syntax highlighting, keyword completion etc.

If you don't want to use the, but do want to enter unicode, then you can do it the normal way.
But I feel like the fact that you want to enter unicode but don't want to install a plugin to make it easier is pretty weird.
I guess it could come up if editting someone elses code.
As a general rule most libraries (including the standard libary) make very limitted use of unicode in their APIs, so you don't have to use unicode to work with the library.

I would go so far as to say if a library requires you to use unicode you should open an issue, and get them to add a ascii alias for that function. (julia standard library had just such an issue opened a few versions ago about the compose operator ∘ and not we have a `compose` function to match).

I would also say internally most packages make very limitted use of unicode also.
Even with the plugins it is still a bit annoying to type.
Plus often it would be a less meaningful variable name.
E.g. why say: θ, when you could be saying `departing_assent_angle` or something else that conveys context specific meaning.
Its nice to have the option for when it is clear, but I think pleasingly people only use it in moderation.
Real programming I guess. Wouldn't know.
Wow, I just got my trademark (Techdroid) renewed a few days ago. I do have a signed agreement with Lucasfilm from when I first registered it but I wonder if I will have issues with Google in the future and my android apps.
I don't personally agree with banning an app for that reason, but "indecent" is a proper adjective for a good chunk of the content you see on TikTok. Sometimes I wonder if bombarding people in the west with this kind of content is a strategy from China, because surely they don't allow such videos in the mainland.
That's the difference between an MMU and MPU.

The first (MMU) adds virtual memory to the story, while the second (MPU) simply protects certain areas of memory.

https://www.geeksforgeeks.org/whats-difference-between-mmu-a...
It might be true, as a European I was surprised when I learned that you have adult magazines in the US dedicated to woman breasts. It's just not a big deal here.

Forbidden fruit and all :)
It always surprises me how hard it seems for people to take OpSec seriously (whether for terrorist plots or darknet markets). There are really a few basic ground rules that always seem to be violated, even by those with seemingly sufficient experience, like Ross Ulbricht.

On the note of OpSec, there's an awesome project called USBKill, which probably would've saved Ross Ulbricht from prison.

> USBKill is anti-forensic software distributed via GitHub, written in Python for the BSD, Linux and OS X operating systems. It is designed to serve as a kill switch if the computer on which it is installed should fall under the control of individuals or entities the owner or operator does not wish it to. It is free software, available under the GNU General Public License. [1]

[0]: https://github.com/hephaest0s/usbkill

[1]: https://en.m.wikipedia.org/wiki/USBKill
The rust compiler is pretty slow even in debug mode, with optimizations turned off. (Although macros and monomorphization still happen in debug mode).

In general I don't buy the complexity argument. Rust is more complex than Go, D or Delphi. But its not 50x more complex, or whatever we would guess from the compilation speed difference.

I suspect a lot of the compilation time bloat is a result of all the intermediate representations the code goes through, in order to play nice with LLVM's optimizers and codegen. (Or to put it another way, I suspect a compiler optimized for development mode iteration has the potential to be way faster than rustc.) If you mostly don't care about runtime performance, a debugging compiler could probably also skip monomorphization and just compile everything once and use dynamic dispatch for generics.
https://github.com/cormullion/juliamono/issues/37
With how little power RPi needs in comparison to "true server", it could probably run for days or weeks of off a UPS. So it is the more redundant choice!
HN title said 2015 when parent wrote that comment.
I was permitted to register my trademark (Techdroid) as long as I don't write it with a large D. This was requested by the holder of the trademark "Droid".
Interesting Python Tricks that you should know
Assange didn't antagonise every western country, he antagonised powerful people in those countries.

I think it's important for our own sanity to recognise that our government and it's intelligence agencies are not us, even though sometimes with will be aligned.
There's the petition "Asking Apple to not block Telegram channels of Belarusian peaceful protest"

https://www.change.org/p/apple-asking-apple-to-not-block-tel...

Yesterday's discussion: https://news.ycombinator.com/item?id=24722130
You're being a shitty person. Guy is just asking for email in an exchange of something, he's not forcing you to do anything.
It's not a legal issue, that's a moral issue.
The definitions of "irrelevant" and "bad UX" are obviously very subjective. Personally, I don't think good UX means stripping out the ability to see user intent and context just because it reduces friction.

Showing where user generated content has been censored and the rational as to why is definitely a feature I would want to have regardless of how inconvenient it might be - especially in the context of political discussions.
(1) PUBG Resmi Beri Bocoran Map Terbaru Paramo
There is a lot of info here and much I agree with but without reading the whole thing a few things I noticed that I disagree with:

1) the fatal result of rats being tortured to deprive them of sleep seems to have been traced to oxidative stress in the gut (there was an article on this here not that long ago)

2) while I don't have an easy reference, a number of studies have found that even strenuous exercise before bed does not seem to impair sleep. As with everything sleep related there could easily be lots of individual variation but in general I don't think it usually causes trouble.

3) the author seems to consider free running sleep entirely posistive, however I think it is likely to cause circadian issues in a number of people who try it and may be quite dangerous. I think in my case going from a sleep deprived state to free running sleep (in an attempt to deal with insomnia) induced non-24 (it may be that non-24 has both a genetic susceptibility and a trigger event and that once triggered is essentially irreversible). In my case it also seems that there is an issue with internal coherence of the circadian rhythm with different parts of my body proceeding on different scheduled and rarely synchronized, leaving me disabled with memory issues and fatigue. So I encourage everyone to be careful when making changes to sleep schedules. For someone who already has a circadian issue it seems often better to sleep on the delayed or shifting schedule, but few people can do that without significant disruption caused by interacting with the rest of the world and there may still be some issues, at least for some people, due to being awake at night.

4) I think alarm clocks can in some cases keep a healthy circadian rhythm synchonized with the sun. Maybe consider them more like a prescription medication than smoking, try to avoid if possible but if using one can help you keep a healthy circadian rhythm then it seems likely to be healthier than a disrupted circadian rhythm. In my experience, when you wake up seems to be more important for setting the circadian rhythm than when you get to sleep.
The app makes sure only the people it thinks are in the channel get the keys. If you turn on the security notifications you can see how it works, you get a message when someone gets a new phone, that indicates they got a new key.

You can even check if it matches up if you meet in person or if you communicated using another medium.
What ever happened to the motto “don’t be evil”?
I'm now imagining an engineer having a job interview and explaining how they were "Nipple Detection Lead" at Facebook...
Reminds me of Jevons paradox:

> when technological progress or government policy increases the efficiency with which a resource is used (reducing the amount necessary for any one use), but the rate of consumption of that resource rises due to increasing demand

https://en.wikipedia.org/wiki/Jevons_paradox
If we let Apple freely censor basically all internet content consumed by 50% of USA then their censorship power is close to government levels.
It's been a while since there have been posts on Supermemo here (meta: I miss the times when HN was mostly about bootstrapping software businesses, nootropics and self hacking), so I'm wondering - are there people who (still) use Supermemo or similar software for actual learning, and not memorizing for its own sake, as a party trick basically (which I feel is its main use case, at least in the way it's in the news)? Are there any advances in this field, new methods, new implementations of existing methods?
I don't think somebody reporting content for policy review (Apple's content policy, not foreign policy) is affected by any US laws. That person wouldn't have to be an Apple customer, they wouldn't have to be a user, they wouldn't have to be outside the US.

I doubt there are any laws that would forbid Apple from taking or acting on a report of content policy violations.
Meh I'm just saying my opinion on how a store should behave - if this is illegal let the request come from proper government channels, as for ToS and anti porn protecting children - I don't really care - I know what my child does in his internet activity, there are parental control tools and their internet activity should be whitelist based not blacklisting stuff.

But I don't use Apple iOS precisely because of their ridiculous grip on the ecosystem - even though from a technical perspective Android is pure garbage.
ASc Timetables 2020.11.4 with Patch
It was Google
https://mobile.twitter.com/davx5app/status/10706816836938506...
> You wouldn’t shit on C language... at least less.

Nope. If anything, while programming for microcontrollers I learned C is too remote from hardware and leaves too much implementation-defined. Struct padding? Implementation-defined. Bit field implementation? So implementation-defined you'll have to roll your own with shifts and masks. Accessing anything mapped to memory address? The pointers as defined in C standard aren't what you think, but fortunately the implementation often is. Even standard variable sizes are only 21 years old, which means that there is still legacy code that either doesn't use them or wraps them in layers of typedefs to work with toolchains or libraries that don't. And good luck if you have 24-bit registers.

Of course it's frustratingly low level at the same time. I don't know what could be a good choice, and C is what everyone already uses anyway.
Why would this blow up in their face? Have you seen the lines outside Apple stores whenever they launch a new product?

Apple customers do not care. There is a small minority of people who care (like people on this site) but I bet even they will continue to buy Apple products.

We are talking about a mind bogglingly rich company with arrogance to match. Even if this gets them bad PR, it will be forgotten in a few minutes.
On the other hand, if a tool only covers 10% of the notation you care about because of a restriction like plain-text, it’s very difficult to document what you’re doing as you bump up against this boundary.

Humans have been using nonlinear notation in a wide variety of fields, but computer programming languages seem especially stuck on plain text everywhere, despite the utility of such notation. I would rather faff around for a minute or two trying to figure out how to change my integration limits in a comment than leave some horrendous documentation comment like “computes the integral from a to b of the blah blah blah blah” and by this point because you can’t see the familiar notation, you first have to interpret it before checking the function. (Several PhD students I know working in applied mathematics and physics will “translate” these comments from code onto a scrap piece of paper in front of them, before attempting to dig into the function).

Personally I think it would be great if I could embed more rich text (styling, equations, and images) in comments to better communicate my intent. This stuff otherwise just winds up being left out (because it’s too hard), or in some other separate documentation which is difficult to keep in sync during development.
You can't use Telegram Web if government blocked Telegram website. App have a way around government blocking (they use server push to deliver proxy addresses, so the only ultimate way to block Telegram is to block Apple servers).
This is geopolitically interesting, as Pakistan is heavily indebted to China for infrastructure projects as part of China's Belt and Road initiative.

https://asia.nikkei.com/Spotlight/Belt-and-Road/Squeezed-by-...
Everyone loved that
Do you think Apple would approve a client app to such a chat network?
https://en.wikipedia.org/wiki/Sexual_motivation_and_hormones

https://en.wikipedia.org/wiki/Signalling_theory
Habits I Wish I Had as a Junior Developer
Whenever I was in a discussion on HN with Apple fanboys, who were saying how happy they are with no sideloading of apps on iOS, I was telling them to imagine if Apple will remove the app they need for some reason, like request from an authoritarian regime. In the future I'll be pointing not only to unavailability of chat apps in China, but also to this.

Apple monopoly on iOS platform must be broken, and Apple should be forced to allow third party appstores and third party push notifications.
Wow, just wow. I flagged your comment for a personal attack. I actually got around 7 people in the past 24 hours reply and say thanks, so at least add "I think" in front of your accusations.

Anyway, I don't plan to get down to your level.
Now, take a deep breath, and think how realistic that prospect is.
>When they're OCR'd, yes they can and did. I had to present an image of the check before they would fix it.

There was a physical check? I wouldn't call that an electronic payment.
> I'm working on a project where indexing naturally runs from -n to n. I kludged the usual index hackery and was so plagued with off-by-one errors that I gave up on it. Then I remembered Tim Holy had a blog post about OffsetArrays.jl and started using that.

Ah, thank you. I've been tinkering around with Julia, and was trying out 2D random walks. Not being able to use a 2 dimensional array and store the position [0, 0] confused me. I ended up starting at X,X (where X > total number of moves) and then got stuck with plotting it nicely, because I wanted the plot axes to show how far it had moved, not X +- how far it had moved.
No it isn't. It's 50%. Also, consumers can choose to move away from iOS.
Show HN: TeXMe Demo
Apple followed Chinese law, and that’s why iCloud and iMessage are available in China.

It’s a similar situation for Microsoft Teams and Skype.

If Facebook does the same, they will be available in China too. Google tried to do it with their Project Dragonfly, but bad publicity made them stop.
Thanks. Having had many years of being downvoted on HN I can assure you it doesn't matter how specific you are, if you aren't leftist here then leftists will downvote you as much as they can. Sometimes an especially aggressive leftist will go through your comment history and downvote every single comment as well in retaliation, which is how you can get a series of technical posts about technical topics that were upvoted at the time suddenly going to -1 after an unrelated later post on a topic the left cares about.

This is why I call the left aggressive. I've never seen those sorts of tactics from libertarians and I have years of experience of them, or even conservatives. I have seen people who claim to be libertarian suddenly turn out to be totalitarian and start behaving in ways that are totally opposite to their prior stated positions once they got hold of some power, though. So I think there are some people out there who self-identify as libertarian because they came to associate it somehow with critical thinking or other positive qualities, yet never truly adopted the world view. But this is rare. Most people who claim to be libertarian act in ways that are relatively consistent with that claim.

I agree that leftists push hard the idea that leftism is the same thing as critical thinking. This confusion can be especially seen in universities, which regularly claim to be teaching students critical thinking yet in which leftists have steadily pushed out anyone not aligned with them over the decades. People truly trained in critical thinking would ask what justifies the claim that universities teach critical thinking, but of course none of them ever seem to do this. It's just taken as given.

We can see the results: academia is filled with groupthink, in which people's worth is based on vague groupthink-oriented concepts like "reputation".
You can enable those items by using Android.
CD is an unsolved problem. CD is actually where you make the bigger compromises. Even we had analytical solutions to every collision scenario (we are nowhere near that) still we have "floating point issue". Everything that touches FP is corrupted and it gets much worse for CD. Issues with the collision response partly the after effects.
> Sometimes I wonder if bombarding people with this kind of content is a strategy from China, because surely they don't allow such videos in the mainland.

You basically followed the tracks of the thought process of some vatniks here in Russia who believe that there is no censorship in Russia because public TV channels show erotics and gore here. The idea that if somebody has power of censorship they will necessary use it for public good is absurd.
> Don't use this in production. This is mostly just a convenience hack for small personal projects.

Famous last words.
In Germany there's also the Playboy and other magazines, dedicated to female bodies. Come on, it's not like in Europe we are also full-on contrary of the US.
Like most articles about this topic, this one does not take note of the fact that average fringe benefits have grown during the same time period.

I don't know what fraction of the relative decline in real wages that makes up, but it is definitely significant.
Why?

Trademarks are one of the few pieces of IP that seem to make sense to me.

They protect consumers by letting the consumer trust a trademark is what they think it is, they aren't overly broad and they aren't automatic.
Those are not some private groups of 5 guys. Those group are available to millions of users.
As long as it’s legal.
They offset that with PR over refusing cooperation with the FBI. A lot easier to be principled in the countries where the rule of law is followed.
That's a factor but not a rule. The biggest test basically boils down to would a normal person reasonably be confused. In this case I don't think anyone would think this was a Google product. Knowing very little else I don't personally think Google would win a trademark suit like this on its merits, but being Google of course they actually could win if they threw money at it, or make it not worth pursuing.
Google had an exclusive licence to in in that field.
For a good chunk of the content you see on TikTok, maybe, but not that I see. (I did just see uncovered female hair in one video though, so maybe we have differing standards of "indecent"?)

Nietzsche was prescient about the interwebs: "... if you gaze long into an abyss, the abyss also gazes into you."

Detim to vide fit, fit vide to oso. (while you watch the feed, the feed watches you.)
And? It's not an excuse.
> They have a duty to protect their customers from clicking on unsightly and wrongful content

They don't.

> Customers expect that from apple

They shouldn't

> I wouldn't want any kid to end up accessing this channel on telegram.

It's parent's duty to protect their kid however they see fit, not Apple's.