[-] [email protected] 9 points 7 months ago

On an unrelated note, don't forget to sanitize your input.

[-] [email protected] 9 points 10 months ago

fs::exists() was a nice little improvement that I didn't know about until I read this announcement.

[-] [email protected] 9 points 1 year ago

This is obvious for people who understand the basics of LLM. However, people are fooled by how intelligent these LLM sounds, so they mistake it for actually being intelligent. So, even if this is an open door, I still think it's good someone is kicking it in to make it clear that llms are not generally intelligent.

[-] [email protected] 9 points 1 year ago

Exactly. I appreciate the "What’s Gleam" section, but I would also like to see a "Why Gleam?" section.

137
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]

TIL: Sweden had February 30 in 1712 https://en.wikipedia.org/wiki/1712_in_Sweden , so I decided to see how chrono handled that.

use chrono::TimeZone;
use chrono_tz::Europe::Stockholm;

fn main() {
    let feb30 =  Stockholm.ymd(1712,2,30);
    println!("Date: {:?}", feb30);
}
 target/debug/feb30
thread 'main' panicked at /home/snaggen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chrono-0.4.34/src/offset/mod.rs:252:40:
No such local time
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Result (as expected): Not well! 😄

I also tested Java with

ZonedDateTime feb30 = ZonedDateTime.of(1712,2,30, 0,0,0,0, ZoneId.of("Europe/Stockholm"));

with simmilar result

java.time.DateTimeException: Invalid date 'FEBRUARY 30'

So, lets take a minute of silence for all the programmers of history related software, may the spagetti monster have mercy on their souls.

20
submitted 1 year ago by [email protected] to c/[email protected]

Great to see FIPS support for Rustls, will probably help for government related projects and such.

26
submitted 1 year ago by [email protected] to c/[email protected]
[-] [email protected] 9 points 1 year ago

This is very interesting. I hope someone write an indepth review regarding features and performance, compared to the competition. I wonder why they went with openssl instead of rustls, it is not like OpenSSL have the best security reputation.

26
submitted 1 year ago by [email protected] to c/[email protected]

Always interesting to hear experiences from larger projects. It addresses the myth about Rust slowing down development (TL;DR: it doesn't), and a bit about async and scientific rust.

28
submitted 1 year ago by [email protected] to c/[email protected]

I found this page, and thought it might be worth sharing. It helped me find AreWe* pages I didn't know existed, like https://areweideyet.com/ to get an indication about the state of IDEs for rust.

27
Asynchronous clean-up (without.boats)
submitted 1 year ago by [email protected] to c/[email protected]
10
submitted 1 year ago by [email protected] to c/[email protected]
5
submitted 1 year ago by [email protected] to c/[email protected]
12
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
33
submitted 1 year ago by [email protected] to c/[email protected]
14
submitted 1 year ago by [email protected] to c/[email protected]
21
submitted 1 year ago by [email protected] to c/[email protected]
[-] [email protected] 9 points 2 years ago

All these services turning into shit, are the services without a viable business model to begin with. What I find interesting is that it is obviously possible to become leading in a field, just by burning investors money.

[-] [email protected] 9 points 2 years ago

The reason might be, that you must think a bit different from C++ so it might be a little bit tricky to do the switch. Thouigh, if you know C++ the ownership and stuff should be a bit easier to understand since you probably can figure out what is going on. The reason I learned Rust in the first place was because I had to use C libraries, and I knew rust had good support for that. But, unfortunately I cannot assist you with alternatives to rust, since I stopped looking after I learned rust. 😄

[-] [email protected] 9 points 2 years ago

When you compare "idea to deployment" speed, a dynamic language will always win. However, much of this win is due to a dynamic language will let you deploy with a lot of bugs. So, you will then have to spend lot of time fixing production issues. Rust will force you to fix most of these issues before you can deploy, hence it feels slower in this aspect. I previously worked for 10 years with a huge perl code base, and I trade the deployment speed for stability in production any time.

[-] [email protected] 10 points 2 years ago* (last edited 2 years ago)
[-] [email protected] 9 points 2 years ago

Also, MS pays computer makers to preinstall Windows.

[-] [email protected] 9 points 2 years ago

I do not block ads. I however use Privacy Badger to block tracking cookies, which means that I don't see ads. I will see all ads that are not tracking me, which seems to be none. Is protecting my privacy also piracy?

[-] [email protected] 9 points 2 years ago

It is possible to have an active discussion in a civil tone. What they promote is conflict, that is not the same as activity.

view more: ‹ prev next ›

snaggen

0 post score
0 comment score
joined 2 years ago