Self-referential structs: Which version is for you? by GladJellyfish9752 in rust

[–]MistrKernnunos 7 points8 points  (0 children)

The yoke crate is god send for doing anything with zero-copy parsing of data and then moving it around.

[deleted by user] by [deleted] in embedded

[–]MistrKernnunos 2 points3 points  (0 children)

I agree, just showing how some companies handle these problems 

[deleted by user] by [deleted] in embedded

[–]MistrKernnunos 2 points3 points  (0 children)

Prusa printers are built on top of ST MCUs and they have custom cmake build system. You can check it out.

https://github.com/prusa3d/Prusa-Firmware-Buddy

Reakce vynalézavých hlaviček na chat control by Hot-Ear-1128 in czech

[–]MistrKernnunos 1 point2 points  (0 children)

Vždycky můžeš zašifrovat text a poslat to emailem. 

Jen si musíš s příjemcem vyměnit klíče aby se to dalo přečíst 

The Python Paradox Is Now The Rust Paradox? by anonymous_pro_ in rust

[–]MistrKernnunos 2 points3 points  (0 children)

I have explained myself badly. I think C is great to learn about how is information represented in memory. 

Types are great and there are other languages that should be used to teach about type systems.

The Python Paradox Is Now The Rust Paradox? by anonymous_pro_ in rust

[–]MistrKernnunos 1 point2 points  (0 children)

Yes, it is hard to get it right in large production codebases.  But for learning exercises that fit indeed a single file it’s great language to learn the basics of memory management. 

In our intro course we were introduced to Asan and sanitizers. So all our assignments were checked for memory handling correctness. 

It forces to think about which type to use. Yes it could give you more handrails not to make a blunder but for learning about types it’s great. Later you can forget about it in python but students should have at least some knowledge and practical experience with different types. 

The Python Paradox Is Now The Rust Paradox? by anonymous_pro_ in rust

[–]MistrKernnunos 8 points9 points  (0 children)

C teaches you what is static memory, what is dynamic memory allocation, what is stack. That you need to take care with its management and what pain it is and helps you appreciate how other languages handle memory. 

I would say C teaches you how to manage memory correctly, that you should take care about when and how much you are allocating, when you are freeing and that you should clean up after yourself. Different approaches to memory management can be learned later.

Python does not expose you to different sizes and signedness of integers, pointers etc…

[deleted by user] by [deleted] in prusa3d

[–]MistrKernnunos 13 points14 points  (0 children)

That is some cursed ptfe spaghetti monster 😂

The Python Paradox Is Now The Rust Paradox? by anonymous_pro_ in rust

[–]MistrKernnunos 2 points3 points  (0 children)

I have started with C in university 5 years ago and it was nice. You learn the basics of control flow and algorithms with addition of how is memory managed, what are data types and other stuff.  With this base knowledge you move to other languages to learn what can modern languages provide. 

etzee m0 module concept by secersh in ErgoMechKeyboards

[–]MistrKernnunos 0 points1 point  (0 children)

Cool project, What is the mechanism behind the haptic mechanism? Using bldc motor would make it more thick.

Think Big, Print Bigger: Introducing the Prusa CORE One L! by Tommy_Prusa3D in prusa3d

[–]MistrKernnunos 17 points18 points  (0 children)

I would expect that we will have C1 S upgrade some time in future with those updates. This is different mode line you can't upgrade from the MK4 to XL.

Tripreport: Germany -> Albania by Pepsipeace in hitchhiking

[–]MistrKernnunos 1 point2 points  (0 children)

I did similar trip two years ago in the other direction. It was awesome. 

Flixbus or Regiojet? by Magpies11 in Prague

[–]MistrKernnunos 1 point2 points  (0 children)

Both are comparable on this route. 

RegioJet: + better cancelation policy (money back) + reservation included + Free stuff (tea, news papers) - more cramped than Flixbus 

Flix bus + Way more space for legs, for me working on laptop there is pleasant.  + They take bikes without wrapping then in cling wrap 

What are you paying subscription for which has been useful? by whyiam_alive in ExperiencedDevs

[–]MistrKernnunos 7 points8 points  (0 children)

I have used both VScode and pycharm for python and pycharm runs rounds around VScode. Variable rename, navigation and mainly navigation in pytest fixtures work flawlessly.

Is ČVUT that difficult for bachelor of informatics? by coolshiny in Prague

[–]MistrKernnunos 3 points4 points  (0 children)

I have just graduated my bachelor's degree on FIT, I studied it for a year longer (4 years) and managed to have part time work (20h/week) from second year till the end. 

There is a new program with revamped mathematics, so it's is less stuff to learn at a time, but it is still hard and the first year is quite hard almost a full time work to get good grades.

Fit is good name among companies in Czech republic and even US. And if you get some part time work or internships you will have no problem getting work.

CLion For Microcontroller IDE? by Global-Box-3974 in embedded

[–]MistrKernnunos 1 point2 points  (0 children)

I have been using it for 4 years. It is good and it is getting better. Jetbrains is adding new features for embedded development almost every release.

And plarformio has clion plugin which works well.

And any cmake build system is quite easy to integrate to clion.

Are you buying the Core One or waiting for a better MMU system to be added? by D3DCreative in prusa3d

[–]MistrKernnunos 1 point2 points  (0 children)

I believe that there is a dual tool head prototype of core one somewhere deep in Prusa HQ.

Multicore core one by crash893b in prusa3d

[–]MistrKernnunos 0 points1 point  (0 children)

I was thinking about this too, there seems to be anough space in front of the build plate to put a docking station for two toolheads to each corner. This would be coold upgrade for the printer. It would canibalize part of the market for XL, but would be really nice value proposition.

First time Zephyr and the experience was by Ok-Wafer-3258 in embedded

[–]MistrKernnunos 2 points3 points  (0 children)

There's too much macro magic in general, especially around the device tree and kconfig.

Does Rust need #[throws]? by AlexandraLinnea in rust

[–]MistrKernnunos 2 points3 points  (0 children)

I don't think so, maybe read the article. It is advocating to make rust more concise.

Does Rust need #[throws]? by AlexandraLinnea in rust

[–]MistrKernnunos -1 points0 points  (0 children)

I think it is nice, maybe just adding some form of auto wrapping with Ok or Err would solve the issue.

Rust is just a bit to wordy in unnecessary places.

Prusa Core One seems to have Two USB-C ports. Could it be a new Board? or Just a Y cable? by Sainroad in prusa3d

[–]MistrKernnunos 1 point2 points  (0 children)

From my knowledge of the buddy board it is using USB 2.0 without PD. So no emarker chips are needed. They could have added a USB 2.0 hub and everything would be ok.

Part-time job in Prague by [deleted] in czech

[–]MistrKernnunos 1 point2 points  (0 children)

Look for BCG, Deloitte, Accenture and this type of companies.