Better HN
topnewbestaskshowjobs
Log inSign up

PudgePacket

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

Submissions

comment 7y ago · link · parent

> The extreme low level control that C++ offers and powerful metaprogramming allows for performance that even Rust cannot hope to rival.

Could you expand on this? It's a pretty strong claim.

LLVM produces very fast code and is very commonly used for c++ compilation. Rust also has access to the usual low level control suspects, inline asm, manual memory layout & operations, pointer shenanigans etc.

Benchmarks are never perfect but they show that rust in usually within the ballpark of c++, if not comparable: https://www.reddit.com/r/rust/comments/akluxx/rust_now_on_av....

comment 7y ago · link · parent

Magical disappearing makes it sound like a cheap parlor trick.

comment 7y ago · link · parent

https://github.com/BurntSushi/ripgrep#is-it-really-faster-th...

comment 7y ago · link · parent

You're not wrong, it's a combination! Yes, faster than grep, yes "ooh shiny rust", + "ooh shiny" in general, used as the search function in the most popular editor (statistically, for users of stackoverflow) (https://insights.stackoverflow.com/survey/2019?utm_source=so...).

More "technical" reasons here: https://github.com/BurntSushi/ripgrep#why-should-i-use-ripgr....

For me, the performance is best in class, ux is great, and has defaults that make sense.

Perhaps this helps add context. Every day there are probably thousands of new people learning to write software and learning and command line search tools. They would compare grep, and perhaps something like ripgrep on how they stack up today. They probably don't want to search their javascript dependencies by default (from gitignore, eg node_modules). They probably don't want to search their build (binary/gitignore). They would like to have an easy way to say "only search javascript files" or "only search go files". They would like the fastest tool for the job, why would you opt for the slower one? None of greps historical clout/muscle memory has an impact on them. They would probably appreciate coloured, formatted for easier human consumption output by default.

Sorry for the rant!

comment 7y ago · link · parent

I guess they're going after the people who don't need a db first, then add features to support some kind of "db-lite" functionality later. They're competing with wordpress/squarespace, not gcloud or aws (mostly..) :)

See addons: https://www.netlify.com/products/

Also services like this allow you to have a "cms" which is the typical use of a db for _most_ websites: https://www.contentful.com/.

You are correct, heavy db users probably wouldn't go with a service like this :)

comment 7y ago · link · parent

Honestly? Most internet sites don't _need_ a database. You could probably replace most* wordpress/squarespace/wix sites with a statically generated site.

You can call api's from JS and host your database separately, also possible that people use some kind of "serverless" database like google firebase.

comment 7y ago · link · parent

Firefox extensions are just JS executed in a sandboxed runtime though..

By that logic you could argue webpage's JS are downloadable plugins that modify the behavior of the browser while it displays HTML content :)

comment 7y ago · link · parent

Yes. This is just the officially sanctioned way.

comment 7y ago · link · parent

Some people prefer automatic updates. It didn't used to criple the running browser process after an update, that change is very recent.

Restore session doesn't help if you're in a private session.

Also you may be in the middle of actually using your browser for thing that you don't want to interrupt, a game, an online application, anything really..

comment 7y ago · link · parent

Also a little stumped by this choice. It didn't used to be this way even just a month or two ago.

Quite inconvenient.

comment 7y ago · link · parent

That's not a super strong argument.. Visual Studio -> Azure Code Studio, TypeScript -> AzureScript, Windows -> Azuredows.. (Only a little tongue in cheek )

comment 7y ago · link · parent

Chrome and Firefox have the same extension format, it's probably only 10 minutes to get it on Firefox too!

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...

comment 7y ago · link · parent

No worries.

comment 7y ago · link · parent

> Posted on March 7, 2015

comment 7y ago · link · parent

Having issues in Sydney :)

comment 7y ago · link · parent

https://caniuse.com/#search=webgl2

It's supported in safari, currently gated behind a setting though.

comment 7y ago · link · parent

Exactly ! :)

comment 7y ago · link · parent

Some competitions like this only give you a certain amount of "cycles" per turn, so hand written solutions would have an "advantage" in that sense.

I don't know if that method is applicable to this particular game though, since the processing is done by the user.

comment 7y ago · link · parent

Don't think the "never" default arm is necessary. If the return type is set and you miss a case TS should complain.

comment 7y ago · link · parent

If you lose wifi will you be unable to take your shoe off ?

comment 7y ago · link · parent

https://github.com/Microsoft/TypeScript/commit/d3b7058c2999f... over a year.

comment 7y ago · link · parent

You point out issues that are already solved. It's a people problem you have now :) no amount of configuration is going to fix that.

Also strict has been the default for quite a while!

comment 7y ago · link · parent

Damn, a sweeping generalisation if ever I've seen one. Are all the people using c++, java, haskell just mediocre devs because they like the safety brought by a type system over lisp or python? Microsoft, Facebook, and Google all wrote either a type system over JS or a JS alternative because of the problems they faced with vanilla JS. Facebook is even doing both ‍️.

Perhaps spending some time looking at how certain libraries write their type definitions will help you learn how to use them, if you're constantly fighting you are probably missing some fundamental concept that TS operates with. TS has also gotten much better at expressing more complex types over time and there are still more things on the roadmap.

For me TS only grows more useful as the size of the codebase increases. It allows safe refactorings you could only dream of in a large JS codebase.

comment 8y ago · link · parent

> It is almost never okay for a library to abort the process.

For a library with a design principle to be as hard to misuse as possible it seems like the right decision, and the "exception to the rule".

Infinitely better to crash than to potentially let the process/library run in some kind of degraded state.

If you are aware of this behaviour and are savvy/experiences enough you'll either 1) Catch the panic and perform an appropriate library 2) Use a different library.

comment 8y ago · link · parent

I've used stackoverflow for years and have never heard it put like that.

"Stack Overflow ultimately has much more in common with Wikipedia than a discussion forum. By this I mean questions and answers on Stack Overflow are not primarily judged by their usefulness to a specific individual, but by how many other programmers that question or answer can potentially help over time."

Personally I would have been much more understanding of the process of using stackoverflow if I knew this, and so would many of the people who get stung expecting an answer to their question.

In reality the user is contributing their question to the community, not asking a question in the traditional sense. That's my take anyway.

comment 8y ago · link · parent

From memory one of the issues on github says it's coming in 2.1. It just wasn't determined to be a "blocker" for 2.0.

comment 8y ago · link · parent

Does it support running as a gRPC server?

comment 8y ago · link · parent

You're argument doesn't really make sense. Not all abstractions are workarounds for "unsafe" things. For example, unsafe is needed for dealing with the OS, no amount of abstraction will help you there. At some point you must talk to and accept memory that another process (OS) tells you is correct. I'm not so knowledgeable in Rust so I can't say definitely, but I think you should back up your statement with some (any) examples.

comment 8y ago · link · parent

They had other issues earlier this week too. Doesn't help that their status page hasn't been updated in a year :D https://twitter.com/trentbillington/status/99882216803616768....

comment 8y ago · link · parent

From the way the title is phrased it sounds like the servo team is leaving servo to work on mixed reality, quite misleading.
1
910111213