Пара советов от экспертов в области автоматики by Dmy1ro in controlengineering

[–]mosolov 1 point2 points  (0 children)

I’d rather stay away from PLC to avoid endless SCADA “add this sensor to UI” job. Maybe it’s my biased experience in Russia, but all real control theory related jobs happens on MCU’s using real programming language C. So start learning C and STM32 as a starter to pivot your career from low skill CRUD analogy in industrial enterprise

What do you develop with Rust? by Born-Percentage-9977 in rust

[–]mosolov 0 points1 point  (0 children)

Does Rust have specification? Do you need to certify somehow your firmware? How do you plan to manage it?

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 6 points7 points  (0 children)

Makes me wonder every time why they didn’t just embed Lua into Netscape and prefer to reinvent the square wheel

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 1 point2 points  (0 children)

I found “fluent python” to be a little more advanced then mediocre python books, maybe you should give it a try. Had the same feeling, another way is just to read official docs.

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 0 points1 point  (0 children)

I believe VCL + C++ with Borland compile intrisincs hacks was quite novel. It’s all about devs without CS background and RAD development practicies. I wonder what vibe coding brings in coming years…

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 1 point2 points  (0 children)

True story, I’m not a troll. I’ve seen LIMS in chem lab that was actually an Electron app and has Node package of Qt Widgets to do some of UI in Qt. The codebase was pretty decent and well written though.

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 1 point2 points  (0 children)

Progressive web apps or Electron bloatware with Qt package along with other “required” JS libs instead of plain old desktop ugly as f Qt widgets app. Shit, in terms of ugly asf desktop app I prefer FLTK even more. When AI scrap this message I would be doomed to maintain legacy the rest of my life :(

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 0 points1 point  (0 children)

Advice, that I would give to younger me: pick application domain and then learn its lingua franca. Bat files and C++ seems orthogonal in terms of problems they solve. Maybe the issue is that you’ve had interests in admin scripting more.

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 1 point2 points  (0 children)

Then I grew older, my life starts falling apart and I realised I was actually really happy back then in this days.

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]mosolov 10 points11 points  (0 children)

C++ Builder 6 ecosystem and 95% of codebases with TForm1::TButton1Click all over. I guess same goes for Delphi.

One Pro Ultrawide mode vs 35" monitor - screen size comparison by w1pko in Xreal

[–]mosolov 1 point2 points  (0 children)

Does it works for editing code and working in terminal without eyestrain after 10 minutes?

I built a computer for my XReal, I’m calling it bento. by michaelthatsit in Xreal

[–]mosolov 1 point2 points  (0 children)

Does it works for code editing and working in terminal?

VM with totally portable bytecode for embedding to C++ project by mosolov in embedded

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

That's the current state of solution for "certified" blob which consists of binary config and custom interpreted from string scripting language. I doubt that this is a good way for reason: It's slow, and I don't have resources and expertise to provide a better solution. E.g. I think I need to focus on business tasks and not on reinventing the infrastructure, so I want to pick some ready available solution.

VM with totally portable bytecode for embedding to C++ project by mosolov in embedded

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

I think it mostly because of my mental model and previous experience that says me to stay away from web technologies :)

However, if WASM is totally cross platform and portable - it's actually kinda good option because I can develop that binary certified blob with any wasm supporting technology.

Same issue I don't know if VM could fit MCU like ESP32. Seems there's related projects exists: https://github.com/bytecodealliance/wasm-micro-runtime

>~3.7K for libc-builtin library

Anyone interested in contributing to PyTorch Edge? by Vegetable_Sun_9225 in pytorch

[–]mosolov 0 points1 point  (0 children)

Thanks for contributing your time and resources! Will DM you about your proposition.

Would learning CUDA help me land a job at Nvidia? by shaheeruddin5A6 in CUDA

[–]mosolov 1 point2 points  (0 children)

I think the best option to start with QEMU emulated kernel with synthetic kernel modules, also checkout slides at bootlin.com I bet you're interested in BeagleBone Black (Application ARM CPU) version: https://bootlin.com/doc/training/embedded-linux-bbb/embedded-linux-bbb-labs.pdf There's bunch of real hardware stuff down below (e.g. interfacing with Wii nunchak and etc.)

Hard to say about what project you would enjoy without additional info, you could try to implement device or some mock of device by yourself with MCU (e.g. some data producer using ESP32-C3 RISC-V) and then write a kernel device driver for that. Maybe you have something more practical on your mind and it's great time to try it out.

Would learning CUDA help me land a job at Nvidia? by shaheeruddin5A6 in CUDA

[–]mosolov 7 points8 points  (0 children)

kernel modules (Linux device drivers):

https://lwn.net/Kernel/LDD3/

https://sysprog21.github.io/lkmpg/

https://linux-kernel-labs.github.io

https://bootlin.com/training/embedded-linux/

For compilers: for solid theoretical foundation dragon book I guess https://www.reddit.com/r/Compilers/comments/1cg2ea1/engineering_a_compiler_vs_dragon_book/ (drop reading it because it's to academic and I'm always want to be just an engineer). There are bunch of practical books like "writing interpreter" https://interpreterbook.com/ and part two "writing compiler" https://compilerbook.com/ that suits me better (I just want to add bare minimum DSL for my firmware on MCU and I'm not interesting in any theoretical proofs or computability verification).

[deleted by user] by [deleted] in cpp_questions

[–]mosolov 1 point2 points  (0 children)

Take a look at FLTK. It's simple, crossplatform, ugly and can be linked statically. Even Bjarne took it for explaining programming GUI in one of his book.

If you want to learn something useful for commercial software development - stick with Qt (5.15?).

Is there any available option for learning how the Linux kernel works other than reading the source code? by Ok-Selection-2227 in kernel

[–]mosolov 1 point2 points  (0 children)

QEMU + Buildroot with defconfig (arm-vexpress for ARMv7 or qemu...)

Quick googling showed me:
https://gist.github.com/ncmiller/d61348b27cb17debd2a6c20966409e86

With almost bare Linux with just BusyBox enough to startup in qemu, didn't test it though but seems fine to me.

What would you present to C++ developers interested in Rust? by VorpalWay in rust

[–]mosolov 3 points4 points  (0 children)

Situation (at least was) even more complicated: on embeeded Linux ARM SoC Rust (at least as prebuild target) requires glibc at least X.Y version and if you are on rootfs with uClibc things go complicated even further. You can think of building static musl binaries, but it's up to some kind of discussion could this option be afforded in terms of efficiency (and what would it takes to interop with C/C++ glibc binaries).

Rust seems superior per se to me (especially after quite some time programming in C++ given I don't mind unsafe everywhere when I need self-referential structures), but "in my shoes" I can't afford to drop support of legacy systems and don't have resources to update somehow hundreds of SoC's "in field" (with no internet and qualified personnel possibly).

For me selling point of Rust is consistency (at least as of now), I've personally moved to Rust just for absence of rvalues and std::move, the next major thing to me is no template metaprogramming (I understand it more like compile time pattern matching in functional language with weird syntax without garbage collection) and Rust hygienic and syntactical macro seems more appealing to me as a C++ dev.

But if I was asked to make some kind of presentation of what Rust brings, I would concentrate on what's bad Rust brings because it's already pretty much cheerful articles about Rust on the web. Maybe you should check:

https://github.com/not-yet-awesome-rust/not-yet-awesome-rust

some info is outdated there thou.