skysight-inc/HackerNews huggingface dataset:
While we're on an OpenWrt thread: what's the best way if any to get a view of "who's using the bandwidth right now" on it ?

Not the process, not the remote host, not the monthly agreggate, but which connected device wifi or lan is using what, total or by host.

(use case; figuring out whose phone/laptop/tablet/tv/whatever is suddenly eating all the bandwidth in my home from time to time)

I'm using 18.06.05. A nice view in LuCI would be perfect but something that need to ssh is fine too.
Imho, Rust is an awkward language because it positions itself as a systems language but it makes low-level stuff more difficult (there's even a book teaching how to implement doubly linked lists in Rust [1]), hence prone to mistakes. At the same time, people are using Rust to build non-systems programs, where other languages would be more appropriate (e.g. those with garbage collectors). I don't think it is a good idea that Rust is promoted as the language that will rule them all; in my opinion, it is still a research language.

Linus Torvalds said the following about Rust [2]:

[What do you think of the projects currently underway to develop OS kernels in languages like Rust (touted for having built-in safeties that C does not)?]

> That's not a new phenomenon at all. We've had the system people who used Modula-2 or Ada, and I have to say Rust looks a lot better than either of those two disasters.

> I'm not convinced about Rust for an OS kernel (there's a lot more to system programming than the kernel, though), but at the same time there is no question that C has a lot of limitations.

[1] https://rust-unofficial.github.io/too-many-lists/

[2] https://www.infoworld.com/article/3109150/linux-at-25-linus-...
Generally fixed width instruction sets require that instructions be aligned, that is instruction addresses end with two 0s if they're 32 bits. One benefit of this is that you can make a jump 4 times as long for a given constant size. In the case of AArch64 this lets them do 128MB branches with a 26 bit signed constant or 1 MB conditional branches with a 19 bit constant.

Another benefit is that the fetch stage doesn't have to handle corner cases like the instruction crossing cache line boundaries. I don't think the security implications were anything the designers cared about but they're a third benefit. Oh, and I think some language designers have stored garbage collection related information in the least significant bits of stored addresses since it doesn't affect flow control but I wouldn't swear to that.

You're right that a natural x86 instruction stream will tend to synchronize itself fairly quickly. The problem is a malicious instruction stream that can be designed not to do that for at least long enough to do its thing.
That was my first thought. My local Costco sells 1000 tablets of Paracetamol for $8.49.

I've bought several thousand pills of OTC pain relievers in the past year to keep a bottle in my car, my office, at home, and so on. I've only taken maybe 10 pills over the course of a year.

I do agree that the country is over-medicating in general, though. The focus on customer satisfaction and patient review scores for doctors has created bad incentives for doctors to "do something" by prescribing pills instead of pushing for natural interventions (diet changes, exercise, reducing screen time, going to bed earlier)
Taylor Swift Plans to Re-Record Her Hits
Ha! Their homepage (www.hipgnosissongs.com) is full of Youtube embeds of songs they own.
I am not sure what class of people you tend to speak to when you visit, but in my experience the mindset you are describing is something mostly held by a subset of upper middle class Chinese who have enjoyed prosperity under Xi and don't want to rock the boat.

While living here i have spoken to plenty of people who do not parrot the party line. Even in the middle class there are a lot who don't like it when the government censors their shows or deletes well-loved memes. In fact, that is one of the more common grievances i've heard from the middle class here. This is a group of people who can comfortably afford VPN, but they'd still prefer not to have to.

In the working class people seem less concerned about censorship as a moral issue, but it still negatively impacts their lives. There is a real resentment of the corruption that is rife in the party and amongst the elites. Censorship means the working class can't talk about it outside the dinner table and they can't mobilize. Rural people get a raw deal on education and they know it. The poor are upset about rising income inequality and gentrification.

Migrant workers in many larger cities still don't get hukou (residence), so they cannot get healthcare, their kids can't attend public schools, they do not qualify for public housing and so on. Their lives are precarious. Entire neighborhoods can be marked for demolition and there is no avenue for protest because the tenants don't count as residents anyway.

Meanwhile the government constantly crack down on the lower class - shutting down food stalls, kicking out street vendors, fining delivery drivers and so on. I can assure you that people on the receiving end of this aren't as thrilled with the regime as the ones who can afford an iPhone and an apartment in a gated community.

Still, let's address the "Chinese exceptionalism" argument. The idea that China needs socialism "with Chinese characteristics" is CPC propaganda, not some innate truth. It can be debunked simply by looking across the strait at Taiwan, where there is a majority (Han) Chinese country that operates perfectly fine with a democracy and no censorship. For sure, the whole island has less people in it than Shanghai, but the proof is there: Chinese people can thrive in a free state. Tens of millions of ethnic Chinese live in democratic countries all over the world and don't pine for the days of living under authoritarianism.

There is no doubt that East Asian culture is different to western culture, but it's not that much different. People still like to be able to talk about things they care about, read about what's actually happening in their neighborhood, and express grievances when they see injustice. Although most Chinese tolerate the current situation, i think it's misleading to imply that there is full-throated support of the status quo. My personal feeling is people would be very pleased if the government were to become more transparent and less authoritarian.
It escapes me, why a civilian airline was in air in first place.
Shouldn’t ATC be asked to stop flight movements for the duration of missile launches?

In tense war (like) situations, things go wrong. To me, letting civilian airline in air, itself was serious wrong.

What a terrible collateral.
Sources used in the slides: https://docs.google.com/spreadsheets/d/1fG-K0MwoQ4y0p_9bpMsF...
Best thing you can do is proxy pass a path of your website to some CMS, however when your CMS will have to execute CTAs on your SPA, good luck with that.

Worst thing you can do is allow HTML fields in your Headless CMS and pass it through in your SPA but it is like going back to 90s way of doing content.

SPA is not a good case for this type of website. What you need is WordPress. This problem cannot get solved with Headless CMS.
No, obviously not. Every domain having a Nil element is exactly the problem null references have introduced (at least for the call by reference parts of the affected languages).
What Alan Kay thinks about the iPhone and technology now (2017)
There might be side effects to modern medicine, but there's no reason to assume that traditional beliefs re: health and medicine are more correct; The arguments behind them are usually epistemologically unsound, and they are often out-and-out superstitions.
Scala happily accepts null as it is the bottom type for AnyRef and needed for jvm compatibility. Kotlin has a compiler check that enforces it, Scala does not.
Ask HN: What Lisp-like language fits my needs?
Hello HN!

I'm trying to find a lisp programming language that fits my specific needs but not getting super close. What I'm building is a desktop GUI that is supposed to run cross-platform. I'm currently using Clojure but want to end up with binaries I can distribute, instead of JAR files, and GraalVM is too immature to handle GUI applications in Java currently, so seems I cannot use Clojure.

My needs:

- Lisp

- Mostly immutable data structures

- Compiles down to a binary that can be distributed to linux, macOS and Windows

- Has support (either core or libraries) for building GUI's and hopefully contains some sort of webview component

- Has a good story for supporting REPL driven development

So far, I've been trying to find Clojure like languages. Some of them that I've tried but been lacking in one way or another: clojerl, joker, ferret, common lisp, racket

I think what came the closest was Racket, but wanted to ask around as see if there is something that would be better to use.
That's why I didn't contest it; I knew the driver would just get shafted by Uber, even though it wasn't his fault. I'm still mad at Uber for pulling a bait-and-switch but that's not really the point of my post. The point was that they were already doing this last year!
Every single company that ships things to customers. If it gets damaged in transit it is their problem not your problem. If traffic is bad it is the shipping companies problem.

Every single company that offers a warranty. If something unexpected caused an issue in creating the good (in this case a ride from a to b) it is their problem not your problem.
Ask HN: Good samples of take-home coding tests to give to candidates?
If this article is correct, it's such a huge problem that health systems are likely to hesitate to take steps toward basic imaging security, because they won't know what to do first.
Theoretically, there would/should be a unified system and standards applied. Realistically, it'll probably still be first attempted through vendors with exclusive contracts, which is basically the current system but with extra steps.
It is pull, but for example, that clickbait alcohol headline on this site, which didn’t even adjust for population and seems to have cherry picked data ... it took me tons of time to realize the conversation was being shaped by the selective presentation of the truth.

Meanwhile the headline stuck in my mind almost instantaneously and created an impression of the state of the current world.

So I have to take hours away from my device entirely ... but I also have to be very careful what ideas I even glance at, because they take root in my brain.
> Throw in some vigorous exercise, and for most people, drugs can't do better, without the drugs' side effects and cost.

This is a dangerous generalization. I fully agree that exercise is more beneficial than most people realize for general health, but it's not good to treat exercise vs. drugs as a false dichotomy. They both have their place.

The key is to work with doctors who aren't afraid to recommend exercise and behavior changes when necessary. It's also important to signal to your doctors that you're willing to make lifestyle changes before jumping to drugs, if possible.

In my experience, doctors would always prefer to prescribe exercise, diet, and lifestyle changes before medications, but they're hesitant to do so in this world of patient satisfaction scores and demanding patients who self-diagnose their medication needs before they schedule the appointment.
Do Metrics Have an Ego? – Podcast
How Can I Make This an Empowering Story?
Very good article! Thanks for the link.

Some quotes;

There’s some imaging research that suggests that social and physical pain could have overlapping biological mechanisms, he tells me, so the parts of the brain that Tylenol affects to make your headache go away are the same parts that are involved in these other feelings as well; the same brain networks that allow us to feel and respond to physical pain may have been co-opted to also feel social pain.

He felt like the effects of Tylenol they were seeing were similar to mind wandering. People cared less about social rejection. They didn’t respond as much to existential anxiety; a similar kind of sensitivity reduction to the outside world.

“I think we should absolutely have a scientific concern to recognize the neurocognitive and neuro-affective consequences of substances that we've heretofore thought of as benign,” Handy says.

Ratner says there’s also the intriguing possibility that acetaminophen might be used therapeutically one day for people dealing with minor cases of depression or social anxiety.

The last point is the one which i had observed in my own behaviour and led me to suspect a correlation between acetaminophen/paracetamol and my "feeling good".
Ok, I know maybe it's too early in this projects lifecycle, but when I read the page this was my initial reaction.

As an embedded engineer I found the github page incredibly frustration, and it's tempting to just write it off. If the original author, or anyone else putting a putting together a language page, here's question I shouldn't have to dig for:

1. Where's an example this has been used professionally? (or out side an academic setting) I'm pretty risk adverse since FW/embedded systems are harder to OTA, and changes once we've approved the HW design blows up projects. If it hasn't been, be upfront about it.

2. What's the plan for the project? Is the language stable? Is a standard library next? I use a vendors language/BSP to avoid writing everything little thing from scratch, like printf()

3. Give me a comparison to other languages, why should I use T1 over any other embedded solution. Include size, and maybe the performance hit.

4. Show me some code. If I'm picking this for a project I need to think of everyone else I need to teach the language too, and how they'll accept it. It really helps for a quick glimpse at the syntax to see how foreign it is. Even if it's just Hello World.

5. How do I access peripherals/HW? For example if I need flash/nvram persistent storage, access to the serial port am I back to C to write driver or interface to the BSP? If so I now need good C skills, T1 skills and good binding skills.

Thanks for everyone for the slides, reading the hacker comments pretty much answered 1-5:

https://t1lang.github.io/NorthSec-20190516.pdf

https://bearssl.org/gitweb/?p=BearSSL;a=blob;f=src/x509/asn1...
Thank you for the feedback :)

As Einstein once said, "Everything should be made as simple as possible, but not simpler"

Hopefully, I didn't make it simpler
Sounds like it’s worth looking into...
A Complete 8-Bit Computer Running Around 50X Faster and Highly Compatible to C64
I completely agree. I have friends in the medical field, and they hate their computer systems. One of them spends almost as much time on data entry as he does with his patients. He has to double and sometimes triple enter data. He’s probably going to end up hiring someone to do that full time, which is so obviously a totally broken system.
The issue there is that new songs ans creativity destroys value of old songs and so this way of treating copyright plus no entries to public domain means that old songs will be pushed forward all the time whereas new songs have no incentive at all to emerge. Especially if distribution is consolidated between a few actors.
>>>- How did this law get enacted?

the same way all other laws do, passed by the legislature and signed by the governor

>>> Why wasn't I, a resident of California, asked to vote on it?

because neither the US nor the State of California is a Direct Democracy, it is a Representative Constitutional Republic

>>> Was the law buried under some legalese and just slipped past the eyes of 39 million Californians? And nobody made any noise about it?

No there have been several thousands of News reports about it, even I as a Midwestern knew about this law months ago (I think I first heard about it mid 2019), if you did not then I would recommend you update your news sources you are in some kind of Bubble or echo chamber
He Overcame Setbacks to Thrive in Information Technology
Options? Fixed-rate mortgages? Salaries that are stated as a number of dollars, not a percentage of company profit? "We will charge you perhaps a bit more / pay you perhaps a bit less but in exchange we will take the risk of the real value fluctuating and your number is guaranteed" is a super common deal.

More fundamentally, why should they do it? Because they think it'll get customers, and as a big company they can absorb the risk.
It’s not arguably a bias. It is literally a bias. People get confused about this sometimes but not all bias is bad.

I, for example, am biased against lies and towards truth.
Thanks for the responses!
Phish.ai Is for Sale – Computer Vision Anti-Phishing Engine
It's coming to Scala too: https://dotty.epfl.ch/docs/reference/other-new-features/expl...
Be careful: There are multiple classes of blood pressure medications with different mechanisms of action.

You're referring to beta blockers, which can reduce the stress response in your sympathetic nervous system.

> Literally the medicine is well known for making you perfectly calm.

> You know that magic pill that can get rid of your approach anxiety? I hear, this is it,

They're not magic. They won't make you perfectly calm and they won't magically rid you of different types of anxiety. Beta blockers are used in mild cases to help tip the scales toward calm, but they won't cure major anxiety or make you superhumanly calm.

Like any medication, it's best used as a combination treatment approach with therapy and other interventions. As always, refer to a doctor for a proper treatment plan, never try to self medicate with prescription medications.
> Some people feel one’s essence is fundamentally different from one’s body, including the brain as part of the body. Not saying I support this notion, but to brush it aside as stupid or unjustified seems a bit hasty in view of the huge literature behind these issues.

I don't think it is.

Consider: someone decides to say something without evidence. It's obviously okay to brush this aside and just say "there's no evidence for that". Then hundreds of thousands of people read what that person said, and then decide to propagate the idea by saying it themselves, still without any evidence. You're claiming that at some point, the bulk of literature means we can't say it's a stupid idea any more? I disagree. Ideas are determined valid by the evidence or lack of evidence, not by how popular they are.

In fact, when a stupid idea is popular, that's when it causes the most damage. So when there's a bulk of literature propagating a stupid idea, that's the time when it's important to say that it's a stupid idea.

> Moreover, doesn’t the notion of reincarnation in some parts of the Eastern world show it’s not restricted to Western culture?

You'll note I didn't say it was restricted to Western culture. I think Plato has a large part in spreading the idea in Western culture, but I'd guess he wasn't the first, and other people probably came up with the same idea independently.
Right, but the point being made is that there is no distinction between the two.
Crystal Palace 1-1 Arsenal – Premier League FootballGH – Video Highlights
I have a Zinus I paid like $250 at most on it and it's the best mattress I've ever slept on. But, I ordered one for the guest room and it did not fully expand, so I talked with Amazon and they sent me another one. I took the first one apart, it's pretty simple set of I vaguely remember 4 layers of different foam types. Making these mattresses is pretty simple for all the brands, so the profit margin on an expensive name brand is very high. All you need is a good vacuum and decent packaging for the foam types. I have no idea why anyone would pay $1000-$3000 for a mattress.
I recall reading a story of some bank robbers taking beta-blockers prior to the "job".
If its known for 10 years and not repeated, imagine how many people could benefit from hearing it for the first time (or since it's useful to hear this 5 times how many still need 4 more times)
There is absolutely no requirement from the hardware that the stack be any particular size
I'm looking forward to try Bear once they have a web client. I need access from Windows/Linux.
Cool, how do I offer an Uber driver more money in exchange for better quality/service? It's a platform, right? Where's the button for that?
Hm:

> app – an instance of Bottle or a WSGI application.

So, that means a require to load the code, and the some kind of app = my app.default_app()?

Do you have an example of how you create an instance of a wsgi app? For bottle it looks like that's normally something bottle.run() does?
Sure but the list of drugs that cross that barrier is long. Everything from antibiotics to statins.

And even if they didn’t, the body is a tightly interconnected system. Taking an antidepressant to “selectively affect serotonin” in the brain? Whoops, turns out your gut has at least as many serotonin receptors as the brain. Taking a statin to reduce cholesterol (which it does very well but with an NNT > 200 for heart attacks and NNT > 300 for stroke)? Whoops, it causes transient global amnesia and personality changes and diabetes in a lot of people. And 40% of the US Adult population we’re on statins in the mid 2000s.
I use Amiga OS on WinUAE to install it on real hardware.

AROS on top of Linux for me is missing the point as a OS enthusiast. AROS is okay, but MorphOS (which I run on a G4 cube) is much better IMO.
> This is no different than going to Angie's List to find a Contractor to fix your broken pipe

If I find a contractor I like, I can keep working with them. How do I do that with Uber?
World's largest radio telescope starts formal operation
It’s not okay at all. They were furiously denying all claims that it was shot down by them. Saying it was scientifically impossible and that it was a sneer campaign by the states.
ONLY AFTER the video of it being shot down appeared did they admit to it. But only after several countries publicly said that Iran shot down the plane.

So no they didn’t do a good job. Stop giving them props for shooting down a plane and lying about it until they were exposed by the media.
Null is a single nil for all, I meant having a null per domain would force people to think of what it means to have nothing in that field and handle it. Maybe I'm too naive.
Is this actively being developed? I don't see an update for the past 8 months.

From https://github.com/t1lang/t1lang.github.io/blob/master/North... slides, are telling for the language analysis to see why they think it's necessary to develop this:

Go:

- Only with TinyGo*
- Limited language/runtime support*
- "support for goroutines and channels is weak"
- Maps can ony have up to 8 (eight!) entries
- GC: only for ARM, other platforms "will just allocate memory without ever freeing it" (but GC is required for proper string management)

Rust:

- Inherits all memory-safety features of Rust
- Heap is optional
- But without the heap, everything is allocated on the stack
- Supports ARM Cortex-M and Cortex-R, RISCV, and MSP430 (experimental)
- Not other architectures that LLVM does not support
- Typically more stack-hungry than C
- Lots of automatic magic

Forth:

- Many incompatible implementations
- It's more a concept than a language (there is an ANSI standard)
- You are support to "write your own Forth"
- Very compact, with low RAM usage
- Even less safe than C and not portable

Given all this, is it really cheaper to write a new language than add architecture support to LLVM? I also don't understand the "lots of automatic magic", is that referring to the generics and/or type inference in Rust? Additionally, if not using Heap (the criticism about Heap being optional), where else would you allocate memory besides the Stack? Can someone who does embedded explain that?

btw, on the magic bit the T1 design does go on to talk about Generics support and a rich type system.

Edit: this comment sounds too negative, and that wasn't really my intent. I just wanted to better understand some of the considerations that were used in deciding to make this new language.