home.social

#lowlevel — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lowlevel, aggregated by home.social.

  1. Деконструкция GO: Низкоуровневые концепции. Atomics. Часть 2.1

    Я самую малость обленился и как-то давно не делал новых разборов, поэтому следующим нашим этапом деконструкции будут низкоуровневые операции . Иногда здесь будет в отрыве от аллокаторов/планировщиков и прочего, но опять же, статьи для тех, кто знает и хочет разобраться поглубже, как тут всё устроено. Поэтому, в этой части начнем с самого простого – пакета atomic. Концепции вокруг атомарных операций на уровне CPU я рассматривал здесь , поэтому советую почитать. Там мы даже пишем свой атомарный AND. !Важно! Мы будем разбирать на примере src/internal/runtime/atomics , то есть внутреннего пакета, а не того, который представлен нам как пользователям(потому что в исходниках я не нашел реализации). Но по большей части операции одни и те же.

    habr.com/ru/articles/1033780/

    #go #atomic #go_assembler #assembler #lowlevel #internals

  2. "There’s a unique kind of respect for someone who treats the machine like a tailored instrument rather than a black box"

    Quote from (XformerlyknownasTwitter link, sorry) x.com/GenAIDL/status/205137755 .

    See this website. melsloop.com/

  3. Wow so Bitwarden CLI got hacked for about 90 minutes yesterday, through a very novel method. This malicious actor has hatred for LLMs (same Queen or King).

    So they were using a worm introduced by the novel method to target keys associated with LLMs and other valuable keys. Very scary and sophisticated.

    The normal version of Bitwarden wasn't affected, and of course the malicious altered version was depreciated so it can't spread. Still fascinating in a horrifying way.

    youtu.be/-_TWFbw8XjU

    #LowLevel #Youtube #BitwardenCLI

  4. Тетрис в ядре Linux

    Вероятно, вы знаете, что если запустить ядро Linux без корневой файловой системы или файла initramfs, то оно упадет с сообщением о панике ядра. Но возможна ли работа ядра Linux без этих, вроде бы обязательных компонентов? Ответ на вопрос - да, возможна, но использовать такие возможности в конечном продукте не стоит. При запуске ядра ему могут передаваться параметры через командную строку. Одним из параметров является rootwait , указывающий ядру на то, что нужно подождать появление корневой файловой системы. В этом случае ядро ожидает появление корневой системы, а не завершается выполнение ядра с ошибкой. Формально ничто не мешает написать модуль ядра, который взаимодействует с клавиатурой и дисплеем и временно выполняет функции пользовательского приложения, пока ядро ожидает корневую файловую систему. Пользовательским приложением может быть, например, игра Тетрис. Она из-за своей простоты в реализации и зрелищности добавляет наглядности в изучении темы и дает чувство завершенности. А мысль о том, что тетрис, работает в ядре, усиливает эффект.

    habr.com/ru/companies/timeweb/

    #linux #linux_kernel #linux_modules #qemu #c_language #lowlevel #ненормальное_программирование #timeweb_статьи

  5. Маски, Каскады, использование масок вместо циклов(В некоторых случаях) + Атомарные инструкции

    Привет Хабр! Сегодня я решил закрыть трилогию статей, а закончи парой не мало важных тем. Хочу сказать огромное спасибо тем кто активничает и задает вопросы. Ну что ж, начнем.

    habr.com/ru/articles/996432/

    #С #с++ #simd #mask #atomic #lowlevel #guide #optimization

  6. You never do understand #lowlevel concepts in #programming until you actually go and implement them in something like #c .

    I am working on the MQTT Client still and am learning a lot about #allocators and #memory.

    I've learned about those things, both from the infosec and from the computer engineering sides, but now that I am actually implementing this stuff and having to make decisions and research and reading-the-effing-manual I feel that I am building an actual intuitive understanding of this stuff.

    I've basically intuited 95% of the way to slab allocators before learning the actual term, like, it is just the logical progression.

    Of course not everything is like this, but it feels very cool.

    Man, I love computers so much!

  7. @theoasisbbs This might sound silly, but I'm really hopeful that might eventually make a new platform focusing on being intentionally simple. Perhaps a novel 16-bit architecture implemented in FPGA (or maybe something "truer" like ASIC!), designed to be relatively simple to program in a language. Sounds like a dream to me.

  8. We're going deep into the CPU with this one...

    🧩 **cpustate-tui** — A bare-metal TUI for visualizing x86_64 CPU internals

    ⚙ Inspect CPU before even your OS boots!

    ⚡ CPUID flags, timers, MSRs, XSAVE state & more!

    🦀 Written in Rust & built with @ratatui_rs

    ⭐ GitHub: github.com/mkulke/cpustate-tui

  9. Modern web needs like 100MB just to say "Hello World". I went the other way.

    Introducing GASM: A Gopher server in pure i386 Assembly.

    💾 Binary: 1.5KB
    🧠 RAM: 24KB (Verified with pmap)
    🚫 Dependencies: 0 (No libc, pure syscalls)
    🦕 Min Spec: Intel 386DX (1985)

    Probably runs on the shittiest hardware you can find, or on your Ryzen 9.

    github.com/someodd/gasm

  10. Because I'm easy come, easy go
    Little high, little low
    Any way the wind blows doesn't really matter to me, to me

    A pair of F-35C's of VFA-125 “Rough Raiders” running the R-2508 Sidewinder #panamint #VFA125 #Sidewinder #NellisAFB #milair #aviationphotography #planespotting #AvGeek #spotter #photography #Nikon #cvvhrn #nikonphotography #R2508 #lowlevel #lowleveljets

  11. (i haven't properly introduced this project yet)

    project introduction: Arkas engine (github.com/mesyeti/ArkasEngine)

    Arkas Engine is a 3D game engine aiming to be a spiritual successor to Build Engine (used to make Duke Nukem 3D, Blood, Shadow Warrior)

    It uses OpenGL 1.1 which makes it compatible with my favourite 20 year old computer that runs Windows XP

    #programming #opengl #gameengine #lowlevel #project

  12. lexaloffle.com/pico-8.php

    "A Fantasy 8-bit Virtual Game Console" 🎮 🧞 🧝

    #TeachIT #TechTeach #school #informatik #hacken #opensource #shell #gameboy #zocken #coden #programieren #programming #lowlevel #serialprotocol, etc.

    If I could go back in time to suggest that to our pc-class teachers in schools: Hooray! Have only played it yet - not made one. Would love to!

    License non-free though.

    #yh4f #fsfe
    #PngAsGameRom <- brilliant hack!

  13. Building tiny CPUs in the terminal! 🤯

    🧬 **NanoCore** — An 8-bit CPU emulator + assembler + TUI debugger

    🔥 Fully minimal 256-byte memory with variable-length opcodes

    🦀 Written in Rust & built with @ratatui_rs

    ⭐ GitHub: github.com/AfaanBilal/NanoCore

  14. So #LightRoom just got a AI dust removal feature. This F-22A Raptor is about to dip into Star Wars Canyon, July 2018. The one on the right is after a 5 second pass #milair #AvGeek #aircraft #Nikon #low #lowlevel #starwars #jeditransition #starwarscanyon #sidewinder #r2508 #F22 #Raptor #cvvhrn

  15. Royal Canadian Air Force CC-130J 130602 running Star Wars Canyon, July 2018. It was a 2 ship formation and they treated us to multiple passes #milair #AvGeek #aircraft #Nikon #low #lowlevel #starwars #jeditransition #starwarscanyon #rcaf #canada #hercules #c130 #c130hercules #sidewinder #r2508

  16. After reading an reddit post in r/osdev about someone doing the hard work of researching and documenting the ATI Rage 128 GPU, I've initially "just" wanted to grab some cheap old hardware of ebay (or other places like that) to actually get a test-rig going for my osdevving project(s) I have lurking around.

    But o well, now I myself fell into a rabbit hole of R400+ radeon GPU's x3 (because thats roughly the range I would like to be able to use sometime in the future).

    The Problem? While AMD claims that they have "open" documentation, the truth is everything somehow expects you to know the previous generation, with some having physically no available documentation.

    Like I've been reading the Linux kernel driver (drm/radeon) on the side to even get a grasp at what I need to search for, and even then I'm left with next to nothing... registers are specified at a certain location, just for the kernel driver to read from an entirely different location! And the best part? Even registers that are relevant to each other (thus should be in the same "block"), have entirely different values in the driver source, with no obvious reason why!

    I certainly will write an whole blogpost (or more lol) about this, but it's staggering what amount of stuff you need to grind trough to even get something simple as "resetting the entire card" (which is one write to a control register!).

    *sigh*

    #linux #osdev #hardware #gpu #amd #ati #radeon #programming #coding #development #research #lowlevel

  17. Very happy to announce that "Heavy Wizardry 101" has entered the Early Access program @nostarch

    The books was written by #ROOR director and introduces you in the world of #Programming in #C and #ASM for #intel #ARM #MIPS and #risc_v . The book focus on #LowLevel #Programming as well as #SystemProgramming within the #cybersec domain.

    nostarch.com/heavy-wizardry-101

  18. Not the best shot (light and distance) but a F-35C maneuvers in the distance with a GPU-8/A gun pod mounted in the R-2508 Sidewinder Low Level Complex, October 2022 #Sidewinder #NellisAFB #milair #planespotting #AvGeek #spotter #photography #Nikon #R2508 #lowlevel #lowleveljets #F35 #GPU8 #gunpod