skysight-inc/HackerNews huggingface dataset:
I write a lot of scrapers and parsers, and sed is great because it's fast and almost always pre-installed.

There's a script I use every day that takes the current date as an integer, calculates an offset, reads line of a Bible reading plan e.g. "Acts 19:1-20 Paul in Ephesus", gets the chapter number "Acts 19", and then links me to that file. I use sed to get the text between* the start and ":". I first wrote it in AppleScript on a Mac, but later I wanted to port it to a jailbroken iPhone. awk wasn't there, but sed was.

I also used sed for a Mac/Linux cross-platform script that scraped EPG data from MC2XML (information about TV guides). sed was faster than awk.

In practice these days I usually just use TextWrangler and find-replace with Regex, instead of writing a script.

* If you think you can do textBetween faster - please contribute your own implementation over on Rosetta Code.

http://rosettacode.org/wiki/Text_between
Canery Mail: E-Mail App for iOS and MacOS with OpenPGP Support
On the flip-side, I don't want to live in a country where law is purely decided based on popular opinion. It is probably impossible to have a nation of purely rational, informed, soundly-minded voters for that kind of system. We are certainly very far away from that dream today.
Not necessarily. Empty positive comments aren't as bad:
https://news.ycombinator.com/newswelcome.html.

It would be different if we got to a point where empty positive comments were the main threat to quality on HN, but we're far from that.
Sounds like a powerful service. What have you done to market it and find customers?
I'm a fairly shitty product.
This person on reddit apparently suggested it back in 2013: https://www.reddit.com/r/webdev/comments/7oljbe/xpost_rjavas...

Relevant excerpt:

> I proposed required namespaces (@user/package) as a requirement in 2013 and the npm developers acted like I had 2 heads.
How the Sausage Gets Made: The Hidden Work of Content
When I took math in college there was no motivating examples for nearly everything. I had to complete my CS courses to understand nearly a quarter of the actual applications of what I learned in my math class. The only reason that I even know more applications right now is the fact that I am trying to teach myself SMT solving and ML. Why can't we have a math book that has motivating examples applicable to everyone? Or if that is too hard then just one for Computer Science?

Right now in nearly every Math book that is bought by a College student or High School student has motivations in Phyaics. So a person could go through HS, get their Undergraduate degree in CS and then never figure out how math could be useful in their job at all. When students ask "when am I going to use this" you have already failed in teaching your students how to apply this.

Once they have reached this point either they will have a really bad impression of math and just give up OR they will believe whatever you say after words and get rewarded ten years down the line.
This seems close to assuming that financial value is ultimately the only value of art.

That couldn't be further from the truth.
Note that the cap used to be ~300 GB and around the time people started hitting it they raised it to 1 TB. So history is kind of against your theory.
I’m as dystopian and paranoid as the next guy, but come on... we’re using the results of ARPANET night now. Our devices have GPS. We can use whatever encryption we like (for now). The governments of most of the world monopolizing a means of communication for long, is unlikely.
If you're serious (not sure), that would make him arguably the best painter of his time and place. But all time? Let's hear an argument for that. (I don't say, a good one)
Apple shareholders push for study of phone addiction in children
Sounds like a denial of service attack though. Just keep trying to read messages and render the channel unusable.
I want to see an apple designed chip running full out (no real thermal restrictions like in iPads/iPhone/Apple TV). Those chips already compare pretty favorably to Intel, and running at 3+GHz would likely have great single threaded performance.

I actually believe we're going to see MacOS for arm and a mac mini running an arm chip, it makes too much sense for Apple not to do it.
Which was more technologically advanced, the Roman Empire or Han China?
Space uses neuroscience and AI to help you kick app addiction
That seems very exploitable, an enemy could theoretically intercept all your communications, just to prevent you from communicating.
DeepTriage: Exploring the Effectiveness of Deep Learning for Bug Triaging
From programming with a Nokia feature phone to working for an MIT Startup
Are you talking about the Binge-On service[1]?
That's an optional service on both the customer and provider side.

Either way, there's no additional charges on the customer or provider side.

[1] https://www.t-mobile.com/offer/binge-on-streaming-video.html
I want a law requiring ISPs to post how much time per month you're allowed to use a connection at full speed. For instance, if you have a 100Mbps connection and a 100GB cap, then you're only allowed to use it for 10,000 seconds ~= 3 hours per month. Does your cell phone's LTE give you 50Mbps for up to 10GB? They're really selling you about 2000 seconds ~= 33 minutes per month.

I think any advertisement that doesn't include this basic fact is misleading to the point of being a lie.
Organizations on npm can publish "namespaced" modules, that look like `@orgName/moduleName`. It's just optional.
How do the economics work out for the clients? let's say we're just doing landing pages all month long (for example). If they turnaround in two days, that's about fifteen landing pages, which at $160 for the month comes out to about $11 each. Obviously this is a contrived and unrealistic example, but am I getting the math right?

I guess this is unlimited the way my data plan is unlimited: with rate capping?
We are not telling someone what they can’t do, why do people keep saying that? I like a sugary drink as well, and I am happy for everyone including myself to pay more if it imporoves health.
If a kid thinks “smart” means that she knows the answers to lots of things then when she runs into things and doesn’t know the answer, she figures everyone is wrong and she is stupid. When a kid thinks that being smart means being able to sit there and figure things out and ask for help when needed, then she knows what to do to live up to the “smart” expectation and can accept the vision of herself as smart when she runs into something she doesn’t already know.
Skepticism is a great trait, but it should be your catalyst, not your conclusion. The article(s) showing this have numbers that support the claim, not to mention the history of previous cultivars' demise via similar mechanisms. Do you have something to the contrary?
It looks like they already have an option for that.
This Fusarium situation almost seems like timing an economic collapse. I'm not exaggerating when I say I've been reading articles about the coming bananapocalypse since grade school. So maybe we should be convinced it's going to happen, but when? Next year? Next decade? 2045?
What is your monthly cost of doing that? I've considered it since I travel a lot and I'm interested in living more mobile long term.
The first corned beef sandwich in space (1965)
Great. This isn’t about you though, it is about everyone. And it isn’t working for them.
Australia already has some of the highest taxes on cigarettes. They have nationalized healthcare also, so a sugar tax can be seen more as reducing society healthcare costs, which are born by everyone more equally, rather than anything else. So the sugar tax can lower your taxes even if you don’t impuslively eat sugar, by lowering your burden in supporting nationalized healthcare (the goal behind the cigarette tax as well).

If this was America where much of the healthcare wasn’t socialized and it was every poor schlob for themselves, then you might have a point.
But the poor want half measures a great deal more than they want none. Sometimes a door is just a door, and ya don't need access to the swimming pool, just to your job.
> capability vs. identity is a duality

Can you explain that more? Do you mean that both caps and ACL systems are ways to organize an access-control matrix, either by rows or by columns? Because I think that idea over-abstracts the reality.
Sounds pretty superfluous to me. Somewhere between like, having a crush and love, I don't quite see a place for "premonition of love."

Given no other culture has it (as far as mentioned), I'm tempted to believe it's a cultural quirk or a tradition, rather than a universal phenomena.
Sorry, I meant to write:

synchronized(this) {
a = AcquireLock();
for(c = 0; c < 100; c++) {
f();
}
}
ReleaseLock(a);

which is inline with what the blog post was proposing.

To repeat the blog is a question:

for (...) {
synchronized (obj) {
// something
}
}

…​could it optimize into this?

synchronized (this) {
for (...) {
// something
}
}

My answer to that is in general, no.
All encryption across channels currently still functions with a man in the middle being able to intercept all traffic between 2 parties. Look into RSA and Diffie-Hellman.
Most comprehensive approach to changing how we elect Congress in history
> Things like veggie burgers are probably a little better but when I look at the ingredient list it's still scary long. I can make burgers myself from around 5 ingredients or less.

Sure, but why is 5 ingredients better? That's the question you haven't offered any defense of.

I just ate a sandwich. I put three kinds of peppers on it. Would it have been better for me if I'd only put two? It had soy-based meant on it. Would it have been better for me if it'd had regular ham instead?

"Less processed" might be a useful heuristic for health, and "fewer ingredients" is likely a useful heuristic for "less processed", but you've presented no evidence for that claim, and it's definitely very far from universally true.
> i personaly only would use go for very technical, low-level middlewares.

Care to extend upon why you don't feel go is a good fit for other programming?
BYTON’S ELECTRIC SUV CONCEPT IS ANOTHER WILD STAB AT THE FUTURE OF CARS
A better replacement for Wealthfront is merely buying the https://en.wikipedia.org/wiki/S%26P_500_Index . I bet we could create an automated version of the S&P but at this time its just not beneficial due to financial laws and also just talking to a person.

We need to think of automation as more of a cybernetics concept than just a program on a computer. In the front line you will have humans doing the Sales and that probably won't go away. In the back you will have computers which make decisions and in the middle you will have engineer(s) working on the interface. Once we can replace the sales experience thats when we will get there.
One interesting application of the idea of capabilities to an existing POSIX system is FreeBSD's Capsicum. (There is also a Linux port of Capsicum, but it has not been integrated into Torvalds' tree.)

In Capsicum, capabilities are tracked on a per file descriptor basis.
A typical program opens any input paths, restricts capabilities on open fds (including stdio), and then enters sandbox mode.

Once the capability mode sandbox is entered, no additional capabilities can be granted, and filesystem access via absolute paths is revoked. (Sandbox mode programs are expected to access files they already have open, or to use relative accesses to walk file trees.)

Erroneous system calls generate ECAPMODE or ENOTCAPABLE errors if they attempt to perform actions they do not have permission to do.
Beijing bets on facial recognition in a big drive for total surveillance
To reiterate my point: It's not like if the government prints money to pay off the Treasury Bonds that it would actually cause inflation. The fact that the Bonds are out there is already somewhat accounted for in the economy in the way that people get and save the bonds.

So, turning them into USD if necessary wouldn't be the same as printing USD with nothing to offset it. The choice to print USD while the bond values in the world go away is effectively negligible. That's the core issue, whether or not the action in the end is to print USD or go in other directions.
A bunch of folks here are complaining that the explanation isn't good enough, doesn't go into enough detail, etc.

Literally the second sentence is:

> Early this coming week, we will share a full analysis and technical explanation of the incident.

I'm looking forward to reading the final post-mortem, but in the mean time I really appreciate their update.
I’ve watched an orange juicing machine turn oranges into juice at Starbucks (well, in France anyways), so we know. Not good for you, but it didn’t undergo any processing.
I agree so, so much with what you wrote.

I only have one teeny tiny nit and I'm only mentioning it because I think it's a common misconception:

if you want a **quiet,** good looking machine with a
great screen and the other 'benefits' of an all
in one (and don't mind the trade offs)

I don't think "quiet" needs to be the domain of all-in-ones; with a $60 CPU cooler from NewEgg one can have a ~4ghz i5/i7 PC that's nearly silent. The old cheese grater Mac Pros were noisy, but that really doesn't need to be the case, especially if Apple would just release a damn desktop i5/i7 based Mac Pro.
IIRC, they're still produced in Thailand, so depending on the part of Asia you were in, you may have already had it.
How about if one results in you later consuming fewer calories than the other by affecting the production (and reception) of leptin, insulin, and maybe a dozen other hormones?
I'm not Kenton, but my favorite deeper look is Mark Miller's thesis, linked to at the top of the OP. As a shorter and less formal intro, there's http://www.erights.org/elib/capability/ode/index.html
How about making nutrition facts label to tell me how much added sugar per serving. Yesterday, I had to search the internet to find added sugar in Chobani yogurt.

Then we make law to print warning labels about the danger of sugar on every product that has added sugar.

These would be more effective than tax.
> And what, anyway, is “meaning?”

I sure would like to hear what they had to say about this specific question.
One-time pads seem like a much easier solution, and they're never breakable given any amount of computation. They require upfront preparation to trade the pad, but seem a lot easier than quantum anything.
What a ridiculous statement.
This seems like a weird request. Are iPhones supposed to be more addictive than Android phones or something?
It’s a solo piano piece orchestrated by Ravel, who was a master orchestrator.

That’s the point about Tomita - there’s nothing “arbitrary” about the orchestrations. They’re an updated and exotic take created by someone who is rooted in that lush late tonal school of orchestration, but is using a completely new instrument to make original sounds.

Snowflakes Are Dancing sounds a lot more pianistic. The later Tomita albums sound more like attempts to reinvent symphonic music, with some quirky additions. He’s very consciously shaping the music like a conductor would, while painting with evocative sounds - very much not arbitrary at all.
Do you have any examples of systems using such a technique? I'm interested in seeing something concrete.
These are the types of fun details that are totally going to be part of future history lessons (no matter which direction, positive or negative, all of this is heading towards).
Without the support of the OS, what are some examples of regular software (multiuser webapps... etc) using the capability design. And does this imply that the capability design only works internally and you cannot pass caps to other applications?
I suppose its possible to argue that they are by virtue of the superiority of their UI design and a more robust app ecosystem. In my own experience, I find myself far more impulsive about phone use on an iPhone than when I was using android devices.
That sounds like a class in reverse ethics. Is it widespread? I wonder if that sort of thing contributes to the reproducability crisis?
noob question : would using yarn have mitigated any of the risks of missing/broken packages ?
golang.org/x/ packages are not builtin. You still must download them and use them just as you do any other dependencies, they just share some contribution process and developers with golang's stdlib.
Many-Agent Reinforcement Learning Platform for Collective Intelligence
Yes, it's orthogonal to the issue of selling internet access.
I know what you mean, but I'm not sure that's the way forward.

My understanding is that when you start really cranking up CPU speed -- let's say, with an imaginary 3.5ghz version of whatever their latest iPad Pro CPU is -- now you're just spending all your time waiting for RAM. So you need fancier and fancier speculative execution hardware in order for the CPU to have something, anything to do. You get into that game, and you wind up with as many transistors on a chip as Intel and AMD, hitting the same performance walls as Intel and AMD have been hitting for a long time.

What Apple could do is just go super wide, of course. Instead of bumping up the clock speed, they could cram 16 of those iPad Pro cores into a Macbook or whatever. Which would be fun, but for most workloads, those cores will just be idle most of the time.
Shouldn't the CEO be investigated for insider trading?
That pressure cooker is around $120 though if it’s the one I’m thinking about. Also, we use it mostly for baby food (well, his solids) and still stir fry most of our own meals. People shouldn’t underestimate stir frying: you can take a half a bag of baby spinach ($2/bag, cheaper if you can find some full leafs in good condition, but hard to do that) and cook it with a dab of sesame oil and it comes out pretty good.

And really, the hardest part of eating well is definitely the cost, but also the knowledge (what I know today could have made college-me much more effective!).
Thanks for writing this. Saved me some time, and you did it better.
Current 8k displays use 2x DP connections just like early 4k displays.
Psychedelic stickers that interfere with one specific model used in AI image recognition.

If necessary, next week these system can learn to ignore these.
I just watched a Youtube video of the STS-1 landing. He definitely was a happy guy, but it was nearly after landing until he finally exited the shuttle.
Could we start with conclusive studies about impact of radiation on children & adult's soft tissue ?
Purism Isn't Principled in an Impure World
Yes, that's exactly the point -- meat/fat have much higher satiety than carbohydrate and less effect on insulin.
I've had a couple iPhones and now currently use Android, but I never noticed this in myself. Can you give a little bit more detail?
I'm pretty sure the radiation would do more harm. I'm not saying it's healthy, I'm just saying it's not the same thing as the crap the research is based on. And I have quit for longer periods without seeing much difference.
Composite Image of 3 Photos Captured by OSIRIS-REx
It actually does kind of look like a toaster.
Reads more like a cautionary tale of what happens when you don't save for retirement than a story of a struggling artist
Skepticism is a great trait, but it should be your catalyst, not your conclusion.

That's very well put. Can I steal it?
I hope this leads more developers to begin using restrictive trademark terms for their work, like Mozilla does with their software (e.g. you cannot fork Firefox and still call it "Firefox") or what Tuomo Valkonen did with ion3.

And for that matter, this sounds like a pretty strong disincentive for developers to make their code open-source at all. I'd rather just release proprietary software under a license that allows me to revoke individual entities' ability to distribute my work on a whim to prevent something like this from happening. And I mentioned Tuomo above for a reason--his experiences with ion3 and dealing with the open-source community drove him to a similar decision, and he quit writing open-source software and developing for Linux as a result. By the time he quit, he had become an active opponent of free software.
And we’d have less innovation... perhaps at some point that is what we decide we need and well that is one reason for us in the technology space to take security seriously to help keep from allowing regulation into industry... as they say it only takes one asshole to screw all up for the rest of us...
$90/month plus all their various fees and whatnot, works out to around $103 I think for a single line. Still cheaper than a reasonable Verizon plan with data plus Comcast.

I did it for much the same reason. Had to move anyway, don't expect to spend as much time at home over the next year.

20GB/mo coupled with the website obesity crisis (http://idlewords.com/talks/website_obesity.htm) coupled with it being nice to have a dumb show on in the background while doing dishes (about the extent of my Netflix habit) makes things uncomfortable for the last few days of my billing cycle. I'm currently browsing the web at a stunning, 21st-century America speed of 600kbps -- aka, I actually get better speed by going to a crowded Starbucks.
I think this is a very good sign.

It is my hope that Apple is able to pioneer tools which make it possible to interrupt addiction forming (dark) patterns.

Addressing this on the device/os level (vs possibly legislation) could be very effective.

Right now this is a lawless territory and creating + exploiting addiction at the cost of depleting millions of people’s cognitive resources as free is very profitable.

The long term costs associated with this profit are still to be seen but I am sure they exist.
isn't the only viable competition to a MacBook pro is a Lenovo Carbon X1...which is equally expensive ?
IMO, it's all the same.

But if I had to make an argument: People who buy iPhones are more likely to get their kids an exclusive iPad in their homes, thus making their kids prone to addiction. (Just a theory!)
Yes!

Too many people think OOP means deep class heirarchies, implementation inheritance, AbstractSingletonProxyFactoryBean, and other things you might see in Java. I think this turns a lot of people off.

Good OOP is none of that. It's simply associating data with code that operates on it, in order to get two good things: abstraction and encapsulation. Abstraction is by defining virtual tables, encapsulation is by hiding implementation details as private members.

Object-capability discipline leverages encapsulation as a security primitive (you can only perform the operations allowed by the public interface), and leverages abstraction to implement attenuation via wrappers (e.g. a wrapper that blocks certain methods, or a wrapper that can be revoked later). It has zero use for class hierarchies with implementation inheritance.

So yeah, I think studying ocaps does help one understand how to do OOP right.

And yeah, I think learning FP can indeed help you gain clarity over a different aspect of programming -- something basic about organizing computation and data structures, which complements OOP and ocaps. (I seem to be one of few people that don't see any inherent conflict between OOP and FP... they are orthogonal and can be used together.)
True. If we talk about everyone, then in a society where you are far more likely to suffer from obesity than starvation or malnutrition, "everyone" is doing a disservice to their children by not raising them to be the biggest most obnoxious food snobs ever.
The connection is presumably that they're Apple shareholders asking something of Apple.