fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#debug

1 post1 participant0 posts today

Les règles de débogage à appliquer dans l'ordre en embarqué :
1. Le montage est il sous tension et sorti du reset ?
2. Le port uart est il : branché, dans le bon sens et à la bonne vitesse ?
3. Ai-je chargé le bon firmware ! ?

Allez disons que 90% des problèmes viennent de là.

🤣 at Microsoft today...

Replacing the Blue Screen of Death with a new Black Screen of Death, which now no longer contains *any* information about the problem that caused the system to crash and need to restart.

For the average user, it's now impossible to have even a hint as to what the problem is. Great job, everybody!

For power users, geez, I hope something made it into the event logs and onto disk before the system died. No? Oh well, you didn't really need to know, just reset and wonder how long you've got until it happens again.

EDIT / UPDATE: I've now seen a second article about this change. The first didn't include an image, and described the removal of all information related to the specific error. This second one shows a copy, and it still appears to include the filename containing the code that crashed the kernel and whatever Windows calls an errno value. It appears the first article is mistaken, and they've just removed the QR code that has been present for a few years?

Распутываем легаси-код на Android проекте

Попадая на новый проект с долгой историей вас неизбежно ждёт легаси код. Возможно, что сменилось несколько команд, пока он попал в ваши руки. Может быть на проекте уже и контекст-овнера нет, а на любой ваш вопрос тимлид отвечает - так исторически сложилось. Приложение может тормозить, состояние определяться десятками мутабельных переменных. Фризы, утечки памяти, файлы на сотни, тысячи строк кода. Год обжекты. Знакомо? Я хочу дать несколько советов, которые помогут сориентироваться и понять что происходит, а также помогут распутать спагетти код. 1. Поставьте логгер на изменение базы данных. Все ORM поддерживают подобный функционал. На Room можно это сделать так

habr.com/ru/articles/895236/

ХабрРаспутываем легаси-код на Android проектеПопадая на новый проект с долгой историей, вас неизбежно ждёт легаси-код. Возможно, проект прошёл через несколько команд, и теперь он в ваших руках. Бывает, что на проекте уже нет контекст-овнера, а...

Wow.. So I was trying to #optimize some Rust code that would take six hours to run.

My goal was to get that down to 3.5 hours (something I'd achieved previously with lost code). Some tweaking got it down to 5 hours estimated runtime.

Then I thought to do:

"cargo build --release" instead of just "cargo build" for the first time.

And we're down to 3 minutes.... not 3.5 hours... 3 minutes.

Ok.. Good to know. Debug adds just a tiny bit of overhead on some code ;-).

Руководство по началу работы с отладочной платой MIK32-DIP (K1948ВК018, Амур) в ОС GNU/Linux

MIK32 АМУР или K1948ВК018 является российским микроконтроллером (МК) с ядром на открытой архитектуре RISC-V . По какой-то причине производитель МК ГК «Микрон» предлагает в качестве средства разработки,- средство на базе Eclipse , но исключительно под Windows , что далеко не всех устраивает. А также, в руководстве по эксплуатации на данный МК, предлагается использовать VS Code , и это конечно более универсальный (кроссплатформеный) вариант, но предполагает использование VS Code совместно с плагином PlatformIO , что опять же устраивает далеко не всех. Поэтому я рассмотрю в данном руководстве старт работы с отладочной платой MIK32-DIP в ОС GNU/Linu x в IDE Eclipse . Чтобы начать работу вам понадобятся:

habr.com/ru/articles/890012/

ХабрРуководство по началу работы с отладочной платой MIK32-DIP (K1948ВК018, Амур) в ОС GNU/LinuxMIK32 АМУР  или K1948ВК018 является российским микроконтроллером (МК) с ядром на открытой архитектуре RISC-V . По  какой-то причине производитель МК ГК «Микрон» предлагает в качестве...
#Eclipse#mcu#mk32

I've just spent 10 minutes in the menu of my current huge project. I actually wanted to #debug , but then got stuck pressing buttons and listening to the sounds - simply because it's so cosy.

(This information is of no use to anyone because nobody can/may see my project yet, but if politicians are allowed to post their brain farts to the world, so am I 😇)

Why people design a new #ProgrammingLanguage?

There are tons of good reasons of course. Some does that for fun or for curiosity, some for political or educational reasons, some to address shortcomings faced with existing one, either in specific use case or in general.

To me, at least at the conscious level, it's completely a political issue.

I see how programming is a new political force (so much that I actively used it to fight #BigTech in Italy) and I see how people who cannot read (aka #debug) or write (aka #programing), are doomed to becomes second class citizens in a #cybernetic society.

I don't want this to happen to my daughters, so I want to teach them how to program and debug.

BUT mainstream programming languages are weird, full of accidental complexity and with over-complicated semantics.

As a nerd who can programs in most of them, I tend to get fun in the abstractions and details of, say, a #Haskell or an homoiconic macro in a #Lisp.

But while they are fun to a person grown (and selected to fit) within such a primitive computing environment, they are inheritely excluding people who cannot spend decades to grasp their subtle intricacies.

And how you can teach such languages to kids?

Sure they can learn and understand any programming language construct way better of an average adult, but at a first glance all they will only see is glibberish!

And while some will be fascinated by such esoteric language that can be used to create games, worlds and agents that serve their will (just like I was when I was a kid), most will find that complicated and thus boring.

On the other hand a language that is explicit and with simple semantics (such as say #Oberon) will seem verbose and boring to a professional programmer.

I love the simple clarity of a #snake implementation like this https://github.com/tmartiro/voc-snake/blob/main/Snake.Mod whose complexity is almost just the complexity of the task at hand.

And while I see little improvements I could add to such language to further simplify it's syntax and semantics, when I try to do so, I end with something that is less readable than the original, despite syntax and semantics being simpler (as in less rules and no exceptions or incoherence).

It was pointed out by @anzu@items.minimals.org: while I want to make the language easy to read and simple to understand, I subconsciously try to address the issues I faced in my ~25 years as a polyglot programmer.
And apparently I can't resist such impulse, like if I cannot escape my experience.

It's sad.

It makes me think of how the phonetic alphabet was invented by people who cannot read or write but were exposed to hierogliphs, and think that creating a democratic programming language is beyond my ability because of how my mind has been blent from the existing one.

@informatica@feddit.it @programmazione@feddit.it
@technology@lemmy.world
@programming_languages@programming.dev
GitHubvoc-snake/Snake.Mod at main · tmartiro/voc-snakeSnake written in VOC using Raylib. Contribute to tmartiro/voc-snake development by creating an account on GitHub.

I grew up in Asia, so I smile and nod quietly, whenever I'm contented and happy 😄, or disconcerted and alarmed 😅, or anything in between 😏.

One of the few situations in which I frown and shake my head vigorously is when I have to #debug a pernicious, little C pointer error that threatens to derail the entire project, at the 11th hour. 😖

Such is the spice of #programming #thuglife.... 😎