Avatar

freely

freely@lemmy.ml
Joined
2 posts • 5 comments

I write code and mess with computers.

Direct message

Most things in the various STD libs are namespaced as to not clash with other programs. using namespace imports everything in a namespace into your current namespace, even for things you didn’t include.

It’s just a shortcut to write less, and is a bad habit taught to beginners. It can cause name collisions for all sorts of things since it imports all of std, not just the headers you include.

Just don’t use it. If you insist, scope your use of using by putting it inside of functions/methods, and specify specific things to import (i.e. using std::string;).

permalink
report
reply

Good article, but the site’s colorscheme bothers me 🙃

Anyways, another to add to the list of hosts is https://codeberg.org/ It’s just Gitea but hosted for public use.

permalink
report
reply

Mycroft https://mycroft.ai/

I’ve been waiting to get the v2 model, but it’s taking so long I might make my own with a raspberry pi and their software.

permalink
report
reply

I thought they wrote their own STT engine? Guess it was a TTS though.

After looking it up I do see what you’re talking about though. They say they proxy everything so your IP doesn’t touch the Google servers. But I also see you can run your own Mozilla DeepSpeech & use that instead, which seems like a decent option. It’s just not the default.

permalink
report
parent
reply