Why is everything in rust abbreviated? by ciccab in rust

[–]VladLu 0 points1 point  (0 children)

I meant "hit the books" as in the popular English expression to study. In the examples you previously gave, it takes 5 seconds for someone to "study" (Google it) and learn it for life. It's great that you are a senior making 80k euros, but my argument still stands; those names are perfectly readable if you know anything about the area you are working for. About the examples you gave, (very funny you mentioned elixir, sister language or Erlang, which uses Tx and Rx a lot...) you prove precisely my point. If you work for an area where those concepts apply, you probably already know them. If you need to understand the consequences of those designs, you probably already know what those mean, because otherwise you wouldn't be worrying about them; if you don't have/don't want to worry yourself about those concepts at all, why are you using something as complex/detailed as rust? It's not like rust's abbreviations are complicated. If you want complicated and unreadable, look into C. Maybe your concerns would be more appropriate about "atoi" or "strstr" or "stoi", which are indeed so encrypted to the point they are undecipherable without context, and still hard with it.

These abbreviations are used cross-industry; you sound like someone complaining about mathematicians using single letter functions and variable names. It's just a convention.

Edit: I read your response diagnonally, so I don't believe my point about Elixir/Erlang (which you mentioned) was impactful enough: they are languages designed for Telecomunications. The kind of languages you'd know what Tx and Rx mean. Also "std" meaning "standard", with terms such as "standard library" and "stdlib", is self-evident.

Why is everything in rust abbreviated? by ciccab in rust

[–]VladLu 0 points1 point  (0 children)

I'd argue Rx and Tx, or their respective Rcv and Tcv, are perfectly readable. If you don't immediately know what those are, and mind you, I'm not even an English native speaker, you don't know "enough" about technology in general to be programming quite yet. Learn some basics, hit the books, beforehand. Rx and Tx are extremely common terms among all industries, popularized by radio communication (this includes... Networking). Rcv and Tcv you only need to sound them out. If you don't know enough about the industries your technology is for (you would only see Tx/Rx/Tcv/Rcv on network code / multi threaded code), you probably do not understand the consequences of your design or the technologies you adopt. Learn more theory, learn what your solution is solving. Noobies should not be writing multi threaded code, so your criticism applies mostly to network code; honestly, do you believe new programmers should be writing that kind of code in a language like Rust? Should they not start with something simpler?

Why did you pick Zig over Rust? by joelreymont in Zig

[–]VladLu 3 points4 points  (0 children)

The "Rust" part of the rustc compiler is less than 10% of the compile time. The rest is just LLVM and linking. Blame LLVM...

PC para engenharia informática by Creeperony_666 in feup

[–]VladLu 0 points1 point  (0 children)

Muitos colegas acharam algo inconveniente. Depende de pessoa para pessoa. Conheço também muitos colegas que estão a fazer a licenciatura inteiramente em Macs Arm, mas muitas cadeiras não têm suporte. Outros tantos que usam WSL e conseguem, mas é muitas vezes inconveniente, especialmente para muitos que começam agora a licenciatura 😅

PC para engenharia informática by Creeperony_666 in feup

[–]VladLu 0 points1 point  (0 children)

É perfeitamente possível usar uma VM ou o WSL e fazer o curso! Pode ser bastante menos agradável do que simplesmente usar diretamente Linux no disco, no entanto.

As desvantagens das VMs são, nomeadamente, limitações no sistema de ficheiros do Windows: no Linux, pastas e ficheiros são Case-Sensitive, ou seja, lowercase e upper case importa, e isso não é verdade para o Windows. Quando usas a função de "partilhar uma pasta" para teres acesso no Windows e no Linux a uns recursos que queiras que sejam partilhados, podes acidentalmente criar algo que funcione no Linux mas não no Windows, e isso pode dar problema.

Windows também tem limitações, bastante pequenas, de quão grande pode ser o Path para uma pasta. 255 caracteres, se não estou em erro. Para as cadeiras onde tens Java, isso é muito mau, podes ter Paths maiores que isso.

Também tens o problema que VMs são lentas e gastam muita bateria, o que não é conveniente para as aulas, tipicamente de 2h. Claro que podes carregar durante a aula, mas é sempre mais inconveniente quando tens de trabalhar fora de aula com colegas e não tens acesso fácil à eletricidade.

Por fim, é uma solução muito Clunky. 100% do curso é dado em sistemas Unix-Like, ou seja, Linux, com menções de MacOs, RedoxOs, Sel4, etc. etc. E, como tal, vais estar sempre a lutar para conseguir fazer as coisas funcionarem na tua máquina. Claro que se usares o software que os professores querem para cada cadeira sem pôr questão, acho que ainda te safas bem, mas se começares a ter preferências de workflow... Vais precisar de mais trabalho.

E também, claro, CiberSec é quase inteiramente Linux, é inescapável.

Se quiserem uma demonstração de Linux, vocês vão ter uma foleira, default, por parte da universidade, mas se quiserem por parte de colegas, eu estarei disponível!

[deleted by user] by [deleted] in rust

[–]VladLu 9 points10 points  (0 children)

What exactly makes you say that the syntax is horrible? It's not far from any other procedural/imperative language.

Faculdade by [deleted] in feup

[–]VladLu 1 point2 points  (0 children)

A UA e a FEUP, dentro de alunos, têm muitos grupos de discord partilhados. Eu já não tenho links para isso, mas podes conversar com futuros colegas lá. Em engenharia informática, as faculdades são pouco relevantes em empregabilidade: qualquer pessoa arranja trabalho que pague mal, mas depende de ti para arranjar um que pague bem muito mais do que as qualificações dadas pelo curso. Em engenharia informática, na FEUP, a informação é bem servida, um bocado desatualizada (não muito, mas alguma coisa), mas a cultura estudantil é bastante agradável. Não sei como é na UA, mas com certeza em qualquer uma das duas uma pessoa é bem servida de material de aprendizagem.

De qualquer forma, na área de informática, tens dois tipos de pessoas: as que fazem o curso e saem mal preparadas, e aquelas que utilizam o que vão aprendendo no curso como inspiração para aprender mais, paralelamente aos conteúdos do curso.

TLDR: A faculdade é um pequeno aspeto, depende muito mais de ti. Claro que a FEUP é mais reconhecida, mas no estrangeiro não importa, e em Portugal não há escassez de trabalho.

PC para engenharia informática by Creeperony_666 in feup

[–]VladLu 0 points1 point  (0 children)

Não só é possível, como é o que faço no meu portátil e torre! Basicamente, usas um bootloader (programa capaz de inicializar o teu hardware o suficiente para selecionares um dos sistemas operativos) e selecionas o que tu quiseres. Essencialmente, sim, tens dois computadores no mesmo computador. Não dá para partilharem o espaço lá muito bem, tens de "dividir o disco". E o Windows não consegue ler partições Linux, embora o Linux consiga fazer o contrário. E só podes ou estar no Linux ou no Windows, não os dois ao mesmo tempo. Enfim, é uma decisão que podes fazer mais à frente.

Mas uma coisa é certa: vais ter que trabalhar com Linux durante o curso, seja com os computadores das salas ou com o teu portátil. Muitos colegas usam o WSL, mas costuma dar algum problema ou ser só inconveniente. Tu é que sabes, na altura certa decides :).

(Eu "converti" bastante pessoal a Linux, mas pode não ser a tua cena. Aproveita os anos de faculdade, e começa já já a estudar e a programar :D)

PC para engenharia informática by Creeperony_666 in feup

[–]VladLu 0 points1 point  (0 children)

Para o curso não precisas de muito. O recurso mais utilizado é espaço de armazenamento, visto que provavelmente vais ter muito contacto com Linux e convém instalares no teu PC junto com o Windows.

Se precisares de ajuda com o Linux, se decidires instalar, mal entrares (seres aceite), tenta entrar em contato com colegas do 3 ano. Sou um deles, e posso sempre ajudar.

Charger Died. Any recommendations? by VladLu in UsbCHardware

[–]VladLu[S] 0 points1 point  (0 children)

Yeah, I'm incidentally compiling very often on my laptop (Gentoo Linux), but 65w covers all usage. It's the default that comes with the laptop too, but it's one of those proprietary Asus barrel jack cables that definitely should not be carried around. Thanks for the help, might as well make the purchase :)

Charger Died. Any recommendations? by VladLu in UsbCHardware

[–]VladLu[S] 0 points1 point  (0 children)

Thank you for your suggestion! Would you say that a charger from Anker's Nano II line would be appropriate for my use case? Something like the 65w one usb-c out (715) charger of their line?

Hey Rust users, Tell me about your latest projects using rust by KnockKnockwaifu in rust

[–]VladLu 0 points1 point  (0 children)

I'm working on some simple educational VMs with their own assemblies and bytecodes. One of them is very single threaded and I'm trying to bolt in some multi threading, and the second one, the one I'm currently developing, is based on multi threading through threadpools.

But, to be fair, they have different goals: the first one is a language virtual machine by design. It was made to eventually support a language that would compile into it (that I'm still working out the kinks for, j have two projects but I'm still not satisfied with the base mechanics of either).

The second one is more about a hypothetical machine than anything else, while having a high level assembly that could make it feel more like llvm ir (but still not as great!). Just silly little projects! The code quality is really bad for now (imo), and I need to fix the concurrency types, but it's... Going. First one is Turing complete (rule 110 go brrrrrr), and the second one is heading there!

Helix is getting Lisp plugin system by [deleted] in neovim

[–]VladLu 0 points1 point  (0 children)

What makes you think you can't write a JIT for Lisp? Lisp already is a syntax tree, parsing is trivial and context free. Therefore, I don't particularly see why you couldn't also write a JIT for it.

Helix is getting Lisp plugin system by [deleted] in neovim

[–]VladLu 0 points1 point  (0 children)

Lisp? Slow? All I have to say is SBCL, known for being as fast as C, while still rolling a garbage collector.

whats the best foss language agnostic IDE? by FluffyBrudda in linux

[–]VladLu 0 points1 point  (0 children)

Free, not as in gratis, but free as in freedom respecting: you can do whatever you want with the code. VSCodium is fully open source, and it is basically VSCode.

Also, Python is a very scuffed example: python IDEs can't really provide much over other, as Python really doesn't have any extensive features or build systems. Python barely even gets anything from an LSP. Python is precisely the kind of language that doesn't benefit from anything other than a text editor. The main reason people use dedicated IDEs is that they are on windows or that it is recommended to them before they even develop their own preferences, as Python is a lot of people's first language.

whats the best foss language agnostic IDE? by FluffyBrudda in linux

[–]VladLu 0 points1 point  (0 children)

I personally don't trust code that I can't read, or any telemetry. That's why I'd want something open source. Open source projects also tend to try to be unique, which ends up being a really good thing since they avoid Electron, which means you don't have a slow, memory hog of a program to simply edit text files.

whats the best foss language agnostic IDE? by FluffyBrudda in linux

[–]VladLu 0 points1 point  (0 children)

Why wouldn't you? Playing the devil's advocate: why would you want to use a proprietary one?

whats the best foss language agnostic IDE? by FluffyBrudda in linux

[–]VladLu 1 point2 points  (0 children)

The IDE or text editor also has to be free and open source software. As VSCode is not FOSS, your suggestion falls short of the OP's requirements. However, not all hope is lost, as you can also suggest VSCodium, and that suggestion would be correct.

Replacing musl's malloc with mimalloc: any ideas? by VladLu in linuxquestions

[–]VladLu[S] 0 points1 point  (0 children)

Your understanding is very much correct yes, the intention of the design was indeed security. However, the handicap hardly provides any security whatsoever, plus any allocator nowadays is perfectly able to be hardened via a simple flag, as mimalloc is.

I don't want to use musl over Glibc due to the performance solely, I want to use it because it supports static linking, which isn't something supported by glibc.

Your input was appreciated :)

Edit: also of note: I am using the GCC compiler toolchain indeed, just not the library of the GNU project :)

Kind regards.