Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 8y ago · link · parent

I'm not sure I understand. Why would an RPC call a different function than what you expect?

I'll grant you that there is more complexity in this approach, but I believe that fault tolerance is something you improve with microservices, not something you regress on.

comment 8y ago · link · parent

I think PaaS is overly broad.

And yes, marketing is a real thing, and names are also picked because they sound cool. There are worse things.

comment 8y ago · link · parent

I don't see how. Your points of failure were always there, but at most they're more explicit since "service failure" conflates with "network failure" - something I think is beneficial, since you always had to handle "service failures" but they were implicit.

That is - a piece of code in a monolith may fail, and a piece of code in a microservice may fail, but I've already written the code to handle network errors for the microservice case, which means I've also implicitly handled the "bug in code" case.

comment 8y ago · link · parent

Why shouldn't it be called serverless?

As a consumer, I essentially get to treat it as such - there is no server I need to manage.

In AWS-land this is a big differentiator over a system I have to manage, such as EC2, that just executes containers (meeting FAAS). Now I have FAAS and I don’t have to manage the infra, which is huge because AWS will be far better at meeting a patching SLA than I will be.

Yes, obviously there is a “server”, but I don’t have to think about it.

comment 8y ago · link · parent

From another computer? This situation sounds so contrived as-is. Don't tell me they also can't use another system?

comment 8y ago · link · parent

Or Bob just curls the file again and reads it?

comment 8y ago · link · parent

I don't feel the need to review the source code for every install script I run.

I don't read the source code for almost any of the code on my machine today. In most cases where I see `curl | bash`, I'd probably already be screwed even if I review it. Most install scripts and up doing "hit website, install thing" anyways - am I reviewing the second stage install script also?

comment 8y ago · link · parent

Where can I read more about this? Specifically, which parts of memory are mapped in?

comment 8y ago · link · parent

The second paragraph of that is actually just one massive sentence :|

comment 8y ago · link · parent

> Lily uses reference counting for memory management with garbage collection as a fallback.

I'd just call this GC where it's rc + (presumably) a tracing GC.

> .reject(|r| r.is_space() )

This is nice. I've always found "filter" to be a confusing name. Filter in? Filter out?

'reject' is a very clear name - if it is a space, reject it.

Code looks really reasonable.

I find `: {` to be a strange idiom. Why not one or the other? Seems to distinguish between single vs multiline? I guess that's reasonable. A bit noisy.

comment 8y ago · link · parent

Rust makes a similar decision, despite having Option and Result.

If you want the Option behavior, there's .get()

Anyways, very cool looking language.

comment 8y ago · link · parent

This sounds very much like "write code to please escape analysis", but with a profiling step in front of it.

comment 8y ago · link · parent

It's then interesting to compare to C#, which also can do stack allocation, but still chooses a generational GC.

comment 8y ago · link · parent

I don't think you'd need to have two versions.

If I have a sync function and I call something async, I should be able to just .wait() it, I think, and get the sync behavior.

comment 8y ago · link · parent

It is fair to say it is alive. Is it fair to say it is alive and well?

comment 8y ago · link · parent

Yeah, to your point, every time this comes up I hate not having a printer.

comment 8y ago · link · parent

Yeah, businesses need printers.

comment 8y ago · link · parent

Overlap of Linux users and people who need printers is probably at an all time low.

comment 8y ago · link · parent

Purging cups is one of the first things I do with a new Linux system. Who the hell even prints anymore from a personal computer?

edit:

also, lol, remember when Linus "vented" about unprivileged users and printing?

https://plus.google.com/+LinusTorvalds/posts/1vyfmNCYpi5

comment 8y ago · link · parent

They are not ignoring the issue, but they also do not have this mitigation in place.

Getting there will take a long time. Chrome got lucky - they've been working on this for ages, and they happened to be rolling this out right when Spectre landed.

comment 8y ago · link · parent

I've worked at smaller companies. Even still, it's not hard to hit relatively large amounts of data, depending on the field.

As an example, any kind of analytics could generate terabytes of data a day... per customer.

A side project I am building will have to handle billions of events per day. Per customer. There are 0 customers (this is for fun, not profit), but as soon as it would hit one customer I would need to consider an approach that scales.

How many companies have similar requirements?

But that's actually besides the point.

Microservice architecture, or any architecture that focuses on isolated, asynchronous components, adds complexity. Of course.

But it also reduces work in other areas. If you build async, isolated services, you no longer have to deal with catastrophic service failure. Cascading failures go away at the async bound.

For many of us, I imagine we've spent a lot of time fighting fires at organizations where one service going down was a serious problem, causing other services to fail, and setting your infrastructure ablaze. Hence a bias towards solving that problem upfront.

comment 8y ago · link · parent

So what?

Site isolation is a huge win.

comment 8y ago · link · parent

What part of this attack is npm specific?

What feature of typescript would have prevented this?

comment 8y ago · link · parent

Every feature ends up being controversial. Every discussion ends up devolving, somewhere, with some group, into bikeshedding.

Ultimately, it's up to certain stakeholders to hear arguments and make calls.

comment 8y ago · link · parent

My point is that tons and tons of companies, with many billions of lines of code, do not have an easy option.

Plenty of the environment still has not moved over even outside of companies.

comment 8y ago · link · parent

> Yeah it is, choose 3. Python 2 is reaching EOL.

Easy to say. Tell that to Google and Dropbox - Guido has worked for both and they're on 2. Tell that to the companies that can't afford the creator of the language.

3 is not the easy choice.

Anyways, maybe try nim? I've heard good things.

comment 8y ago · link · parent

2 or 3? Or all of the problems that come with choosing between the two (no, it is still not an easy choice).

Mypy coverage, even in the stdlib, is awful. When it comes to thirdparty, mostly nonexistent. Mypy feels so young - I love the team, love their work, but I still run into cases where inference fails when it shouldn't, where error messages are extremely unhelpful, etc.

Slow.

Plenty of 'wat' like mistakes: https://stackoverflow.com/questions/3270680/how-does-python-...

Exceptions everywhere, for control flow even - iterators are implemented with exceptions.

Absolutely AOT unoptimizable. Pypy's cool, never got it working for my use case. In theory a JIT could help.

Speaking of calling out to C... you think you're writing in a memory safe language, but actually, you're writing in a memory safe language that's probably been hollowed out and replaced with a fast C implementation. But it's actually worse

https://hackernoon.com/python-sandbox-escape-via-a-memory-co...

Exploiting C code loaded by Python is like exploiting C code from the 1990s.

No parallelism. Multiprocessing? Good luck with that - pay the cost of pickling, pay the cost of an additional interpreter, pay the cost of debugging hell.

An ecosystem split in two, and don't let anyone tell you otherwise - a few hundred top packages moving over after many, many years, is a sad state for a language that was known for having an absurdly large ecosystem.

I could really just go on and on and on, but at some point it just feels mean.

Huge respect for the project and the team but Python has made mistakes (as all languages do). They were understandable mistakes, but they were mistakes. It's fine for some things, but there's plenty wrong with it, just like there's a ton wrong with javascript. But javascript gets probably 1000x the flack.

comment 8y ago · link · parent

Didn't take long for "we used shared libraries, and then found out we couldn't deploy independently". Sounds like you weren't quite doing microservices?
1
146147148
164