emacs29: update about musl build; collections

youtube:
- tsoding: neural network
- <C> : PDP-11 & Zork
- recover $2M crypto
This commit is contained in:
dongdigua 2023-01-05 11:25:29 +08:00
parent 68edabfda0
commit 63c095d8c2
6 changed files with 52 additions and 12 deletions

View File

@ -37,6 +37,7 @@ var data = [
"<a id=quote href=emgud2lraXBlZGlhLm9yZy96aC1jbi/pmLLngavplb/ln44K>It's confidential</a>",
"你说得对,但是《长安汽车》是由艺画开天自主研发的一款全新开放世界冒险游戏。",
"Emacs has Evil, but Vim doesn't have Magit",
"免费服务的代价就是你自己",
];
var index = Math.floor((Math.random() * data.length));

View File

@ -31,18 +31,13 @@
| g */# | 正/反查找光标下的词 |
| g d/D | 跳转到本地/全局定义 |
** visual
| key | usage | next |
|-----+--------------+------------------------|
| C-v | 矩形区域选择 | S-i 插入, esc 批量执行 |
** file/split
| key | usage |
|-------------+--------------|
| :n/:N | 文件之间切换 |
| :b | 切换到文件 |
| C-w h/j/k/l | 切换分屏窗口 |
| ZZ | :wq |
| :%!xxd (-r) | edit in hex |
* EMACS
:PROPERTIES:

View File

@ -4,6 +4,9 @@
2023 了, 元旦假期, 想体验一下新版本的 emacs, 我已经眼馋好久了
发行版还没提供? 自己编译, 而且自己编译可以自定义一些选项, 比如 pgtk
完整的新特性去看 =etc/NEWS= (btw, =emacs-news-mode= 也是新加的)
* build emacs (with musl?)
#+BEGIN_SRC sh
./configure CFLAGS="-march=native -O3 -pipe -finline-functions -floop-nest-optimize -ftree-loop-distribution" \
--with-x=no \
@ -12,10 +15,42 @@
--with-native-compilation \
--with-json \
--with-sqlite3 \
--with-tree-sitter
--with-tree-sitter \
--with-webp \
--with-gif
#+END_SRC
完整的去看 =etc/NEWS= (btw, =emacs-news-mode= 也是新加的)
现在 =dump-emacs-portable= 没法弄, 见: [[https://emacs-china.org/t/emacs-29-with-native-comp-dump/22762][emacs china: emacs 29 with native-comp 无法 dump]]
@@html:<details>@@
@@html:<summary>but what about musl? (CC=musl-gcc)</summary>@@
#+BEGIN_SRC text
checking whether GTK compiles... no
configure: error: Gtk+ wanted, but it does not compile, see config.log.
#+END_SRC
#+BEGIN_SRC text
<dongdigua> hello, I tried to build emacs with musl-gcc, but it says:
<dongdigua> error: Gtk+ wanted, but it does not compile
<dongdigua> it can build using normal gcc
<dongdigua> and it can build on voidlinux
<sam_> dalias: <3
<dongdigua> o_O
<sam_> dongdigua: you'd have to share some logs in full for us to help at all
<sam_> but you'd be better off asking your Linux distribution
<dongdigua> it is mostly `ld: error: unable to find library`
<dongdigua> sam_: so i think it is probably something about the wrapper script
<heat> musl-gcc (does not? should not?) pick up on host libraries because they
were built against glibc and not musl
<heat> so musl-gcc will not pick up on those
<heat> or at least they will just not work and will break configure
<dongdigua> heat: so I should use those libraries that is built on musl?
<dongdigua> like voidlinux I mentioned above
<heat> yes
<dongdigua> ok
ERC>
#+END_SRC
@@html:</details>@@
* 我 有切身体会/还没体验但是认为很不错 的新特性
** [[https://emacs-china.org/t/emacs/19806]["真" 背景透明]]
@ -25,6 +60,8 @@
** [[https://www.emacswiki.org/emacs/SmoothScrolling][平滑滚动]]
搜索 emacs29 蹦出来的
** elisp-byte-compile-file
** emoji 😀
** package-vc-install
@ -43,6 +80,4 @@
* 29.1
- =use-package=
- =*-ts-mode=
- more =*-ts-mode=

View File

@ -245,7 +245,7 @@ EvanMeek / B站: 美味的樱桃菌
*** [[https://hackflow.org][GNUman]]
**** [[https://hackflow.org/index.php/archives/124][谈 HTTPS 协议的缺陷与反 HTTPS 联盟的谬误]]
*** [[https://sh.alynx.one/][Alynx Zhou]]
口琴
口琴, author of =showmethekey=
**** [[https://sh.alynx.one/posts/Linux-Mooncake-Jokes/][Linux 用户的月饼食用手册]] :fun:
**** [[https://sh.alynx.one/posts/Do-Not-Fill-My-Email-with-Silly-Ads/][不要拿愚蠢的广告来污染我的邮箱]]
**** [[https://sh.alynx.one/posts/Emacs-Monaco-Box-drawing-Character/][Emacs 和 Monaco 字体和 Box-drawing Character]]
@ -316,6 +316,9 @@ how do I use that thing???
0:36 working
so [[http://flatassembler.net][fasm]] is really FAST, and [[http://kolibrios.org/en/][KolibriOS]] also use it!
but fasm don't support debug information (dwarf2)
**** [[https://youtu.be/WEk_grxrCcg][First Ancient Neural Network in C]]
intro: he talked about Russian gov and where to flee
inspiration: Veritasium
*** [[https://youtu.be/0rJ94rbdteE][Rust 让你感觉像个天才]]
*** [[https://youtu.be/nfF91Z6fqGk][CMD 登录B站]]
*** [[https://youtu.be/jlPaby7suOc][Every Clojure Talk Ever]]
@ -339,6 +342,7 @@ but fasm don't support debug information (dwarf2)
**** [[http://bit.ly/C_AtomicBrain][Atomic Brain?]]
*** [[https://youtu.be/XiFkyR35v2Y][Slow Loris Attack]]
*** [[https://youtu.be/kzdugwr4Fgk][The Kindle Text Problem]]
*** [[https://youtu.be/gYng1yypNCA][DEC PDP-11 & Zork]]
** Cyber Security
*** LiveOverflow
@ -353,6 +357,8 @@ but fasm don't support debug information (dwarf2)
"Security is a journey, not a destination!"
*** [[https://youtu.be/S4E4yAktjug?t=998][How To Become Invisible Online # level 3]]
*** [[https://youtu.be/I4_ide0tEG8][JH: zip files & hack... (CVE-2022-1271 zgrep/gzip)]]
*** [[https://youtu.be/dT9y-KQbqi4][How I hacked a hardware crypto wallet and recovered $2 million]]
even caught by police when he was a child
** Math
*** [[https://youtu.be/KufsL2VgELo][Group Theory]]

View File

@ -48,6 +48,8 @@ use libinput-gestures
** emacs tool-bar not working(cannot toggle and icon theme missing)
*** cannot toggle: disable custon =default-frame-alist=, or just use floating mode
*** icon theme missing: pgtk
and I can also have translarency,
it looked unreal after several months of solid background
** [[https://www.reddit.com/r/swaywm/comments/scz5k6/option_create_on_workspace_prev_on_outputnext_on/][Option --create on workspace prev_on_output|next_on_output?]]
this feature is not compatible with i3, so sway didn't accept the pr
*** [[https://www.reddit.com/r/swaywm/comments/mmfwnu/sway_command_workspace_next/][shell script solution]]

View File

@ -1,5 +1,6 @@
## Table of Contents
### Posts (sorted by time)
- [2023 了, 试试 emacs 29](emacs29_2023)<br>
- [Fix TTY after Fedora 37 Upgrade](fix_tty)<br>
- [狗日的腾讯会议](damn_tencent_meeting)<br>
上网课有感而发