Searching We.Love.Privacy.Club

Twts matching #C
Sort by: Newest, Oldest, Most Relevant

La France au pied du mur
Le constat, posé il y a quelques jours, ne peut plus être évité : si la France n’est pas encore en faillite, c’est pour des raisons purement psychologiques, mais concrètement tout le monde sait que le moindre frisson sur les marchés pourrait emporter l’Hexagone dans un ouragan financier qui emporterait la République avec lui. Ce n’est […] ⌘ Read more

⤋ Read More

glibc 堆內存管理:原理、機制與實戰
在內存管理領域,glibc(GNU C Library)通過 brk 和 mmap 兩大系統調用,構建了一套高效的堆內存管理機制。這種設計大幅減少了系統調用的頻次,顯著提升內存利用率。在 glibc 的管理架構中,堆內存以層級化的方式組織,包含分配區(Arena)、堆(Heap)和內存塊(Chunk)。其中,主 Arena 依賴 brk 系統調用實現內存分配,而子 Arena 則通過 mmap 完 ⌘ Read more

⤋ Read More

分佈式事務的解決方案—Seata TCC 模式
在分佈式事務解決方案中有 Seata AT 模式,但是 AT 模式要求是關係型數據庫(因爲 undolog 表需要和業務保持原子性),此時如果事務中存在非關係型數據庫(如 Redis、ES 等),那麼 AT 模式就無法滿足要求了,如下圖所示:    此時我們就需要 Seata TCC 模式來幫助我們解決這種場景下的分佈式事務問題。1、認識 Seata TCC 模式    TCC(Try-C ⌘ Read more

⤋ Read More

Le pouvoir a cyniquement choisi le laxisme
« Champion, mon frère », c’est avec cette interjection colloquiale que Macron a salué la victoire du PSG en Ligue des Champions dans la nuit de samedi à dimanche, au moment même où plusieurs quartiers de la capitale subissaient les assauts de hordes violentes que les forces de l’ordre peinaient franchement à juguler. Finalement, tout s’est déroulé […] ⌘ Read more

⤋ Read More

Genode OS Framework 25.05 released
It’s been 9 years since we disrupted Genode’s API. Back then, we changed the execution model of components, consistently applied the dependency-injection pattern to shun global side effects, and largely removed C-isms like format strings and pointers. These changes ultimately paved the ground for sophisticated systems like Sculpt OS. Since then, we identified several potential areas for further safety improvements, unlocked by the evolution of the C++ core langu … ⌘ Read more

⤋ Read More

10biForthOS: a full 8086 OS in 46 bytes
An incredibly primitive operating system, with just two instructions: compile (1) and execute (0). It is heavily inspired by Frank Sergeant 3-Instruction Forth and is a strip down exercise following up SectorForth, SectorLisp, SectorC (the C compiler used here) and milliForth. Here is the full OS code in 46 bytes of 8086 assembly opcodes. ↫ 10biForthOS sourcehut page Yes, the entire operating system easily fits right here, inside an OSNews quote block: … ⌘ Read more

⤋ Read More

En finir avec l’argent liquide, vraiment ?
Tout le monde sait que l’insécurité est provoquée par le trafic de drogue. Mais si, c’est évident ! Dès lors, à ce constat indiscutable, on peut proposer des solutions à la fois simples, rapides et tout à fait à portée du premier politicien qui passe par là, n’importe quel clown fera l’affaire. Tenez, prenons Dardmalin, il […] ⌘ Read more

⤋ Read More
In-reply-to » @kat I don’t like Golang much either, but I am not a programmer. This little site, Go by example might explain a thing or two.

One of the nicest things about Go is the language itself, comparing Go to other popular languages in terms of the complexity to learn to be proficient in:

⤋ Read More
In-reply-to » @kat I don’t like Golang much either, but I am not a programmer. This little site, Go by example might explain a thing or two.

@bender@twtxt.net Here’s a short-list:

  • Simple, minimal syntax—master the core in hours, not months.
  • CSP-style concurrency (goroutines & channels)—safe, scalable parallelism.
  • Blazing-fast compiler & single-binary deploys—zero runtime dependencies.
  • Rich stdlib & built-in tooling (gofmt, go test, modules).
  • No heavy frameworks or hidden magic—unlike Java/C++/Python overhead.

⤋ Read More

PEP 793: PyModExport: A new entry point for C extension modules
In this PEP, we propose a new entry point for C extension modules, by which one can define a module using an array of PyModuleDef_Slot structures without an enclosing PyModuleDef structure. This allows extension authors to avoid using a statically allocated PyObject, lifting the most common obstacle to making one compiled library file usable with both regular and free-threaded builds of CPython. ⌘ Read more

⤋ Read More

Flutter 與 Rust 跨界聯手:打造跨平臺開發新紀元
使用 Rust 與 Flutter 的理由假設我們需要獲取當前設備的電池電量。如果沒有任何插件提供這種功能,那就必須解決兩個問題:如何在本地代碼和 Flutter 之間傳輸數據,以及如何處理不同平臺的特定語言(如 C++/Kotlin/Swift 等)。數據傳輸挑戰——在 Flutter 應用和本地代碼之間傳輸大量數據時,創建綁定以實現在兩者間的數據交換是必要的。這個過程涉及到大量的樣板代 ⌘ Read more

⤋ Read More

Deals: iPad mini 7 for $399
iPad mini 7 is a powerful miniature tablet that features the A17 processor with Apple Intelligence support, 8″ LCD display, a 12mp front and rear camera, 128 GB storage, USB-C charging, and support for optional Apple Pencil Pro. iPad mini is offered in multiple color options at this 20% discount price, taking $100 off the … Read MoreRead more

⤋ Read More

Render a Guitar Pro score in real time on Linux
Tuxguitar is a quite powerful application written in a mixture of Java / C. It is able to render a score in real time either via Fluidsynth or via pure MIDI. The development of Tuxguitar started in 2008 on Sourceforce and after a halt in 2022, the project restarted on Github and is still actively developed. The goal of this article is to try to render a score via Tuxguitar, and various other applications connected to Tuxguitar, via Jack … ⌘ Read more

⤋ Read More

Zum Entsetzen aller Beteiligten, wie auch umstehender Personen und einiger schamfreier Gaffer, welche sich an jenem tosenden Unheil zu ergötzen vermochten, folgte nun des Wochensortiments schrecklichste Geißel: 𝕯𝖊𝖗 𝕸𝖔𝖓𝖙𝖆𝖌.

Und es sollten sich die Wolken teilen, um über ihnen nimmer endende Irrungen und Wirrungen an bovinem Fäkal und fremdgetriebener Lethargie zu erbrechen, auf dass sie zu erkennen gezwungen wären, welche Urkraft der irrealen Zusammenkunft letztlich Herrschaft über sie darstellen sollte: 𝕯𝖆𝖘 𝕭𝖎𝖑𝖉𝖙𝖊𝖑𝖊𝖋𝖔𝖓.

So zogen sie alsbald hin, zu tun wie ihnen geheißen, wohlgleich sie – diesem Schauerspiel trotzend – Trost suchten im einzigen ihnen sicher geglaubten Elixir, das dem Abgrund unter ihnen gleichend tiefschwarz glitzernd Erlösung oder mithin als Mindestmaß Linderung versprach, lag jenes doch in unmittelbarer Nähe befindlich hoffnungsschürend bereit:

K̸͓͙͖̥͗͛ä̷̯̼̤͔̈́f̵̧̿̋͒̈f̷̫̝̖̾̓c̸̛͔̀ḣ̶̳͋̓͊ë̷̫̟́͜͝͝n̵̨̳̬̒?̴̩̈́̄ ☕

⤋ Read More

Nicolas, 35 ans, clashe du boomer
Un article à 4 mains écrit par h16 & Citronne Ah, voilà que se présente un week-end agréable pour Nicolas, 35 ans, marié et deux enfants (de 8 et 5 ans) : ses parents viennent lui rendre visite dans la maison nouvellement acquise ! C’est un samedi matin qui s’annonce guilleret mais alors que Nicolas est en […] ⌘ Read more

⤋ Read More

En France, les prisons sont solubles dans la politique
La prison, vraiment, c’est trop pénible ! Et puis, en France, les prisons sont trop pleines, comme une boîte qui déborde. Alors un gentil rapport explique que pour faire de la place, on devrait laisser sortir un peu plus tôt certains détenus, sauf bien sûr les méchants qui ont fait des choses très très graves. Et […] ⌘ Read more

⤋ Read More

Satechi X1 Slim
I bought a Satechi X1 Slim for dad’s iPad about a year ago. It’s a 60%
scissor switch Bluetooth keyboard that you can use wired (USB-C), too
(Fn + Eject). The feel is rather close to the Apple Magic Keyboard.
Yeah, not even mechanical! I know, I know.

For reasons dad’s not using this keyboard so when I recently visited I
brought it back with me. It’s decent enough but in the ISO version
some keys on the right side, close to the return key, are … ⌘ Read more

⤋ Read More

TCP 與 UDP 協議的 socket 通信
剛剛有同事問我,tcp 是怎麼進行 socket 通訊的,udp 能進行 socket 通信嘛,想想這些基礎的知識竟一下子語塞,不知道怎麼回答了,在此,我整理了一下相關知識點,以公衆號文章的形式發表一下,個人粗淺的理解,如有不當之處,請各位大佬多多指點修正。    現在進入正文,咱們先了解一下 socket, 說到 socket, 就得說到互聯網的一個架構,c/s 架構,c/s 是客戶端和服 ⌘ Read more

⤋ Read More

Un dernier quintile de plus en plus dangereux
C’est bien connu : sécuriser les champs Élysées, c’est vraiment compliqué. Une foule qui s’y rendrait de façon totalement inopinée deviendrait vite absolument ingérable, à moins de porter un gilet jaune auquel cas, la sécurisation des lieux ne serait finalement qu’une pure question de logistique et de nombre de balles disponibles dans les flashballs. Or, le […] ⌘ Read more

⤋ Read More

精通 SOLID 原則在 Go 中的應用:編寫乾淨且可維護的代碼
在軟件開發中,構建可維護、可擴展和健壯的代碼是最終目標。SOLID 原則由 Robert C. Martin(也稱爲 Uncle Bob)提出,爲實現這一目標提供了基礎。這些原則如何應用於 Go 語言呢?Go 以其簡潔和務實著稱,讓我們來探討 Go 的慣用風格如何與 SOLID 原則對齊,從而生成乾淨、高效的軟件。單一職責原則(SRP)———–“一個類應該只有一個改變的原因。”在 G ⌘ Read more

⤋ Read More

精通 SOLID 原則在 Go 中的應用:編寫乾淨且可維護的代碼
在軟件開發中,構建可維護、可擴展和健壯的代碼是最終目標。SOLID 原則由 Robert C. Martin(也稱爲 Uncle Bob)提出,爲實現這一目標提供了基礎。這些原則如何應用於 Go 語言呢?Go 以其簡潔和務實著稱,讓我們來探討 Go 的慣用風格如何與 SOLID 原則對齊,從而生成乾淨、高效的軟件。單一職責原則(SRP)———–“一個類應該只有一個改變的原因。”在 G ⌘ Read more

⤋ Read More

Arduino Uno Gets Upgraded with Integrated Ethernet and USB Type-C
The UnoNet is a microcontroller board based on the ATmega328PB, designed with the same form factor and pin layout as the Arduino Uno Rev 3. It integrates Ethernet via a W5500 controller and includes a USB Type-C port, RJ45 connector, DC barrel jack, ICSP header, and reset button. The ATmega328PB is clocked at 16 MHz […] ⌘ Read more

⤋ Read More

Nicolas, 35 ans, veut s’acheter une maison
Un article à 4 mains écrit par h16 & Citronne Il faut se résoudre à l’évidence : Nicolas, 35 ans, marié, et père de deux enfants (de 5 et 8 ans) manque de place dans l’appartement qu’il loue depuis 7 ans. C’est donc décidé : la famille va enfin réaliser l’achat d’une maison. Après quelques années passées […] ⌘ Read more

⤋ Read More