杂七杂八-2210

  • HanKin的blog,有点东西: https://hankin2015.github.io/GitBook/

Ruby,Python,Perl oneline command (one-liner):

  • Perl: https://learnbyexample.github.io/learn_perl_oneliners/one-liner-introduction.html
    • example: id $USER | perl -pe 's/uid=(\d+).*/\1/g'
  • Ruby: https://learnbyexample.github.io/learn_ruby_oneliners/one-liner-introduction.html
    • ruby中-pe或者-ne模式下,if /regr/等同于if $_ =~ /regr/if !/regr/等同于if $_ !~ /regr/,puts用$_做默认参数
    • example: id $USER | ruby -ne 'puts $1 if /uid=(\d+)/'
    • example: id $USER | ruby -pe "gsub(/uid=(\d+).*/, '\1')"
    • equal to above: ruby -pe 'gsub(/uid=(\d+).*/, "\\1")', like perl
    • example: ruby -ane 'puts $F[1]' ... equal to awk '{ print $2 }'
  • Python: 要弱多了,没法做到上面那些像 sed awk 的工作,只能
    • example: python3 -c 'print("hello")', python2 已经不推荐使用了

RISC-V相关

  • 优秀的 Verilog/FPGA开源项目介绍(二)-RISC-V: https://zhuanlan.zhihu.com/p/423332071, https://www.risc-v1.com/thread-2268-1-1.html
    • 简单riscv实现(上文第一个提到): https://github.com/darklife/darkriscv
    • 顺序双发射(darkriscv提到): https://github.com/ultraembedded/biriscv

LUA相关

  • 中文翻译的5.3手册: https://cloudwu.github.io/lua53doc/manual.html
  • LUABridge,一个方便C++和Lua互动的库: http://vinniefalco.github.io/LuaBridge/Manual.html
    • 源码: https://github.com/vinniefalco/LuaBridge 。
  • Lua包管理器: https://luarocks.org/
  • Lua Standard Library: http://lua-users.org/wiki/StandardLibraries
  • 扩展易用性,添加os、文件操作: http://lua-users.org/wiki/ExtensionProposal
  • 电子书,Programming in Lua: https://www.lua.org/pil/contents.html

TOML相关

  • Ruby实现(符合TOML v1.0规范)
    • Perfect TOML,单文件纯ruby实现: https://github.com/mame/perfect_toml
    • toml-rb,基于Citrus解析库的实现: https://github.com/emancu/toml-rb
      • Citrus 解析器: http://mjackson.github.io/citrus/
    • tomlrb,基于Racc的实现: https://github.com/fbernier/tomlrb
    • gem上的toml,基于parslet实现,未支持toml v1.0: https://github.com/jm/toml
      • Parslet,一种解析器: https://github.com/kschiess/parslet, web:http://kschiess.github.io/parslet/

uArch畅想

  • Spilling Stack, 寄存器溢出栈
  • 微函数
  • DCCP指令
  • Super Stack,spilling stack加强版,但是却是Spilling Stack先构想出来

其他

C语言解析器相关:

  • http://marvin.cs.uidaho.edu/Teaching/CS445/c-Grammar.pdf
  • https://github.com/SilverScar/C-Language-Parser

C++名字处理,Demangle相关:

  • How To Mangle And Demangle A C++ Method Name: https://blog.oakbits.com/how-to-mangle-and-demangle-a-c-method-name.html
  • 使用gnu api做demangling: https://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_demangling.html

软路由方案讨论比较:https://www.right.com.cn/forum/thread-4074344-1-1.html,带主流软路由处理器性能表。

Windows工具:

  • 窗口置顶显示,Window TopMost Control: https://zhuanlan.zhihu.com/p/129355452
  • 截取置顶显示工具, PiP-Tool: https://zhuanlan.zhihu.com/p/86102994

沙盒软件,Sandbox, https://github.com/sandboxie-plus/Sandboxie