WebGPU
https://www.bilibili.com/read/cv15399968虽然,WebGPU还处于测试阶段,但已经可以在Chrome和Firefox中使用啦。做本地测试的同学可以使用Chrome Canary或者Firefox Nightly,只需要设置相应的flag就可以。(在正常浏览的时候建议不要开启WebGPU)
Chrome Canary: 在 about:flags 中,启用enable-unsafe-webgpuFirefox Nightly: 在 about:config中,设置dom.webgpu.enabledChrome Origin Trial 注册链接:https://developer.chrome.com/origintrials/#/trials/active
开发者们可以利用Chrome(94+)的Origin Trial,向Chrome申请WebGPU的权限,得到一个Token,放到HTML head里就可以使用特定的API,就可以发布WebGPU的应用给到端用户,在Mac,Windows和Chrome OS系统中都可以。用户不用设置任何的Ta ...
线程相关
suspend/resumethread_resume(xnu)ResumeThread(win32)noimpl(linux使用cond/atomic模拟)如何在join前启动线程 yield并检查是否启动(or pthread_kill?) 有点像冷启动pthread_yield_np(mac)/sched_yield
虚假唤醒=> 等待被打断 使用while判断 重新等待
ThreadPoolC++11 https://github.com/progschj/ThreadPoolPOSIX https://github.com/mbrossard/threadpoolAutoGrow https://github.com/lzpong/threadpool
闲话Swift协程https://www.bennyhuo.com/2021/10/11/swift-coroutines-01-intro/
deadlockLow cost runtime deadlock detection with checkpoints historyt ...
从原子等待说起
Parker(事件等待)WaitOnAdresshttps://github.com/mldbai/mldb/blob/master/arch/wait_on_address.cchttps://github.com/pitdicker/valet_parking/blob/master/src/futex/darwin.rsCross-platform atomic wait and wake (aka futex) functionality for Rust.https://github.com/m-ou-se/atomic-wait
os_unfair_lock_lock -> _os_unfair_lock_lock_slow -> __ulock_waithttps://www.jianshu.com/p/2d3e73f8357f
123#include <sys/syscall.h>#define SYS_ulock_wait 515#define SYS_ulock_wake 516
_dispatch_wait_on_addresshttp ...
编辑器记录
sciteNotepad++NotepadNextnotepadqq -> A simple, general-purpose editor for Linuxtexmacs
RedPanda-CPPSigillyxtextosaurusproxyee-downqt-creator
Notepad -> win32
博客主题
Terminalhttps://github.com/tinkink-co/hexo-theme-terminalBamboo -> like Butterflyhttps://github.com/yuang01/themeStellarhttps://github.com/xaoxuu/hexo-theme-stellarOne Paperhttps://zheli.design/one-paper/Yunhttps://www.yunyoujun.cn/Instapaperhttps://github.com/techmovie/hexo-theme-instapaperVolantishttps://volantis.js.org/Maupassanthttps://github.com/tufu9441/maupassant-hexohttps://www.haomwei.com/https://www.flysnow.org/Simpleblockhttps://jysperm.me/https://github.com/jysperm/hexo-theme-simp ...
C++库记录
stringPyStringstrtkstrsdsstdstring.h
chardetuchardet
lang detcld3
printpprintptc-print
inputscnlib
formatfmtprintftinyformat
logspdlogfmtlogbinlogEasyLoggerlog.clogurueasyloggingppglogquillNanoLoglog4cplus
typeproxyctti
objectobject - ownership-shared version of std::any and std::function and more std::object
sigslotnodsigslotjl_signalsignal-slot-benchmarkslibsigcplusplus
networkmuduoiperf3nghttp3Bare libuv bindings for lualuvtiny HTTP parser written in Cpicohttpparserdrogonhandykissnet
vpnopenv ...
simd库
simd库simdsimde使用 -> obs-studio (libobs)highwaylibsimdppxsimdvectorialasmjit
SIMDhyperscan/pcre2(jit)/re-flex -> regexsimdjson/sonic -> jsonmyhtml/html5ever? -> htmlblend2d -> painter2d -> asmjitispc -> program
用simd加速的库zlibzlib-ngimage scaleavirjsonsimdjsonsonic-cppjpeglibjpeg-turbobase64Turbo-Base64randpxartpixel/imagepixmanutfsimdutfdistance/vector similaritysimsimdsortx86-simd-sort
simd learnSIMD指令简单上手指南https://gitee.com/clover1994/cpplib/tre ...
图形相关
openglglutglbindinggladPangolinOpenGL-Renderererhefreetype-gllibtess2ogl -> www.opengl-tutorial.orgGLVraylibrayguimini3dTiny3DtinyEnginefreeglutexamples Examples for the OpenGL Red BookOpenGL-RegistryLearnOpenGLLearnOpenGL-CNnehe-openglvaserendereradaopenglexantons_opengl_tutorials_bookantons_opengl_tutorials_bookopengl-examplesGlitterglCapsViewerLLGLduilib
vulkanvolkvkvgvkbindVulkanTutorial_GLFWVulkan
metalMetalMinimal
gamerizzpacman.cStandardTetrisGame-GUI
rendertinyrendererMethaneKitfilame ...
cmake记录
cmakepp代码格式化cmake_format
cotirevcpkgCPM.cmakecmake-jshuntercmake-templatesqt6-conan-cmake-sample
macos123456xcode-select --installcurl -OL https://cmake.org/files/LatestRelease/cmake-3.23.1-macos10.10-universal.tar.gztar xzf cmake*.tar.gzmv cmake*/CMake.app /Applicationsrm -rf cmake*sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
-H。选项对CMake意味着什么?https://www.codenong.com/31090821/
视频播放器
mpviinasmplayerqmplay2ijkplayerphonon-mpv
mischplayermoonplayerAVbinbilibili-mac-clientnoirplayer
learnsimplest_media_playplayervideoPlayervideo-playerBiliLocal-OSXBiliLocalfplay
encode/decodeminih264