Searching We.Love.Privacy.Club

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

橋接 Rust 和原生 Go
你好,大家好,我是 yuchanns!最近我做了一些有趣的事情,想和你分享:介紹 OpenDAL 作爲 Go 語言的原生綁定。 TLDR;  我將向你展示一種可行的方法,利用 purego 和 libffi 的魔力,從 Rust 和 C 組件構建原生 Go 綁定。什麼是 OpenDAL?————Apache OpenDAL[1] 是一個 Rust 庫,提供了統一的數據訪問層。它爲 ⌘ Read more

⤋ Read More

Go 機器學習框架之火重燃,Google 前研究員開源期望媲美 Jax 的 GoMLX
Go 作爲一門兼具高性能與簡潔性的編程語言,近年來在各種領域得到廣泛應用。然而,在機器學習領域,Go 相比 Python、C++、Julia 等語言,生態仍然較爲薄弱。目前的 Go 機器學習框架無論在功能全面性上,還是在社區生態支持上都難以與 TensorFlow、PyTorch、Jax 等重量級框架抗衡。究其原因,筆者覺得還是 Go 社區缺少熟悉和精通機器學習方面的人才。不過,隨着時間的推移,總 ⌘ Read more

⤋ Read More

ASUS IoT EBS-P300 Fanless Lightweight Box PC with 2.5GbE & 1GbE LAN ports
The ASUS IoT EBS-P300 is a compact, lightweight embedded computer designed for industrial applications. It features an Intel Celeron J6412 processor and is optimized for use in harsh environments, with reliable performance across a temperature range of -20°C to 60°C. The EBS-P300 supports up to 8GB of LPDDR4x-3733 RAM, providing capacity for running multiple applications. […] ⌘ Read more

⤋ Read More
In-reply-to » @movq, maybe you can help me with this. I want to place the vim cursor at the end of the first line on replies, and forks. I have tried adding to this to jenny's configuration:

@movq@www.uninformativ.de hmm, I guess I could do that too. I have startinsert set on my .vimrc, so I will either have to take it out, or exit insert, $, then insert again. I think the way you do it would be the way to go.

I tried setting VISUAL to be something like vim -c 'star!', which does the same thing, but no dice. :-/

⤋ Read More

Go 程序如何實現優雅退出?來看看 K8s 是怎麼做的——上篇
在寫 Go 程序時,優雅退出是一個老生常談的問題,也是我們在微服務開發過程中的標配,本文就來介紹下工作中常見的幾種優雅退出場景,以及帶大家一起來看一下 K8s 中的優雅退出是怎麼實現的。優雅退出我們一般可以通過如下方式執行一個 Go 程序:$ go build -o main main.go$ ./main如果要停止正在運行的程序,通常可以這樣做:在正在運行程序的終端執行 Ctrl + C。 ⌘ Read more

⤋ Read More

After work bike tour
I admit it, I should rename the subtitle of my blog from “Thoughts of an IT expert” to “My bike tour log”. Even though it was 29° C outside today, I wanted to do another bike tour after work. 42 km through the surrounding area of my hometown. I discovered new places and noticed that it actually feels colder next to trees. It was much fun! ⌘ Read more

⤋ Read More

Porting my JavaScript Game Engine to C for No Reason

high_impact

tl;dr: high_impact is small game engine for 2D action games. It’s written in C, compiles to Windows, Mac and Linux as well as to WASM for the Web. It’s “inspired by” my original Impact JavaScript game engine from 2010. The name high_impact is a nod to a time when C was considered a high level language.

MIT licensed, source on github: [github.com/phoboslab/high_impact](https://github … ⌘ Read more

⤋ Read More

Porting my JavaScript Game Engine to C for No Reason

high_impact

tl;dr: high_impact is small game engine for 2D action games. It’s written in C, compiles to Windows, Mac and Linux as well as to WASM for the Web. It’s “inspired by” my original Impact JavaScript game engine from 2010. The name high_impact is a nod to a time when C was considered a high level language.

MIT licensed, source on github: [github.com/phoboslab/high_impact](https://github … ⌘ Read more

⤋ Read More

Petits sabotages entre amis d’extrême-gauche
Même si l’effervescence olympique aura fait passer les petites nouvelles locales franco-françaises en arrière-plan, il semble difficile d’oublier complètement les événements de vendredi dernier qui ont vu une bonne partie du trafic ferroviaire grande vitesse largement interrompu à la suite d’un sabotage d’ampleur. C’est ainsi que tôt vendredi matin, suite à des incendies volontaires sur […] ⌘ Read more

⤋ Read More

JO 2024 : une cérémonie sans surprises
Voilà qui agacera peut-être les pignoufs asséchés des plateaux télé qui tremblent à l’évocation des chaleurs de l’été : on nous annonçait une sécheresse et de la canicule mais la cérémonie d’ouverture s’est déroulée sous une pluie battante. Ceci dit, rappelons que François Hollande était de la partie. C’était donc garanti que tout serait fortement humide, […] ⌘ Read more

⤋ Read More

There are also a bunch of log messages scrolling by. I’ve never seen this much activity in the log:

Jul 25 01:37:39 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:39 (149.71.56.69) "GET /external?nick=lovetocode999&uri=https://pagez.co.uk/services/your-own-100-fully-owned-online-vi>
Jul 25 01:37:39 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:39 (162.211.155.2) "GET /twt/112135496802692324 HTTP/1.1" 400 12 826.65µs
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (51.222.253.14) "GET /conv/muttriq HTTP/1.1" 200 36881 20.448309ms
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (162.211.155.2) "GET /twt/112730114943543514 HTTP/1.1" 400 12 663.493µs
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (27.75.213.253) "GET /external?nick=lovetocode999&uri=http%3A%2F%2Falfarah.jo%2FHome%2FChangeCulture%3FlangCode%3Den>
Jul 25 01:37:40 buc.ci yarnd[829]: time="2024-07-25T01:37:40Z" level=error msg="http://bynet.com.br/log_envio.asp?cod=335&email=%21%2AEMAIL%2A%21&url=https%3A%2F%2Fwww.almanacar.c>
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (162.211.155.2) "GET /twt/111674756400660911 HTTP/1.1" 400 12 545.106µs
Jul 25 01:37:40 buc.ci yarnd[829]: time="2024-07-25T01:37:40Z" level=warning msg="feed FetchFeedRequest: @<lovetocode999 http://alfarah.jo/Home/ChangeCulture?langCode=en&returnUrl>
Jul 25 01:37:41 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:41 (162.211.155.2) "GET /twt/112507964696096567 HTTP/1.1" 400 12 838.946µs

Something really weird is going on?

⤋ Read More

(Updated) Forlinx’s New SoM Leverages Rockchip RK3562J Quad-Core Processor
(Updated) Forlinx’s New SoM Leverages Rockchip RK3562J Quad-Core Processor
Forlinx Embedded has launched the FET3562J-C SoM, a versatile system on module with an optional 1 TOPS NPU, optimized for a broad range of applications including industrial automation, consumer electronics, smart healthcare, energy, and telecommunications. ⌘ Read more

⤋ Read More

Linux-Compatible Board Built Around RK3576 with 6TOPS NPU for AIoT Applications
Linux-Compatible Board Built Around RK3576 with 6TOPS NPU for AIoT Applications
The Forlinx Embedded FET3576-C SoM and its carrier board are designed to meet the demands of the AIoT market, emphasizing high performance, substantial computing power, and energy efficiency. Built around the Rockchip RK3576, this hardware platform incorporates dual GbE LAN ports, PCIe support, wireless cap … ⌘ Read more

⤋ Read More

Pour redresser les finances, les autorités ont une idée finaude : augmenter les impôts
La gauche au pouvoir, c’est une éclosion permanente d’idées économiques surprenantes. Prenez l’Allemagne : son actuel déficit démographique devrait la pousser à faire un peu attention à ses finances d’un côté, à pousser la robotisation massive de tous ses domaines (comme le font Japon et Corée actuellement), et à cajeoler sa population de l’autre pour – […] ⌘ Read more

⤋ Read More

De la banalisation des couteaux, des fous et du RN
Dans au moins un domaine, les récentes élections ont enfin pu apporter un peu de clarté. Bien sûr, il ne s’agit pas du domaine politique tant l’explosion en vol du NFP, prévue et actée, donne à tant de politiciens l’occasion d’exprimer leurs talents de clown. Non, si les choses sont plus claires, c’est clairement pour […] ⌘ Read more

⤋ Read More

構建並運行 eBPF 應用 - Part 2
在上一篇文章中,我們用 C 語言創建了一個 eBPF 程序,以瞭解某個進程使用 CPU 的時間。這些數據隨後被存儲在 BPF HashMap 中。但這是一個不斷更新的短期存儲位置,數據的壽命很短…… 我們該如何利用這些數據呢?這就是用戶空間程序的用武之地。用戶空間程序不在內核空間運行,但可以附加到 eBPF 程序並訪問 BPF HashMap。現在讓我們來看看如何用 Golang 編寫用戶 ⌘ Read more

⤋ Read More

構建並運行 eBPF 應用 - Part 1
本文將介紹如何使用 C 和 Golang 編寫第一個 eBPF 程序。我們將在第一部分介紹實際的 eBPF 程序,在第二部分介紹用戶空間應用程序。準備工作本文開發所運行的操作系統是:OS: Ubuntu 22.04Linux Header Version: 6.5.0–14-generic還通過 apt 安裝了一些依賴項:sudo apt-get -y install libbpf bpfcc-t ⌘ Read more

⤋ Read More

Tentative d’assassinat de Trump : tout se déroule comme prévu
Après Jair Bolsonaro, Shinzo Abe, Robert Fico, c’est donc au tour de Donald Trump de subir une tentative d’assassinat. Comme de coutume aux États-Unis, la tentative a immédiatement versé dans le spectaculaire, surtout du côté de la presse de grand chemin. Et spectaculaire est probablement le seul qualificatif pour la façon dont cette dernière a […] ⌘ Read more

⤋ Read More

聊聊 go 語言對於 socket 的抽象
寫在文章開頭——go語言對於網絡抽象做了非常通用且高性能的封裝,所以就從net包源碼入手介紹一下go語言對於socket的抽象。Hi,我是 sharkChili ,是個不斷在硬核技術上作死的 java coder ,是 CSDN 的博客專家 ,也是開源項目 Java Guide 的維護者之一,熟悉 Java 也會一點 Go ,偶爾也會在 C 源碼 邊緣徘徊。寫過很多有意思的技術博客,也還在 ⌘ Read more

⤋ Read More

So dissatisfied and disappointed with the Fairphone 4’s audio issues where during phone calls, the receiver only gets half of the messages due to noise cancellation problems, that we’re considering iPhone as a valid “it just works” replacement. Especially since the iPhone15 now also has the USB Type C port.

⤋ Read More

Forlinx’s New SoM Leverages Rockchip RK3562J Quad-Core Processor
Forlinx Embedded has launched the FET3562J-C SoM, a versatile system on module with an optional 1 TOPS NPU, optimized for a broad range of applications including industrial automation, consumer electronics, smart healthcare, energy, and telecommunications. The FET3562J-C SoM, powered by the Rockchip RK3562J processor with advanced 22nm process technology, features four ARM Cortex-A53 cores operating […] ⌘ Read more

⤋ Read More

Execute commands by sending JSON? Learn how unsafe deserialization vulnerabilities work in Ruby projects
Can an attacker execute arbitrary commands on a remote server just by sending JSON? Yes, if the running code contains unsafe deserialization vulnerabilities. But how is that possible? In this blog post, we’ll describe how unsafe deserialization vulnerabilities work and how you can detect them in Ruby projects.

The post [Execute c … ⌘ Read more

⤋ Read More

La justice sociale n’existe pas
Disons les choses franchement : la justice sociale, c’est de la foutaise, et en plus, elle est impossible à réaliser. Et pour comprendre qu’elle n’existe pas, il n’y a pas besoin de rentrer dans un long débat de définition même si, c’est vrai, ces notions sont si fluides et mal définies qu’elles s’adaptent fort commodément aux […] ⌘ Read more

⤋ Read More

Impunité, laxisme, corruption : la justice française ne ressemble plus à rien
Avril 2021, alors que des procès en laxisme au sujet de la Justice française fusent dans l’actualité, le nouveau garde des Sceaux, Dupond-Moretti, monte au créneau et exprime sa stupéfaction dans un entretien accordé au Monde : pour lui, c’est un gros malentendu, un problème de communication entre les magistrats et les Français qui ne font […] ⌘ Read more

⤋ Read More

利用 Go 語言加速 Redis 操作:掌握 go-redis 包的高效應用技巧
一、golang 操作 redis 1、安裝初始化文件夾 c:\aaa mkdir testredisc:\aaa\testredis go mod init testredis安裝 go get github.com/go-redis/redis/v82、基本使用 package mainimport ( “context” “fmt” “github.com/go-r ⌘ Read more

⤋ Read More

La dissolution finale ?
Coup de tonnerre dans un ciel bleu : alors que les bulletins de l’élection européenne sont encore tout chaud sortis des urnes, Macron décide de dissoudre l’Assemblée nationale. Pour ceux qui ne se doutaient pas de cette manoeuvre politicienne du locataire de l’Élysée, c’est une vraie surprise ; Attal, le pantalon encore sur les chevilles, a donc […] ⌘ Read more

⤋ Read More

ThingPulse Pendrive S3: Versatile as Both a Lightweight Wi-Fi Disk and Rubber Ducky Device
The ThingPulse Pendrive S3 is a compact development board that incorporates a male USB-C connector and is based on the ESP32-S3 Mini module. It supports the user-friendly CircuitPython programming environment, making it accessible for those familiar with Python. This device boasts 128MB of flash memory, similar in accessibility to an SD card, enabling it to […] ⌘ Read more

⤋ Read More

Leasing social, véhicules électriques et panne étatique
Janvier 2024 : c’est officiel, les Français vont pouvoir échanger leur vieille automobile thermique qui tache contre un baril de voiture électrique qui lave plus blanc ! Le leasing social vient d’être mis en place et va permettre aux heureux citoyens qui répondent aux critères contraignants de l’opération gouvernementale de disposer d’un petit véhicule électrique, choisi dans […] ⌘ Read more

⤋ Read More

用 go 語言實現一個有界協程池
寫在文章開頭——本篇文章算是對go語言系列的一個收尾,通過 go 語言實現一個實現一個簡單的有界協程池。Hi,我是 sharkChili ,是個不斷在硬核技術上作死的 java coder ,是 CSDN 的博客專家 ,也是開源項目 Java Guide 的維護者之一,熟悉 Java 也會一點 Go ,偶爾也會在 C 源碼 邊緣徘徊。寫過很多有意思的技術博客,也還在研究並輸出技術的路上,希 ⌘ Read more

⤋ Read More

Macron : Une guerre pour cacher la déroute ?
Les sondages sont assez clairs : c’est la déroute pour le camp macronien. Ainsi, non seulement Mélusine Hayer ne parvient pas à décoller dans les intentions de vote au point qu’elle chatouille à nouveau ses plus bas niveaux depuis qu’elle est entrée en lice, mais en plus réussit-elle la performance de propulser Bardella, le concombre endimanché […] ⌘ Read more

⤋ Read More

L’impossible recyclage du plastique
Très régulièrement, à la faveur d’une campagne de propag… pardon de conscientisation par l’une ou l’autre organisation de lobbying non gouvernemental, on découvre que l’Humanité rejette une quantité ahurissante de plastique dans la nature, que c’est une catastrophe et que nous allons tous mourir, ce qui explique au passage les lois de plus en plus […] ⌘ Read more

⤋ Read More

探索 Go 語言數據庫查詢的終極指南:深入解析 GORM 的強大查詢功能
一、GORM 基本查詢1、基本查詢func (c UserController) UserSelect() { //1、查詢id=3的用戶 user := models.User{Id: 3} models.DB.Find(&user) //2、查詢所有數據 user := []models.User{} result := models.DB.Find(&user) //5 (統計 ⌘ Read more

⤋ Read More

C 語言竟可以調用 Go 語言函數,這是如何實現的?
大家好,我是飛哥!今天和大家聊一個問題,一門語言是否可以在同一個進程內調用另外一門語言實現的函數?例如 C 語言是否可以調用 Golang 實現的函數?注意我說的是同進程內調用,跨進程的 IPC、PRC 之類的技術不算。直接拋出這個問題的答案,同進程跨語言調用是可行的。在各種語言設計時,爲了複用其它語言生態中積累下來的大量的代碼資產,都會實現跨語言調用的機制。例如在 Golang 中,實現了 cg ⌘ Read more

⤋ Read More

go 語言是如何實現協程的
go語言的精華就在於協程的設計,只有理解協程的設計思想和工作機制,才能確保我們能夠完全的利用協程編寫強大的併發程序。Hi,我是 sharkChili ,是個不斷在硬核技術上作死的 java coder ,是 CSDN 的博客專家 ,也是開源項目 Java Guide 的維護者之一,熟悉 Java 也會一點 Go ,偶爾也會在 C 源碼 邊緣徘徊。寫過很多有意思的技術博客,也還在研究並輸出技術的路上 ⌘ Read more

⤋ Read More

聊聊 go 語言基於 epoll 的網絡併發實現
在之前的文章中我們已經介紹了 epoll 模型,而本文就從 go 語言源碼的角度來了解一下,go 語言是如何基於 epoll 模型完成高性能的網絡協程併發程序的。Hi,我是 sharkChili ,是個不斷在硬核技術上作死的 java coder ,是 CSDN 的博客專家 ,也是開源項目 Java Guide 的維護者之一,熟悉 Java 也會一點 Go ,偶爾也會在 C 源碼 邊緣徘徊。 ⌘ Read more

⤋ Read More

M a y b e p u t s p a c e s b e t w e e n t h e l e t t e r s t o t h w a r t t h e c r a w l e r s l i k e t h i s s o t h e y j u s t s e e i n d i v i d u a l l e t t e r s

⤋ Read More

Europe : état des lieux, avant fermeture ?
Les élections européennes approchent péniblement et plusieurs signes laissent penser que les peuples européens vont faire savoir vertement aux politiciens qu’ils ne sont plus trop d’accord avec la direction générale prise par les institutions européennes. C’est dans ce contexte forcément un peu tendu qu’ont récemment eu lieu des “concertations” entre l’Allemagne et la France ou, […] ⌘ Read more

⤋ Read More

Golang 實現枚舉的多種方式及最佳實踐
枚舉提供了一種表示一組命名常量的方式。雖然 Go 語言沒有內置的枚舉類型,但開發者可以通過常量 / 自定義類型來模擬類似枚舉的行爲。枚舉在編程語言中扮演着至關重要的角色,提供了一種簡潔而富有表現力的方式來定義一組命名常量。雖然像 Java 或 C# 這樣的語言提供了對枚舉的內置支持,但 Go 採用了不同的方法。在 Go 中,枚舉並不是一種原生的語言特性,但開發者有幾種技術可供使用,以實現類似的功能 ⌘ Read more

⤋ Read More

Valérie Hayer est visiblement nulle.
C’est le 2 mai qu’avait choisi BFMTV pour nous asséner le premier débat entre Valérie Hayer et Jordan Bardella dans le cadre de la campagne électorale pour les prochaines élections européennes de juin. À cette occasion, la tête de liste des macronistes a affronté pendant deux longues (trop longues) heures son homologue du Rassemblement National […] ⌘ Read more

⤋ Read More

La réelle faisant défaut, l’administration française va tenter l’intelligence artificielle
Avec les développements récents de l’intelligence artificielle, il apparaît clair que cette technologie va, progressivement, tous nous toucher d’une façon ou d’une autre : comme le mentionnaient ces colonnes il y a quelques jours, l’intelligence artificielle s’adresse à tous, et c’est tellement vrai que, comprenant la tendance et l’importance de s’inscrir … ⌘ Read more

⤋ Read More

I think @abucci@anthony.buc.ci and @stigatle@yarn.stigatle.no are running snac? I didn’t have a closer look at snac (no intention of running it), but if that is a relatively small daemon (maybe comparable to Yarn?) that gives you access to the whole world of ActivityPub, then, well, yeah … That’s tough to beat.

Yes, I am running snac on the same VPS where I run my yarn pod. I heard of it from @stigatle@yarn.stigatle.no, so blame him 😏 snac is written in C and is one simple executable, uses very little resources on the server, and stores everything in JSON files (no databases or other integrations; easy to save and migrate your data) . It’s definitely like yarn in that respect.

I haven’t been around yarn much lately. Part of that is that I’ve been very busy at work and home and only have a limited time to spend goofing off on a social network. Part of it is that I’m finding snac very useful: I’ve connected with friends I’d previously lost touch with, I’ve found useful work-related information, I’ve found colleagues to follow, and even found interesting conferences to attend. There’s a lot more going on over there.

I guess if I had to put it simply, I’d say I have limited time to play and there are more kids in the ActivityPub sandbox than this one. That’s not a ding on yarn–I like yarn and twtxt–I’m just time constrained.

⤋ Read More

100 rokov od narodenia Martina Jonáša
Martin Jonáš (1924-1996) je jedným z najvýznamnejších a svetovo najuznávanejších insitných maliarov slovenského pôvodu zo Srbskej republiky. Jeho maliarstvo sa stalo celosvetovo uznávaným vďaka veľkému počtu samostatných a skupinových výstav po celom svete a početným medzinárodným oceneniam a uznaniam. Jeho maľby sa vyznačujú vizuálne zvláštnym spôsobom zobrazenia ľudských postáv, nadrozmerných rúk a nôh, čím vzdáva uznanie fyzickej práci, č … ⌘ Read more

⤋ Read More