Better HN
topnewbestaskshowjobs
Log inSign up

PudgePacket

1,336 karma · joined Jul 31, 2014 (12y ago) · 390 submissions

Submissions

comment 6y ago · link · parent

That's fair, many languages will only have Vecs, and will call them arrays, so it can cause confusion coming to Rust :)

comment 6y ago · link · parent

Sounds like you have both little experience with rust and didn't read the linked page.

Dynamically sized arrays have been in the standard library since day 1.

https://doc.rust-lang.org/stable/std/vec/struct.Vec.html

comment 6y ago · link · parent

Pretty sure only hn admins can edit a title.

154.

Files by Dan Luu – Deconstruct(deconstructconf.com ↗)

3 points · by PudgePacket · 6y ago · discuss

comment 6y ago · link · parent

It's actually really easy to read the svelte compiler output! You'll see exactly how it works :P

comment 6y ago · link · parent

It just had a major release :P any faster and people would be complaining about churn !

comment 6y ago · link · parent

... obviously not? :)

comment 6y ago · link · parent

How many of Netflix users can actually use 4k? I use firefox so I think 720 or 1080 is the max I can get .. nice

comment 6y ago · link · parent

Did a 6 person meet last night, all with video, and I was on firefox, worked fine.

comment 6y ago · link · parent

They're talking about both at different points..?

comment 6y ago · link · parent

Hopefully we've reconsidered the laws of mathematics in the last few years ...

https://www.newscientist.com/article/2140747-laws-of-mathema...

"“The laws of mathematics are very commendable, but the only law that applies in Australia is the law of Australia,” said Turnbull.

Turnbull’s comments came as he proposed a new law to force tech companies to give security services access to encrypted messages."

"The UK home secretary Amber Rudd has previously called encryption “completely unacceptable” and the UK prime minister Theresa May has said that the big internet companies give terrorists “safe spaces” to communicate."

Going to have to get over this first :/

comment 6y ago · link · parent

Understandable :)

comment 6y ago · link · parent

The HN title is abysmal, here is the one from the site:

A Woman With Lupus Said Her Health Care Provider Is Stopping Her Chloroquine Prescription And Thanked Her For The “Sacrifice”

Gosh title case is jarring to read sometimes :/

comment 6y ago · link · parent

Get them while you can. The only up to date/interesting courses are in learn premium. All the free ones are _years_ old and most just do not work in current versions of Unity.

comment 6y ago · link · parent

So, make 3 apps instead of 1? This was the whole idea behind PWA.

comment 6y ago · link · parent

Broadly I agree with you, though my personal opinion is that Svelte is also more pleasant to use, so it really only loses out to React in ecosystem. I've also used React for years and have used it much more than Svelte, so I may be biased from seeing all the warts of React.

Being small & fast enables real business use-cases that just weren't possible before, eg https://artemdemo.com/static/2f8acbe19c0ba4ec4d98e06e6b8fd85....

Billions of people around the world are coming online in recent years, and they're using budget $100, underpowered android phones. Every little difference in performance is magnified for them.

comment 6y ago · link · parent

Debugging the svelte compiled code is easy though, it has an order of magnitude less indirection and layers than equivalent React code. Ever got a stack trace in a react event handler? 30 stack frames. Svelte handler? 3.

This is one of the reasons Svelte is much faster than React.

comment 6y ago · link · parent

Why would they use Swift? It doesn't seem like the most fitting replacement for C level infrastructure.

comment 6y ago · link · parent

Could you expand on that a little? Bottleneck in what sense?

comment 6y ago · link · parent

Go to rust subreddit, sort by top for the month, read the top few blog posts every so often.

Otherwise, read through the blog posts listed in previous editions of https://this-week-in-rust.org/

comment 6y ago · link · parent

Off topic:

The comments system on the site is awesome, can't believe I haven't seen it before!

https://utteranc.es/

comment 6y ago · link · parent

There are only 535 members of congress. If you're good enough to be top 500~ in the country at something you could _probably_ make more money (lobbying/extra curricular excluded...) doing something else.

comment 6y ago · link · parent

I like netlify but it's weird how little them seem to do. They released analytics like a year ago and it's had almost no improvement/progress, lots of people on the forums clamoring for more and it just seems to fall on deaf ears.

I paid for the per-site analytics for a few months, the server side analytics means it captures much more of the traffic than client-side GA style, but the metrics available were just too basic for any real commercial use.

comment 6y ago · link · parent

If you don't need the money you're in a much stronger negotiating position and can get better deals vs being forced to raise and the investors having the upper hand.

comment 6y ago · link · parent

It's a tricky subject because everyone uses different definitions of "low carb". I've seen positions from dietary bodies that define "low carb" as less than 40% of your total caloric intake from carbohydrates, which is still a massive proportion.

That is why "very low carb" was introduced, obviously still not ideal.

For _me_, I'd say I eat very low carb, I aim for max 10-20g of total carbs a day.

Yes people tend to get stuck on "carbs" as a single entity and demonise it, which helps nobody.

My perception is most people on low/very low carb diets avoid as much processed food as possible, then get their remaining carbs primarily from non-starchy vegetables like broccoli, spinach, kale, etc.

comment 6y ago · link · parent

This is quite a neat strategy, leveraging elastic compute costs and kubernetes "self-healing". I'm surprised I haven't heard more about this kind of technique before.

I fully acknowledge this will only work in certain scenarios and for certain workloads, eg not ideal for long running/cache/database style services.

comment 6y ago · link · parent

just a sample: dropbox, cloudflare, canonical, sentry, atlassian, npm, ibm, xero

https://www.rust-lang.org/production

https://www.rust-lang.org/production/users

comment 6y ago · link · parent

There was an awesome talk very recently about Sled at FOSDEM, highly recommend.

https://fosdem.org/2020/schedule/event/rust_techniques_sled/

Talk breif:

sled and rio

modern database engineering with io_uring

sled is an embedded database that takes advantage of modern lock-free indexing and flash-friendly storage. rio is a pure-rust io_uring library unlocking the linux kernel's new asynchronous IO interface. This short talk will cover techniques that have been used to take advantage of modern hardware and kernels while optimizing for long term developer happiness in a complex, correctness-critical Rust codebase.

comment 6y ago · link · parent

I've heard lots of anecdotes from big sites doing fine with a small number of machines.

eg stackoverflow only has 1 active DB server, and 1 backup.

https://stackexchange.com/performance

comment 6y ago · link · parent

Other posters mentioned "restrict". Rust is able to basically use "restrict" on steroids because of how much more info has, so much so that it's brought up bugs in LLVM that are not fixed yet.

https://github.com/rust-lang/rust/issues/54878

1
567
13