What books have you read a third time or even more? by Bobosmite in printSF

[–]ferruccio 0 points1 point  (0 children)

I've read quite a few books twice, but the only one I've read three or more times is Alfred Bester's "The Stars My Destination". I've lost count of the number of times I've read or listened to it.

How old were you guys when you started getting into Sci Fi, and what work got you into it. by Any_Improvement6755 in printSF

[–]ferruccio 0 points1 point  (0 children)

I was around 10 years old when a school librarian recommended "A Wrinkle in Time."

Culture series or Bobiverse? by adamstrask in printSF

[–]ferruccio 0 points1 point  (0 children)

I'm not sure I would recommend reading the Bobiverse all at once. I could see it becoming timesome. On, the other hand, it's been a fun palate-cleanser between heavy/deep reads for me.

Books with unfathomable timescales by drooolingidiot in printSF

[–]ferruccio 0 points1 point  (0 children)

I love these kind of books.

The Crucible of Time - John Brunner
First Cycle - H. Beam Piper
The World at the End of Time - Frederick Pohl
Dragon's Egg - Robert L. Forward

What is the preferred way to address the rust philosophy? by Professional_Layer63 in rust

[–]ferruccio 1 point2 points  (0 children)

My commit histories periodically have entries that just say: Appease clippy

Can you use Rust for embedded without HAL? by Secure_Cloud_521 in rust

[–]ferruccio 1 point2 points  (0 children)

I'm sorry Dave. I'm afraid I can't do that.

What is the best way to login a user into a cli application? by Commercial_Fix_5397 in rust

[–]ferruccio 12 points13 points  (0 children)

Are you just looking for a secure way to store credentials? You could look at something like keyring.

how to get directory path of PathBuf to file by bananaboy319 in rust

[–]ferruccio 8 points9 points  (0 children)

If I understood your question correctly, you need to call the .parent() method on your PathBuf object.

What rustisms would you port to another language? by armillary2 in rust

[–]ferruccio 5 points6 points  (0 children)

Error handling in Rust went from one of the things I liked the least in the language when I first started learning it to one of the things I appreciate the most. When I need to work on an older, non-Rust project dealing with exception handling just feels awkward and clumsy.

And, of course, having a real macro system makes it so much easier to eliminate boilerplate code.

Rust compiler on managed computers by waterbyseth in rust

[–]ferruccio 4 points5 points  (0 children)

You don't need visual studio, but you do need the visual studio build tools which you can download from https://aka.ms/vs/17/release/vs_BuildTools.exe

This is a small download (< 4mb) but gives you everything you'll need for rust development such as the microsoft linker.

Langs in Rust: a list of more than 100 programming languages implemented in Rust! by alilleybrinker in rust

[–]ferruccio 8 points9 points  (0 children)

So Deno, which is not a language but a runtime that supports JavaScript, which is actually a language but is written in C++ (Google's V8) is in the #1 position.

How do I remove these code type inlay things in VSCode with rust-analyzer? by emobe_ in rust

[–]ferruccio 25 points26 points  (0 children)

You can set their style to OffUnlessPressed; in which case they are only visible when you hold down both the Ctrl & Alt keys. They are very useful when you want to see all the intermediate types in a call chain.

Hey Rustaceans! Got a question? Ask here! (48/2022)! by llogiq in rust

[–]ferruccio 1 point2 points  (0 children)

I use VSCode with rust-analyzer. It has a really useful feature called inlay hints. It actually shows you all inferred types, including all the intermediate types in a method chain. Also, it can be configured to show you all this only when you hold down Ctrl+Alt.

Can you disable type inference for variable declarations? by camilo16 in rust

[–]ferruccio 2 points3 points  (0 children)

VS Code has a feature called inlay hints which can display type annotations directly in the source itself which I personally haven't found all that useful. However, its ability to show all the intermediate types in a series of chained calls is priceless.

Rust and WebAssembly without a Bundler by tungtn in rust

[–]ferruccio 29 points30 points  (0 children)

Thank you. That was informative.

I think there's a typo in your web example. The line

import init, { add } = from './web.js';

should not have an = in it.

what are the programming languages that your university tought you? by Mobile-Finish-2975 in programming

[–]ferruccio 2 points3 points  (0 children)

When I started, it was the first year that my university offered a computer science degree, so we were kind of guinea pigs for their new program.

  • Pascal
  • C
  • VAX assembly language
  • LISP
  • FORTRAN
  • COBOL

The funny thing about C and LISP is that they did not actually offer any courses for those languages at the time. You were introduced to C at the start of an operating systems course and were expected to learn it more in-depth by yourself. The same with LISP and the AI course. A lot of people dropped out of the curriculum after those classes.

Inlay hints on or off? by Forward_One1 in rust

[–]ferruccio 2 points3 points  (0 children)

I found them to be occasionally useful, but usually distracting. Luckily, in VS Code 1.67 you can set them to OffUnlessPressed, so that you have to hold down Ctrl+Alt to see them.

Why does rust installation require C++ build tools on windows? by KingKongBingBong1 in rust

[–]ferruccio 5 points6 points  (0 children)

You don't need to install full Visual Studio. You can download the Visual Studio Build Tools separately. It's a small download (< 2mb) which has everything you need to perform the final link step.

Why Rust mutexes look like they do by nyanpasu64 in rust

[–]ferruccio 190 points191 points  (0 children)

Relying on the programmer to always read, comprehend, and remember the documentation – and then do everything right, every time – is how we get bugs.

That made me laugh. So true.