duangsuse::Echo
#life 虽然没有休息好(仅是不连续两天没熬夜)这几天还是会恢复程序🐒日常。 今天的计划可能是处理下 parse4kt 的 PR, #web 重写下铝板酱的五子棋,和页面元素打砖块,最好还有 #Python mvng 的 repo 创建一下,我挺想对上面给 JPEXS 贡献的代码做个点评(就一 op_load(try {} catch(IOException ) {} ) 逻辑 尽是冗余)但还是算了 #math 日常精神分裂: A: 突然想起来数学老师之前问的一个逻辑问题,「有 A,B 二岛,A人说真…
https://github.com/fork-handles/forkhandles/issues/6#issuecomment-771646358
那个PR issue 终于结束了…… 极其生草
https://gist.github.com/duangsuse/0e13cf4d45158345c08c9d94144a4d5a 项目结构和源码
那个
https://gist.github.com/duangsuse/0e13cf4d45158345c08c9d94144a4d5a 项目结构和源码
GitHub
[parser4k] Add by delegates for .with caching · Issue #6 · fork-handles/forkhandles
object MinimalCalculator { val cache = OutputCache<BigDecimal>() fun binaryExpr(s: String) = inOrder(ref { expr }, token(s), ref { expr }) val number = oneOrMore(oneOf('0&...
#Android #GitHub #旧事重提 #security #opensource #gua https://t.iss.one/EdXposed/96 🌝?? 什么情况?一个人 rm /data/data 一个人 rm /sdcard ,大狂欢?!
Telegram
[ZH/EN] EdXposed Official
#Announcement FOR ZH-CN ONLY
【关于2020年5月16日恶意代码版本分发的回应和致歉公告】
据有关人士统计,当日下午五点左右,先后有3人利用EdXposed Auto Update Channel Server和AppVeyor CI的漏洞和GitHub Pull Requests功能向EdXposed开源仓库中提交恶意代码,约两小时后神经元提交修复PR覆盖恶意构建并关闭(图一)
漏洞细则: EdXposed Auto Update Channel Server会自动从AppVeyor…
【关于2020年5月16日恶意代码版本分发的回应和致歉公告】
据有关人士统计,当日下午五点左右,先后有3人利用EdXposed Auto Update Channel Server和AppVeyor CI的漏洞和GitHub Pull Requests功能向EdXposed开源仓库中提交恶意代码,约两小时后神经元提交修复PR覆盖恶意构建并关闭(图一)
漏洞细则: EdXposed Auto Update Channel Server会自动从AppVeyor…
#statement #cplusplus #csharp #golang #service #zhihu 🌝原来是容易被高估啊
“ 哦,会C#,写过游戏服务器,那么想必懂Windows编程,也知道怎么写服务端。
好了,写个C++的服务端吧,不许用大型framework哦
直接调用Windows API, IOCP走起,Proactor,线程池,无锁队列来一套。
压力测试 conn10k 起步,不许有内存泄漏,不许崩溃哦。
这对于精通 C# 和 GO的老程序员来说很简单吧,特别是你连GC这么复杂的东西都能掌握,C++程序员们连GC是啥都不知道呢。
“ 哦,会C#,写过游戏服务器,那么想必懂Windows编程,也知道怎么写服务端。
好了,写个C++的服务端吧,不许用大型framework哦
直接调用Windows API, IOCP走起,Proactor,线程池,无锁队列来一套。
压力测试 conn10k 起步,不许有内存泄漏,不许崩溃哦。
这对于精通 C# 和 GO的老程序员来说很简单吧,特别是你连GC这么复杂的东西都能掌握,C++程序员们连GC是啥都不知道呢。
Forwarded from Rachel 碎碎念 (Rachel 看到我请去复习)
https://github.com/Ray-Eldath/TelegramWordCloud
从 Telegram 导出的 JSON 格式的聊天记录生成词云的工具。
@ray_eldath 大佬太强了!!
从 Telegram 导出的 JSON 格式的聊天记录生成词云的工具。
@ray_eldath 大佬太强了!!
GitHub
GitHub - Ray-Eldath/TelegramWordCloud: Generate word cloud from Telegram chat history.
Generate word cloud from Telegram chat history. Contribute to Ray-Eldath/TelegramWordCloud development by creating an account on GitHub.
Rachel 碎碎念
https://github.com/Ray-Eldath/TelegramWordCloud 从 Telegram 导出的 JSON 格式的聊天记录生成词云的工具。 @ray_eldath 大佬太强了!!
#Java #DontKnow 真不错,连 OpenJDK JMH 和 java.nio 都会用,而且是 Java 11
Gradle 的 repository 和 subproject 果然 Maven 模仿不了啊
Gradle 的 repository 和 subproject 果然 Maven 模仿不了啊
GitHub
Ray-Eldath/whatever
Scala, Cats, Kotlin, JMH, x86, MIPS, Modern C++, and more... - Ray-Eldath/whatever
#functional #Scala https://github.com/Ray-Eldath/whatever/blob/master/main/src/main/scala/cats/Show.sc 范畴论实践,有 Boolean, Number 等
https://github.com/Ray-Eldath/whatever/blob/master/main/src/main/kotlin/ray/eldath/whatever/dsl/MeetingDSL.kt #Kotlin 新特性回顾,初入 Embed DSL
https://github.com/Ray-Eldath/whatever/blob/master/main/src/main/java/ray/eldath/whatever/LambdaBytecodeExampleJava.java#L26 #Java annotation 语法于数组的小细节 #PLT ,话说作者写好多 bytecode example... 编译看字节码的么
https://github.com/Ray-Eldath/whatever/blob/master/x86/protected_bubble_sort.asm#L52 #asm x86 冒泡排序, :internal 和 :external 是指 while {} 内外,后方可见 inc eax, cmp, jle 指令。
https://github.com/Ray-Eldath/whatever/blob/master/mips/fib.a#L40 #asm MIPS fib(n) 计算,话说
不过说起来也只有会写 C 的人能看汇编😋 GC 和 libc 用惯了会不知道栈空间 jal&j $ax、segment/mmap、interrupt/ivt 是干什么的说。
不过这么看 C 也解决了很严重的 sizeof 整数长度问题啊,这样代码就可移植了,虽然不能像 Java Python 去 Run Anywhere 。
作者在 test/kotlin 下也有写评测
还测了 IntRef+ parallelStream() forEach, reduce 的正确性🤔
当然也有 reflect MethodHandle 的测试代码
他真的对语言 Intrinsic 很了解啊
https://github.com/Ray-Eldath/whatever/blob/master/main/src/main/kotlin/ray/eldath/whatever/dsl/MeetingDSL.kt #Kotlin 新特性回顾,初入 Embed DSL
https://github.com/Ray-Eldath/whatever/blob/master/main/src/main/java/ray/eldath/whatever/LambdaBytecodeExampleJava.java#L26 #Java annotation 语法于数组的小细节 #PLT ,话说作者写好多 bytecode example... 编译看字节码的么
https://github.com/Ray-Eldath/whatever/blob/master/x86/protected_bubble_sort.asm#L52 #asm x86 冒泡排序, :internal 和 :external 是指 while {} 内外,后方可见 inc eax, cmp, jle 指令。
https://github.com/Ray-Eldath/whatever/blob/master/mips/fib.a#L40 #asm MIPS fib(n) 计算,话说
fib(n) = (n>0)? fib(n-1)+fib(n-2) : 0; 这种方法我之前都没用过,一直是 (n<=2)? n : recur(n) 的,思维定势不过说起来也只有会写 C 的人能看汇编😋 GC 和 libc 用惯了会不知道栈空间 jal&j $ax、segment/mmap、interrupt/ivt 是干什么的说。
不过这么看 C 也解决了很严重的 sizeof 整数长度问题啊,这样代码就可移植了,虽然不能像 Java Python 去 Run Anywhere 。
作者在 test/kotlin 下也有写评测
还测了 IntRef+ parallelStream() forEach, reduce 的正确性🤔
当然也有 reflect MethodHandle 的测试代码
他真的对语言 Intrinsic 很了解啊
GitHub
Ray-Eldath/whatever
Scala, Cats, Kotlin, JMH, x86, MIPS, Modern C++, and more... - Ray-Eldath/whatever
#cplusplus #PLT #typing 支持用 concept 实现 Sum Type 了...
欸这不是 overload 吗,所以... 是用了 constexpr 优化啊
template<typename T>
concept Sum same_as<A,T> || same_as<B,T>;
template<Sum T>
void check(T status) {
if constexpr (is_convertible_v<T, A>) {}
} 欸这不是 overload 吗,所以... 是用了 constexpr 优化啊
GitHub
whatever/sum_type.cpp at master · Ray-Eldath/whatever
Scala, Cats, Kotlin, JMH, x86, MIPS, Modern C++, and more... - whatever/sum_type.cpp at master · Ray-Eldath/whatever
Rachel 碎碎念
https://github.com/Ray-Eldath/TelegramWordCloud 从 Telegram 导出的 JSON 格式的聊天记录生成词云的工具。 @ray_eldath 大佬太强了!!
#endFork 以上就是 Ray-Eldath/whatever 的全部内容
main/ 及 perf/ 里的 Scala,Kotlin,Java 范畴论及字节码测试
mips/ 和 x86/ 汇编代码里约 1/8 的摘录
cpp20/ 里 pick 的一个内容
大佬基本和我同岁(大一)
https://ray-eldath.me/ #recommend #science
main/ 及 perf/ 里的 Scala,Kotlin,Java 范畴论及字节码测试
mips/ 和 x86/ 汇编代码里约 1/8 的摘录
cpp20/ 里 pick 的一个内容
大佬基本和我同岁(大一)
https://ray-eldath.me/ #recommend #science
Ray Eldath's Blog
#java #cs #DontKnow Integer.valueOf 的缓存机制 (即 (Integer)x==x 的左范围)
#functional 妈的,函数式和 SICP 现在自造词还不一样了,应用序 vs. 传值、正则序 vs. 传表达式(或是传惰性?)...
#JS #CSS #PLT HTTP #backend #blog 大佬的面试经历 我终于知道cs是学啥了🤔 杂学
#rust #PLT #tt https://edward40.com/tagless-final-in-rust 呃... 看来Ray说自己很菜是有道理的,是我见得少了,没想到同道这么多🌝
https://9bie.org/index.php/archives/635/ 超星邀请码... 这又一个 pwn #Security 的
https://cnblogs.com/Dillonh #oi #dalao 是 cnblogs... 上次一个 commajia 大佬也是
#functional 妈的,函数式和 SICP 现在自造词还不一样了,应用序 vs. 传值、正则序 vs. 传表达式(或是传惰性?)...
#JS #CSS #PLT HTTP #backend #blog 大佬的面试经历 我终于知道cs是学啥了🤔 杂学
#rust #PLT #tt https://edward40.com/tagless-final-in-rust 呃... 看来Ray说自己很菜是有道理的,是我见得少了,没想到同道这么多🌝
https://9bie.org/index.php/archives/635/ 超星邀请码... 这又一个 pwn #Security 的
https://cnblogs.com/Dillonh #oi #dalao 是 cnblogs... 上次一个 commajia 大佬也是
Edward Elric
Tagless Final in Rust
总所周知学习 Java 逃不开对各类设计模式的理解运用。今天千里冰封介绍了一个全新的设计模式——"Tagless Final" Style, 它可以用 trait 在 Rust 中模拟子类型。 第一步实现目标 实现一个 expr…
#cplusplus #English #PLT #ce #parsing #llvm https://zhuyi.fan/post/write-a-bf-compiler-with-joy.html
🌝🌚 看来是 CS ,爱了爱了
https://raptazure.github.io/posts/purs-react/ #functional #JS #tt #English 草这又是个大佬... 类型论大佬都喜欢英语
#oi #school #life 这位同学亲切一点,好像还在学德语🤔
🌝🌚 看来是 CS ,爱了爱了
https://raptazure.github.io/posts/purs-react/ #functional #JS #tt #English 草这又是个大佬... 类型论大佬都喜欢英语
#oi #school #life 这位同学亲切一点,好像还在学德语🤔
zhuyi.fan
Write a BF Compiler with Joy
Post Write a BF Compiler with Joy of Personal Blog: Schrodinger's Utopia. Discuss about codegen, esolang, llvm, parser, peg, programming here!
duangsuse::Echo
🐦 #statement #cs 不能轻视任何一个人,因为他们都有你所没有过的经历,做到过你未曾做到的事情 我就是一个喜欢发现的人,从不听「智商决定论」。世界上没有智商高了就能自动覆盖的技巧和领域,只要经历过就是价值。
菜鸡竟是我自己! #statement
应该说部分大佬在保证 cs 实践能力的前提下爱好丰富,艺术、科学造诣比我高到不知哪里去了(我对艺术不太感兴趣,对科学没时间了解 也懒得翻译论文什么的)
当然他们接触 cs 的时间比我长很多就是了,OI 大佬应该是有地区性的(不像 cs 研究的比较多、跨主要领域的也多),即便在全体里也是少数,不愧是大佬们啊。
应该说部分大佬在保证 cs 实践能力的前提下爱好丰富,艺术、科学造诣比我高到不知哪里去了(我对艺术不太感兴趣,对科学没时间了解 也懒得翻译论文什么的)
当然他们接触 cs 的时间比我长很多就是了,OI 大佬应该是有地区性的(不像 cs 研究的比较多、跨主要领域的也多),即便在全体里也是少数,不愧是大佬们啊。