V2EX kidonng
kidonng

kidonng

V2EX 第 561977 号会员,加入于 2021-11-16 15:35:29 +08:00
kidonng 最近回复了
一看到标题就想到 sqlite https://opensource.apple.com/source/CPANInternal/CPANInternal-108/DBD-SQLite/sqlite3.c.auto.html

** This file is an amalgamation of many separate C source files from SQLite
** version 3.6.22. By combining all the individual C code files into this
** single large file, the entire code can be compiled as a one translation
** unit. This allows many compilers to do optimizations that would not be
** possible if the files were compiled separately. Performance improvements
** of 5% are more are commonly seen when SQLite is compiled as a single
** translation unit.

虽然说的是运行速度不是编译速度
一点想法,不一定对:

Q:为什么要有 `Origin`?
A: https://fetch.spec.whatwg.org/#origin-header
> The `Origin` header is a version of the `Referer` [sic] header that does not reveal a path.
通过不同 Referrer Policy 可以精准控制 `Origin` 和 `Referrer` 的发送

Q:为什么要有 `Referer`?
A: https://httpwg.org/specs/rfc7231.html#header.referer
> The "Referer" [sic] header field allows the user agent to specify a URI reference for the resource from which the target URI was obtained (i.e., the "referrer", though the field name is misspelled).
`Referer`(以及 `Origin`)作为重要的来源信息是默认发送的,此时尚不考虑跨域。

“非跨域请求时 HTTP 请求头有时候也会带上 Origin 头字段”实际上是默认行为,应该问的是“为什么有的时候不会带 Origin/Referer”,对此问题不同上下文有不同回答(见 https://www.w3.org/TR/referrer-policy/ 里“Integration with Fetch/HTML/CSS”),一句话概括大概就是“except in cases where the origin information would be sensitive or unnecessary.” ( https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin#description)。
前端框架推荐 Alpine.js ,可以说是“设计给后端”的框架,几乎无学习负担
CSS 框架自然是 Bootstrap 默秒全
2022-03-16 18:22:35 +08:00
回复了 asuraa 创建的主题 程序员 超小型 vps web 服务器语言和框架怎么选择?
能不动态尽量别动态吧...JVM 和 Go 肯定别了,可以考虑 Lua 或者 JS
数据库 sqlite ,也上不了更多东西了
@hingle 知乎好像也是
2022-03-11 21:08:13 +08:00
回复了 gaogaoa 创建的主题 云计算 天空计算会是云计算发展的未来趋势吗?
虽然不是完全对标,但 Terraform 不值得拥有名字吗
2022-03-10 10:27:18 +08:00
回复了 ifanrcloud 创建的主题 程序员 小程序的第六年,我们还能怎么玩?
@zhaol
> PWA 的推广是在开发人员之间,不是用户,就很难受。
PWA 是建立在国内并不存在的开放 Web 上的,这里只有“已停止访问该网页”和“下载应用查看全部内容”,推广不开和用不用户没多大关系。
2022-03-10 09:24:07 +08:00
回复了 dongse 创建的主题 Linux Linux 的/usr/bin 或者/usr/local 没有权限,如何安装软件
@ruanimal Brew prefix 了解一下
我发的文档里明白写着
> Can install software to your home directory and so does not require sudo
2022-03-08 19:03:42 +08:00
回复了 ifanrcloud 创建的主题 程序员 小程序的第六年,我们还能怎么玩?
@zhaol
> PWA 按道理来说应该由浏览器厂商来推广,但是好像人家也没这个必要,毕竟这只是一个技术标准。
浏览器厂商推的还不够多吗? Edge 团队自从转 Chromium 内核后掏心掏肺把原 Edge 的功能贡献给 Chromium 不说,在 PWA 方面的贡献更是功不可没。不夸张的说 Windows 目前是 PWA 体验最好的平台。
Chrome 几乎每个大版本都有 PWA 相关的特性,比如最近推迟发布的 window overlay controls 。
> 作为前端希望有生之年看到 PWA 崛起,然后替代 app ,小程序,甚至桌面端(好像现在也可以,但是还不够啊)
Telegram Web, Twitter, Google Photos 这些已经无限逼近原生应用的 PWA 已经证实了 Web 平台的能力了
但是这些和 T5 内核和 UC 内核之流没关系。
2022-03-08 17:03:00 +08:00
回复了 dongse 创建的主题 Linux Linux 的/usr/bin 或者/usr/local 没有权限,如何安装软件
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     920 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 14ms UTC 19:36 PVG 03:36 LAX 12:36 JFK 15:36
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86