边界条件之场
66 subscribers
680 photos
4 videos
10 files
1.03K links
Do you hear the sirens sing?

main: @cvf_cha
group: @cvf_gro
forwards: @cvf_for
Download Telegram
oh wow it just works! #svelte #mdsvex #unifiedjs

等博客跑起来以后也许写篇文章说一说 mdsvex 数学支持的致命缺陷、怎么用 unifiedjs 生态替代并重新实现 mdsvex 的一部分功能、unifiedjs 在哪些方面显著优于 mdsvex。
🤨 有种报纸印刷的感觉
https://iotic.com/averia/
Forwarded from LetITFly News (LetITFly 让技术飞)
飞飞忽然想起了 Shadowsocks 原始作者 clowwindy 临走前在 GitHub 留下的那段话。

https://github.com/shadowsocks/shadowsocks-windows/issues/293#issuecomment-132253168

ShadowsocksR vs Shadowsocks
LSPosed vs EdXposed
边界条件之场
omg javascript 🤣 https://github.com/jashkenas/underscore/issues/406 https://youtu.be/SCPVDpyApgQ?t=504
「This definitely seems like a case where semantics should trump technical facts. [...] Putting the Gotcha in the docs – instead of fixing things to make sense to humans – just leads to less time coding and more time peering over documentation scratching your head.」
联想到最近那个赞美 react 在文档里把各种坑都列出来的帖子 🤣
前天才刚遇到这个问题 🤣
好在开始 debug 后很快就注意到了 devtools 里给的有用信息,意识到是 flex item 默认 min-width: auto 的古怪行为。

Defensive CSS - Minimum Content Size In CSS Flexbox
Source: https://www.youtube.com/watch?v=cH8VbLM1958

接触前端这短短几个月真的大受震撼,从来没见过其它东西像 html/css/js 这样充满「惊喜」的 😁
🤦‍♂️
刚才准备选一个非 web 技术的 gui 框架看看,意外发现之前那个很火的 rust 编辑器 Zed 昨天开源了(包括他们自研的 ui 框架 GPUI ):
https://zed.dev/blog/zed-is-now-open-source
1
草,egui 需要打包用到的字体,包了两个 sarasa ttf 之后 binary size 直逼 electron 🌚
😁1
边界条件之场
草,egui 需要打包用到的字体,包了两个 sarasa ttf 之后 binary size 直逼 electron 🌚
不像 web 框架有 hmr,egui 每次都要重新编译 🥴
(虽然有增量编译不算慢,但怎么也比不上 hmr 瞬时反馈来得爽
doing layout in immediate mode gui (egui) is so bad i miss html + css 🥴
边界条件之场
doing layout in immediate mode gui (egui) is so bad i miss html + css 🥴
ok, it's not too bad ...
in css you declare property & relation of boxes;
in egui you calculate desired dimensions with code, since it's a programming environment, everything you can express with css can also be expressed in egui, albeit sometimes more tedious.
边界条件之场
doing layout in immediate mode gui (egui) is so bad i miss html + css 🥴
容器无法提前得知子项的尺寸信息,又由于 immediate mode gui 帧与帧之间一般不保留尺寸相关信息,导致容器无法根据子项尺寸来调整自身尺寸。不过用户可以手动在一帧的末尾把各种尺寸存下来供下帧参考。
理解这点之后在 immediate mode gui 里写各种 layout 就很顺畅了 😌