Better HN
topnewbestaskshowjobs
Log inSign up

ReflectedImage

476 karma · joined May 12, 2020 (6y ago) · 570 submissions

Submissions

comment 3y ago · link · parent

Untyped languages work fine if you use them with microservices.

The only thing you can't do is have both untyped and monolithic at the same time.

comment 3y ago · link · parent

Well I already live in one. Everything I need is within a 15 minute walk.

Supermarket, Swimming Pool, 350 shops, 20 restaurants, train station, bowling, cinema, indoor golf, escape rooms, etc...

All in all, I kinda like it!

comment 3y ago · link · parent

Well due to recent changes by the UK Conservative government, it pretty much is a government funded media organization.

Something about broken clocks being right twice a day and all that...

comment 3y ago · link · parent

A lot of smelling requires your nose to actually be next to the floor. We don't exactly do that anymore.

comment 3y ago · link · parent

Because it's the responibility of their first jobs to teach them that stuff.

comment 3y ago · link · parent

Rust is really good at this sort of thing.

comment 3y ago · link · parent

Well Rust will replace C++ basically. It does C++'s use cases better than it.

It's not a Python replacement in any sense of the word.

comment 3y ago · link · parent

Cloud requires a giant team of people working on cost management for any none trivial project. You ain't saving headcount.

comment 3y ago · link · parent

China mines 50% of all bitcoins

comment 3y ago · link · parent

It's got the fastest development speed of the main stream languages. It's got a huge technical advantage.

comment 3y ago · link · parent

You say that but when actually measured typing triples both development time and bug count.

comment 3y ago · link · parent

Yeah, who would abuse a free service to store their personal files?

Data Block: c3828abe

c5cfe61f4e61c9eda05e39903df580566859708a52957754e06fd18feaceca5ec0cdcac4b24b0f9ac8d9f212301916ea9ebcb2e291e2e950e0118f150c8cde02 34e770773cb93d6f1b757098890475cb00bef5ca4275c51021118ac1f01b71db3604063fd945480afc6b6b5b8d125129f7a9813a4997bdea27bbe5f6c17abfeb f46309c93430f78d37d23c0ef646cf7796e6de2b072d771b35b832a5b5328d1c09c5d32eaf6309b3119e8468ed02f62cd4b25c6785792ec82edc72667da8e36e 3b7b0d22fd708f5a3ff4787bf9474f84dff52fe33a38f4b4fee6759498b38d2c3af01db8d3dc5b1bb1cf6d203f24a4f6016caf42ad5cac76d1b0a0bf01a435b0 54a288c7cf9859dde401af51685eef23661ff0102a94caab2df9bf298c07538885baec81576513b9a7591d429db24b221c071cf0d929308243b0af4535810052

comment 3y ago · link · parent

Rust imposes a lot more constraints than just what is needed to make it safe. It imposes constraints to make it provably safe according to Rust's internal theorem prover.

I'm not convinced Rust & C++ have as much in common as you think. Rust is really familar to OCaml or Haskell users.

comment 3y ago · link · parent

I'm not so sure that C++ gives an advantage. It's a different paradigm.

comment 3y ago · link · parent

When you are using a duck typed language, the overwhelming majority 90%+ of errors are logic errors.

comment 3y ago · link · parent

Just finished my learning Rust project (very basic version of minecraft). It's great for writing highly parallel high performance code.

At no point was the memory of my program ever replaced with the number 53 nor did memory become corrupt due to multiple threads accessing the same areas at the same time. Much better than C++.

Did my Rust project suddenly contain no errors or did it never crash? Well no. How did it crash?

Array indexing (called default instead of new which created an invalid version of the struct)

Infinite loop (logic error causing it to add the result each loop to the input vector rather than the output vector).

That said Rust is almost certainly going to kill C++. It's a lot better.

comment 3y ago · link · parent

That's really a question for Google or Stack Overflow.

One source would be: https://www.oreilly.com/library/view/code-complete-2nd/07356...

comment 3y ago · link · parent

Leaving joke languages aside, it is very much true. If you use less lines of code to implement a software feature, the software feature will on average have less bugs.

Programmers write bugs per line, something like Python which only uses 33% of the lines and thus contains only around 33% of the bugs. On the other hand, if you go down the prove things are correct at compile time you will eliminate around 5% of the bugs.

So you can choice between eliminating 67% of the bugs by making the language simpler to use or 5% of the bugs by doing formal checking.

comment 3y ago · link · parent

"AWS for $1k a month" hahaha. People spend $90k on AWS by accident.

comment 3y ago · link · parent

It won't because the number #1 factor in bugs is the number of lines. The Python code will be significantly shorter and thus contain less bugs.

comment 3y ago · link · parent

The first hit of cloud is free but once they have you hooked they charge an arm and a leg afterwards.

comment 3y ago · link · parent

It's much better than Java, Kotlin and C#.

The borrow checker detects the majority (~95%) of concurrency problems. We don't have that many single core CPUs lying around anymore.

It's got a story on high performance, high concurrency programs which is significantly better than anything else I've seen so far.

comment 3y ago · link · parent

Well Python code will on average will be more correct than Rust code.

I'm not sure why you feel Rust code would be more correct than Python code but it certainly isn't true.

comment 3y ago · link · parent

Python is a typed language, Duck typing is a more advanced version of static typing.

comment 3y ago · link · parent

Go write a FastAPI based Rest service which talks to PostgreSQL via SQLAlchemy.

Then set up some compete workers that read in jobs from a RabbitMQ queue. Have the Rest service add jobs to the queue and get back the results.

Also you can just read the official Python tutorial for learning stuff like with contextmanager.

comment 3y ago · link · parent

Rust does a bit more on the safety front than typical programming languages.

comment 3y ago · link · parent

It will be 25x gain on average and your development costs will triple. Is that worth it? Depends on what you are building....

comment 3y ago · link · parent

As long as you know what you are doing Ruby won't leave you with more technical debt than Go or Rust.

How many people know how to effectively program in languages like Ruby is another question altogether...

comment 3y ago · link · parent

That's in the C / C++ / Rust bucket due to the typing system.

comment 3y ago · link · parent

If you are writing high performance code use Rust. (Slow development times, high performance)

If you are writing a typical business application use Python. (Fast development times, low performance)

Or if you want to be clever do a hybrid of both. Create Rust modules for your Python code.

This is just about selecting the right tool for the right job.

1
8910
19