257m

joined 1 year ago
[–] [email protected] 11 points 1 year ago (4 children)

For navigating files quickly fzf is pretty much crucial to my workflow. Being able to get my home directory to the directory of the project I want to work on in two seconds flat is such a nice feeling after manually typing the path in for months. https://github.com/junegunn/fzf

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Perhaps garbage collection is the wrong term to use as it dosen't happen at runtime (I wasn't sure what other term to call what Rust does). But Rust does provide a abstraction over manual manual memory management and if you are experienced with Rust sure you can probably visualize where the compiler would put the malloc and free calls so it is kind of a mix where you do technically have control it is just hidden from you.

Edit: It seems the term is just compile-time garbage collection so maybe you could consider it falling under garbage collection as an umbrella term.

[–] [email protected] 5 points 1 year ago (2 children)

Can't use bottom because for some reason phone manufacturers decided to remove physical home keys and just have virtual ones. Whenever I try to click or swipe at the bottom of my screen I end up hitting it.

[–] [email protected] 5 points 1 year ago (2 children)

I think this is just google sheets.

[–] [email protected] 1 points 1 year ago

w3m is nice in terms of text based browsers although it can't run javascript

[–] [email protected] 3 points 1 year ago (1 children)

Essentially although there are a few key differences:

  • In Rust there always only one owner while in C++ you can leak ownership if you are using shared_ptr.
  • In Rust you can borrow references you do not own safely and in C++ there is no gurantee a unique_ptr can be shared safely.
  • In Rust, A lot more compile time optimization for the borrow checker is available whereas in C++ the type system dosen't always let the compiler know for sure when an object goes out of scope, is moved, or is destroyed and so you miss out on a lot of optimization that would be trivial with Rust like syntax.
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

If you want to train your neural nets you can maybe check out: https://github.com/rust-ml/linfa https://github.com/param087/swiftML (Rust seems to have more active support in terms of libraries)

If you want to integrate ML into an IOS/MacOs app: https://developer.apple.com/documentation/coreml

For userland apps Swift would be better and for training or just being generally being more useful in the future go for Rust.

At the end of the day just choose the language that is more enjoyable for you.

[–] [email protected] 11 points 1 year ago (5 children)

Other than having first class support on Apple's hardware Swift dosen't have much going for it. There is no killer feature in Swift, it dosen't widespread features and it only has a small niche. If you want to develop for mainly Apple devices I would say go for it as that is the niche it was designed for. Although I see from your post you want to do ML, Python for the high level stuff + C++ for the low level stuff is probably your best pick for that. May I ask what type of ML are you going for? Are you mainly using libraries like Tensorflow, Pytorch etc... or are you into the nitty gritty of building these things yourself and writing the required code for the matrix math and training algorithms.

[–] [email protected] 3 points 1 year ago

My bad, I should have been more specific in my post. I was talking in the context of software which in most music players has the pause and play buttons occupying the same space. On physical devices such as dvd player I obviously consider the pause button as "to pause" and the play button as "to play"

[–] [email protected] 3 points 1 year ago

The code is produced by the compiler but they are not the original source. To qualify as source code it needs to be in the original language it was written in and a one for one copy. Calling compiler produced assembly source code is wrong as it isn't what the author wrote and their could be many versions of it depending on architecture.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

By excluded he means macro assemblers which in my mind do qualify as an actual langauge as they have more complicated syntax than instruction arg1, arg2 ...

view more: ‹ prev next ›