News for hackers. Stuff that matters.

ronlobo

Re:C2rust: Transpile C to Rust on Tuesday February 01, 2022 @07:50PM (#30172043)
Promising!

Has anybody incorporated an AI into c2rust to do the heavy lifting and learning from the compiler errors to self fix the transpiled code?

Re:This Can’t Go On on Tuesday August 03, 2021 @07:21PM (#28055478)
I agree. The book "Factfulness" by Hans Rosling is an excellent read about the topic.

Yes, growth in economy and population can go on and will likely result in an S-bend curve in the distant future.

Just AI transpile to Rust: problem solved :D

No seriously, AI will take years to understand the context.

Coding is more about capturing real world knowledge into a functional program. It involves so much learning about how to translate processes, workflow and regulations into a binary that it seems naive to have an AI code generation tool we even can't understand.

Please read this and make up your mind:

https://thebulletin.org/2021/05/the-origin-of-covid-did-peop...

The WHO can't be trusted unfortunately.

Re:Setting up your own Nextcloud instance to get off of Google on Saturday December 19, 2020 @09:09PM (#25483233)
They even had to come up with their own security scanner (https://scan.nextcloud.com/). I assume because they don't even trust their own code mess or cause you can f-up your PHP conf in so many ways that your server becomes vulnerable.
Re:Setting up your own Nextcloud instance to get off of Google on Saturday December 19, 2020 @08:22PM (#25483013)
Yeah it is, don't use it.

All the advancements on PHP are great, it's becoming a JAVA more and more, but likely any PHP legacy apps will never see an upgrade to the latest version. And starting a new project in PHP, nah, there are better more well designed programming languages.

Re:TimescaleDB vs. Amazon Timestream on Thursday December 03, 2020 @07:37AM (#25288249)
Timescale is what you want to go with in case of RDMSes with audibility in terms of change management over time.

It is the THING.

Thanks the timescale team for making this happening!

Re:UN votes to remove cannabis from strictest drug category on Wednesday December 02, 2020 @04:46PM (#25282087)
The vote was actually quite close, 27:25, which means there are still 25 people that don't get it.

At the end of the day, the rulers realized that there is a huge market and billions to be made in this industry.

Re:Why AWS loves Rust, and how we’d like to help on Tuesday November 24, 2020 @03:44PM (#25202827)
That's great news and will contribute further to Rusts' adoption.

Large codebases will be able to transcode to language X at some point in the future and I am waiting for the day when it can be done for Rust with projects like https://github.com/facebookresearch/TransCoder/

Wondering if Huawei routers have backdoors backed in as well...
Re:The Newtype Pattern in Rust on Monday November 09, 2020 @06:24AM (#25033623)
Pretty cool, thanks for putting this together!
Re:Names are not type safety on Monday November 02, 2020 @10:24PM (#24976002)
Very interesting read, thanks for putting that together.

I am wondering how these ideas relate to "value objects", a term formed many years ago via domain driven design.

Re:Zheap – Reinvented PostgreSQL Storage on Tuesday October 13, 2020 @03:39PM (#24769421)
Look no further, after playing around with TimescaleDB, there are no updates anymore and we can put this problem into a vacuum :)
Pretty cool, thanks for putting this together!
Re:How to create a video call application with WebRTC on Monday June 15, 2020 @08:41AM (#23526671)
Pretty cool!

Check out

https://github.com/meething/meething

dWebRTC Video Meetings MESH/SFU hybrid using GunDB, MediaSoup and Beyond!

This seems to be one of the most promising projects in the WebRTC space with support from Mozilla Builders.

Re:A look at modern PHP on Tuesday May 05, 2020 @11:32PM (#23087658)
I agree to the point you're mentioning industry standard. PHP is not considered in the enterprise environment, simply for all it's flaws and it's security vulnerabilities and still has the same problems as before. Most languages don't have those problems.
Re:A look at modern PHP on Tuesday May 05, 2020 @10:45PM (#23087468)
Hey Lawrence,

Thanks for this detailed comment and the historical background, it is very informational!

Re:The Safety Boat: Kubernetes and Rust on Saturday May 02, 2020 @09:09PM (#23056124)
It is exciting to see Microsoft is pushing so many efforts into Rust and WASM.

The Rust onboarding experience is incredibly explicit and once things start to click and code compiles, you're on the train.

Re:Prisma 2.0 Beta: Type-safe Database Access on Tuesday March 31, 2020 @10:55PM (#22745151)
Makes sense, non-type-safe language, we can push type safety guarantees to the persistence layer by coupling the domain models to the type-safe data models.
Re:Secure by Design on Monday March 23, 2020 @10:05AM (#22664204)
Agree, strongly typed languages are best suited for this as it usually allows to embed business domain invariants into the type system which can be checked at compile time.

Rust does a great job in that regard and is not too slow.

Re:You’re better off using Exceptions on Monday February 03, 2020 @12:22PM (#22226340)
Interesting article, also very F# specific.

A similar approach with type aliases (to be moved to value objects or structs with behaviour aka rich models) in Rust.

```rust type Amount = u128; type MoneySign = Option<Sign>; type Precision = u8; type CurrencyIsoCode = &'static str; type CurrencyName = &'static str; type Currency = (CurrencyIsoCode, CurrencyName); type Money = (Amount, MoneySign, Precision, Currency); type Balance = (Money); type ExpirationDate = &'static str; type MoneyWithdrawalError = &'static str;

enum MoneyWithdrawalResult { Success(Money), InsufficientFunds(Balance(Money)), CardExpired(ExpirationDate), UndisclosedFailure(MoneyWithdrawalError), } ```

Re:Building all of our new mobile apps using React Native on Wednesday January 29, 2020 @12:09PM (#22182953)
Curious to hear more about their deep dive into Native, Flutter and React Native as possible technology choices.

Hopefully, React Native is not a nosedive ;)

Re:Typesense: Open-Source Alternative to Algolia on Wednesday January 29, 2020 @11:50AM (#22182647)
Pretty cool, how does it compare to the Rust pendant https://crates.meilisearch.com/
Re:Speeding Up the Rust Compiler on Wednesday December 11, 2019 @09:57AM (#21762897)
Haha, nice pun there!
Re:Firefly III – Self-hosted financial manager on Monday September 09, 2019 @08:44AM (#20917568)
Haha, didn't expect anything else with the stack.
I am wondering when the EU is finally giving this BS a fine.
Re:Show HN: Expensive Chat – Pay one cent per letter on Thursday February 28, 2019 @10:19AM (#19271881)
Epic :D
We should sue those
Re:Ask HN: What CI tool do you use in 2019? on Saturday January 05, 2019 @01:18PM (#18833206)
Distelli (now puppet pipelines) let's you run as many builds as you want on your own hardware.

https://puppet.com/blog/welcome-distelli-to-puppet-family

Re:Electron 4.0.0 on Friday December 21, 2018 @12:09PM (#18734661)
Nice!

Has anyone played around with flutter.io? Is it similar to electron?

Older »