skysight-inc/HackerNews huggingface dataset:
Any claim of the form "this language is magical! every statement is self-evident" has been bunk since the dawn of programming. The people making such claims are always already too close to the language to realise their own confirmation bias.

So, feedback, from someone whose exposure to Swift consists basically of this article but has eaten a metric crapload of many other braced languages over the decades.

What I can tell is that the programmer wanted to print 2,4,6,8. So the intentional readability is there. However when it comes to understanding how it works (i.e. the language mechanics delivering the intuitive reading) I had lexical concerns. I couldn't immediately tell whether the where-clause acts like a guard predicate in the for-statement or an unbraced if-statement i.e. equivalent to

for i in 1..<10 {
next if !(i % 2 == 0)
print(i)
}

or

for i in 1..<10 {
if (i % 2 == 0) {
print(i)
}
}

or even (let's hope not)

if (i % 2 == 0) {
for i in 1..<10 {
print(i)
}
}

and in a similar vein the lexical scope and binding of i was not clear to me; some languages bind the iterated variable at the level of the statement, others inside the iterated body (which may even be a closure for all I know), and this has implications particularly for the the value of i after the loop, for the binding of i in any function generated inside the loop (example: print could actually talking to an IO object that defers output by prepending lambdas to a chain - I've seen web containers deferring view rendering this way), for name masking, and for the consequences of any flow-control/continuation/exception mechanism that may cause an early loop exit.
glibc is such a mess. whoever wrote that isalnum monstrosity should be legally banned from operating a c compiler
What's strange is that it seems to have been an offshoot of the pipeline operator (|>) work from last year[1], which was originally proposed as having an assignment syntax like

foo |> bar(20) |> (x)

where x is assigned to. People didn't like that syntax, and there were issues with = being higher precedence than |> [2]. This new right-assignment operator was created in response to that [3].

The weird thing is that the pipeline operator got killed, so the original reason for r-assign no longer exists. It looks to me like there's just some people on the Ruby team who took a shine to it.

[1]: https://bugs.ruby-lang.org/issues/15799
[2]: https://bugs.ruby-lang.org/issues/15799#note-22
[3]: https://bugs.ruby-lang.org/issues/15921
I agree for the web im general, but I don't think it applies in this case, because he was free to say whatever he wanted, but when he agreed on the deal he also agreed to represent Spotify, and therefore all its employees. It's like a sponsorship.
It’s turned in to nagware.
This sounds like an interesting usecase.

Did you look at any of the node-based options like checkpointing the state to a file on the node, and loading that into your newly started pods? Or using read-many persistent volumes? (Not sure if you needed to write to the state file from every process too?)

(This doesn’t help with connections of course, that’s a bit more thorny.)
I had a similar experience comparing DSP algorithms; native was faster across the board. It’s hard to get excited about WebASM if it’s slower.
There is also Vyadha Gita within Mahabharata. In it a sanyasi learns of enlightenment from a lowly butcher.
>Nobody wrote their own stack top to bottom other than the TempleOS guy.

He was the greatest programmer that ever lived.
Does Palantir accept citizen's uploads?
I've never understood this notion that a professional codebase should be dumbed down to the level of the beginner. In most professions the neophyte must jump though hoops to reach mastery yet in programming we seem to have turned this idea on its head. Whatever happened to mastering your tools? A seasoned Perl veteran should be able to play a damned good round of golf.
"I'm gonna give you to the count of three, to get your lousy, lyin', no good, low down, four flushing carcass out my door! 1, 2..."

https://www.youtube.com/watch?v=h_bUcNjmuSk
The two major Servo components are the style system and WebRender. But I wouldn't say that it is "largely" Servo by any means.
That’s a promising project. Evil integration is a key feature for me, but once that is supported that will be a killer package.
Definitely, contemporary swords are boutique luxury items.

A good machete is about 30 bucks, and a sword is fancier, but not much: $60 is a decent guess at the price of a quality sword, if they were an important sidearm that most people needed to have.
Very scattered post. I guess the confusion about enlightenment these days is grounded in the conflict between the actual traditional concept and the way spiritual practises have been sold as a sort of productivity booster pack for knowledge workers.

In many religious traditions enlightenment is nothing less than the annihilation of the self or something of the sort. It's a proper recognition or awareness of one's own nature, absence of desire, superficial rewards, it's not easy to put into words but I think most people get the point.

This has gotten lost in all the self-help posts about meditation and it's been turned into a commodity on app stores and whatnot and now people treat it like a snickers when your blood sugar is low.
Two-Way is quite old, but you're right that it is lesser known that BM and KMP. You'll find Two-Way implemented most commonly in environments where either allocation is undesirable or where you want as quick initialization as possible. Namely, Two-Way uses constant space, regardless of the size of your needle, where as BM generally requires space proportional to the size of your needle (and thus, allocation or some fixed upper limit on the needle size).

These kind of conditions occur in libc implementations where the library interfaces don't provide separate initialization and search phases; all you get is a substring search routine. (The interface is limiting; you can never avoid the overhead of constructing the searcher for a particular needle, even if you are using the same needle to search many different short haystacks.)

Whether one is better than the other is hard to say. Substring search routines these days are dominated by vector instructions and how effective you use them in the common cases.

KMP is basically never used. I can't think of a single place where it is used off the top of my head.
I down-voted this comment for its tone. This is a thorough and well-informed rebuttal of the parent comment, but it's buried under an unnecessary layer of sass and sarcasm. I appreciate your passion, but we can do better than this.
You're making pretty strong claims in the post:

> You decide to visit (or your browser polls on your behalf) ANY website that either: ...

> ... I get these accounts transparently, almost as soon as the page loads.

So on the point of accounts... yeah, in badly done websites which still don't use httponly and secure attributes on cookies, you'd be able to do that. And that's totally on the developers - this protection was there for ages. This applies whether you use a framework or not, I only mentioned them to show the popularity of the solution. Since Firesheep this is table stakes.

> Suppose I have MITM’d the actual page, but a remotely sourced javascript file — Stripe’s, for instance

Go ahead and try it. Stripe scripts refuse to work from sites loaded over http to prevent this scenario.

Autofill - that's effectively closed. Chrome won't autofill logins on HTTP sites anymore since v86.

I agree there are broken websites out there, but it's not even close to https being a security theatre.

Added later: I'm not sure I understand the persistence claim either. The initial request is never pulled directly from the cache, and the official page will not reference the http version of JavaScript files. Even if you have the http version cached forever, it's the https ones that will be pulled later.
If you really need stateful services in k8s, why not just use a StatefulSet and keep your old deploy process?
I'm hoping the 120KB/s speed I'm getting while downloading the client is because they're getting swamped by new users.
Rolex and Gucci don’t tell time any more accurately than Casio.

Apple, on the other hand, allowed my non educated non English speaking great grandma in a rural village in a developing country to be able to reliably video call her descendants thousands of miles away.

And no, Android/Skype/Viber/Tango wasn’t an option because we tried them all and they sucked.

Also the amortized cost of apple products is far less than non apple products considering they actually get updates for 5+ years. So I fail to see how it’s like a luxury watch or belt that simply serve to show how much the owner can afford.
Not super well known, but Google has quite a few Datacenters that aren't used for Google Cloud, but are reserved for internal use.
This was a change that Chromium introduced in July 2016. I remember it being slightly controversial at the time and the issue from the tracker being posted to HN :)
It's funny that while you're saying this, one of the comments says they should tell Linux & BSD people.
>I think if you could easily install and use emacs to edit a text file with no knowledge it's userbase would grow exponentially overnight.

Why do you put such a value on growing the user base exponentially? Is that important? Or even desirable?

Emacs isn't a toaster or even a web browser. It has specific use cases that a very small number of people actually need. The really nice part about it is that it's extensible and endlessly modifiable.

Again, that's not something that most folks need.
∞ Inbox vs. Inbox Zero
Some search engine will be willing to pay for the spot, whether bing, ddg, or something more esoteric (ali-something?)
No, debts should not be transferred. What should be transferred to heirs is what is left of the estate after creditors are paid off, if anything.

If someone dies and they owe money, the creditors have a claim to the estate.

If their claims exceed the value of the estate, they are out of luck; they can't go after other parties to recover everything.

If someone dies and leaves your their house, but it is mortgaged, then the mortgage likely has to be paid off before the title is transferred.

Creditors having a right to the estate means that you can't borrow (or steal) something, die, and have that property pass it to a heir free and clear.
You reminded me of this quote.

“Einstein repeatedly argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer.”
Don't make excuses for employees demanding their megacorp do censorship. This should be unacceptable behaviour contract or no.
Something I realized recently is that when I'm hacking on something, I like to brainstorm in terms of data from the very beginning, which means brainstorming in terms of types. Static types aren't just about stability and error-catching, for me. They are their own expressive vocabulary and I feel expressively crippled without them, even when working on a rough draft that will likely get thrown away.

That said I tend to prefer TypeScript over Rust for fast iteration, all else being equal, but I agree with the author that Rust can work quite well even for this usecase. And I would never pick Python for anything beyond 100 lines, if I'm being honest.
The man behind Latin America's “anti-bank”
I’ve used emaca for a pretty long time- since about 2001- but in all that time I’ve never felt the need to become a super power user- it just does the basics really well. I guess that’s all I really wanted. I use it for coding and I use org mode. I like the auto-indentation, which to this day no other editor can match, I like the syntax highlighting.

Here are my beefs though:

1- you have to jump through hoops to get melpa to work- I have to research this again every time I install it.

2- the auto indent and syntax mode for shader language has to be installed manually

3- ido-mode isn’t turned on by default

I’m one of those doofuses that uses cua mode all the time too. Sue me, I just want an editor that works and emacs is very good for code editing. I don’t care about the power editor moves which I forget 5 minutes after learning anyway.
I had a slightly different misinterpretation: that Microsoft was working on a treatment for some (unspecified) disease.
Over the years I’ve learned few things are more permanent than a temporary solution.
Joe Rogan isn't even right wing - he's clearly a progressive (literally a Bernie Bro) - it's just that he's usually willing to talk to conservatives on his show.
Wondering how RBS will compete/compare to Sorbet, which seems like a better solution.
> When I hear "the browser" discussed in almost any parlance,

Well at least it's an improvement over the browser being referred to as "Internet" before.
Or sometimes it’s just when developers don’t like how something was implemented such as it’s OO and they believe it should be FP, or vice-versa. Or more annoying, when something doesn’t use their favorite library but it has zero impact on the user.

The question I always ask is what happens if we do nothing? Debt at 0% interest is obviously not a problem.
Yes, I didn't know the gaming space was also that high. I wonder what a mob protection racket's percentage is.
To increase the sample size, a Japanse student I went to school with introduced to me to Blackjack gum. She liked the flavor too.
What evidence do you have of "ecosystems" moving away from metaprogramming? Last I checked, it was just as popular in C++ as it's ever been, and a number of high-profile new languages (Rust, Elixir, Nim) have made it a major selling point.
> I've worked in many startups in the US and almost everyone uses emacs.

Others claim the opposite. Maybe the contradiction is explained by the hiring culture. Startups with emacs users hire more emacs users. Not that they would make emacs usage an explicit criterion or even ask such interview question. But probably there are some properties over-represented in 4% (or whatever the figure is) of programmers that are emacs users.

Disclaimer: Part-time emacs user since 1986 or so, full-time emacs user since 1989. Should spend some time to learn the newer features / customize it in a more compatible way with the rest of my software. I am lazy to make "another" editor as Stallman puts it even if I like Lisp hacking occasionally, but I would happily switch to a modernized configuration if it were available upstream.
How are people not up to their eyeballs in monthly subscriptions at this point? I've always been wary of adding subscriptions, but it feels like there's got to be some breaking point when there's one too many Netflix/Disney/Hulu/Apple One/Peloton subscriptions to handle for your average consumer.
That where is not a one-off construct, it's used with switch statements:

switch i {
case 1...100 where i % 2 == 0:
print("\(i) is a small even number")
case ..<0:
print("\(i) is negative")
default:
print("I couldn't care less")
}

Or generic constraints:

struct Vector<T> where T: Numeric {
// ...
}

If you so wish, you can always use any of the functional constructs as well, as in

for i in (0..<10).filter { $0 % 2 == 0 } {
print(i)
}
I wouldn't do my security stuff wirelessly if I was serious about it. A simple $2 esp8266 deauther is enough to disrupt WiFi and for the other protocols there's the option of jamming.
It's a funny effect of lacking experience. The less you've seen, the less you think there is to see. Having been told nothing about this database except the fact that you are to migrate it, you immediately assume that you can do it perfectly.

Is it Postgres? SQL Server 2012? Mongo? Oracle? Sybase???

Is it one DB or a cluster? Is it replicating, and by what methodology? How much downtime is acceptable, if any?

That's a pretty limited set of possibilities because, you see, I'm also not a database expert. Maybe you think you can handle all of those situations, but I know I can't. So yeah, one of us is definitely missing the point.

Not to mention, what if things don't go according to plan! Have you ever even dealt with a situation where you have unreconciled data?! The more I think about it, the angrier I get about your insouciant ignorance!

But it's ok, at least I'm not the one hypothetically dealing with a database migration gone totally fucked :)
this is so cool - should be adopted in freshly dictatorial countries such as the us. surely some will be killed for it but freedom is worth a risk!
I'm not married but not all wives are the same. My gf wouldn't care :)
Spotify also agreed not to censor him if he came to their platform. If you want to get into who agreed to what.
This isn't typically used even with the option of off label prescription.
> Further, web browsers never needed to be FTP clients

I think historically the FTP support existed so you could set up a web site on an FTP server rather, rather than having to run a HTTP server.

Early on, having a single browser that could browse HTTP sites, gopher sites, and ftp sites, was a powerful argument.
Yep, running it for our roborock.
Not a good person, IMO: https://www.sonyasupposedly.com/vcbrags/
I could never understand why someone would want security cameras inside their home. What is it for? It always struck me as a weird American paranoid thing. And just for the record, yes I have been burgled before.
How is the biggest purchase of someone’s life not consumption? It’s can be both, although, I would argue the investment aspect of a house is minor and irrelevant since you always need somewhere to live.

The mortgage debt has to be serviced, and your kids have to go to the schools in the richest areas (aka best schools). Hence once you have kids, most are innately pushed to stretch themselves so their children have access to the best possible future.
While I agree, quite strongly, about your general point regarding the short memory and ungracious expectations of people at large, I also disagree, strongly, with your dismissal of the problem addressed in this article.

By and large these problems are all man-made and have known remedies. It is possible to be both grateful for the great advances, conveniences, and benefits of modern software and simultaneously frustrated with the very real, preventable, and fixable problems in most modern software.
Go back up to my original post on ADX Florence. "After three years in maximum confinement, some prisoners may be transferred to a less restrictive prison."

And note that several espionage sentenced prisoners are there. None of them did anything violent.
I only ever tried out a rails tutorial once, and coming from a C/C++ background, but having used with many languages, too many things felt like magic back then, but no further experience with the language itself, so can’t really judge it.

However, now I’m on the operational side of things, and there are 2 types of applications I avoid to deploy/maintain, mainly because of their runtime: Java and Ruby apps. It’s very likely the Ruby runtime has improved, but we actually set up a haproxy with multiple instances of the same ruby app, which we just restarted every 2 hours, just to keep it running properly. Upgrading ruby back-then was a mess, and could break a lot of things. I can’t comment on the language itself, but the runtime left a very bad impression. I since then (4/5 years ago or so) have successfully avoided ruby, so it’s possible things have improved, but first impressions last...
That was the specific inspiration, yes.
The point of the post is that you should see yourself as a businessman, even if it feels goofy: you're not begging for crumbs, you're negotiating price with another business.
Yeah I have no idea why they still, after all this time, can’t get melpa to run out of the box.
I am a craftsman, not a tool maker.
So you change your oil every 20,000 miles?
You can be the enlightened one in many things. Here is an example: Edward Snowdon. Re-read the article imagining yourself to be him and it might make more sense.

Was he enlightened? Well yes. He could see the system for what it was in a very Matrix type of way. Before he came out with facts we were tin foil hat wearers, certainly not enlightened.

Because Snowdon knows some of the truths he has a vantage point to see the rest of the way government works for what it is. He also has a vantage point for seeing his fellow human beings for what they are. You can count on one hand the amount of people in the spy agencies that came out in a way inspired by Snowdon. It didn't happen, they just hunkered down.

I would say that Snowdon has got the measure of his fellow man and is therefore enlightened.

You can achieve enlightenment in many ways and the spiritual practice world does not have a monopoly on enlightenment. There are probably more fraudsters than genuine enlightened in the religious world.

Enlightenment is a thing though and with it comes a whole host of other thoughts, as per the article.
Rohan isn’t exactly right-wing—-he endorsed Bernie Sanders.
Yeah, I’m not right wing either, I just actually believe in free speech for everyone. Even people I don’t agree with. This new movement to censor and silence opposing perspectives is disgusting and should frighten people. Win with the merits of your ideas and perspectives, not by silencing the people who oppose you by claiming moral superiority.
I think companies under a certain size and it's a different story.
There isn’t much I can think that’s stupider than direct democracy for monetary policy.
Hi @camkego We tried pretty hard to define a pretty specific definition of "Value Added Service" for TimescaleDB, which is why the license also has some "custom" aspects rather than just having a general clause about "can't be competitive" with us. So the definition is here, and an example of walking through a "test":

https://www.timescale.com/legal/licenses#section-3-10-value-...

3.10 "Value Added Products or Services" means products or services developed by or for You that utilize (for example, as a back-end function or part of a software stack) all or parts of the Timescale Software to provide time-series database storage and operations in support of larger value-added products or services (for example, an IoT platform or vertical-specific application) with respect to which all of the following are true:

(i) such value-added products or services are not primarily database storage or operations products or services;

(ii) such value-added products or services add substantial value of a different nature to the time-series database storage and operations afforded by the Timescale Software and are the key functions upon which such products or services are offered and marketed; and

(iii) users of such Value Added Products or Services are prohibited, either contractually or technically, from defining, redefining, or modifying the database schema or other structural aspects of database objects, such as through use of the Timescale Data Definition Interfaces, in a Timescale Database utilized by such Value Added Products or Services.

So for the GitLab monitoring service, given my understand from the short description:

1. Is the service other than primarily a database storage service? [Yes]

2. Does it offer substantial value over a database and is it offered/marketed for a key function other than a database? [Yes, it is a monitoring system, not a database system]

3. Are users of the monitoring system prevented from defining schema and accessing database DDL? [Yes]

Of course, we _very much_ welcome feedback how to make it clearer or more explicit. Our goal is _not_ to create uncertainty.
I'm unsure what the difference is between the first two…are they not equivalent? The lexical scoping could be interpreted differently, sure (allowing your third example the benefit of the doubt) but this is where the "Swift is consistent" comes into play. You already know Swift's scoping rules, it's one of the first things you learn, so using that knowledge you can figure out this code as well.