Forwarded from GreaterFire 大火酱
trojan的话 因为后面是个http服务器 所以除了trojan的连接都会连到http上去
#PL #project https://github.com/duangsuse/Lite
前几天写的一门脚本语言解释器,可惜没做完转战 GeekApk 后端服务器了(逃
现在一堆 bug,不过看样子体积或许是最小的了,好耶!
前几天写的一门脚本语言解释器,可惜没做完转战 GeekApk 后端服务器了(逃
现在一堆 bug,不过看样子体积或许是最小的了,好耶!
GitHub
duangsuse/Lite
😃 一个写了几天浪费青春浪费时光的垃圾 JVM AST 解释器脚本语言. Contribute to duangsuse/Lite development by creating an account on GitHub.
def System.getEnv # Java 这里比较 emmmmm.... 没有用标准的方法名风格
return System.getenv() # Just an alias of System#getenv
System.env::HOME #=> "/home/dse"
# instead of
System.getEnv()::HOME
import android.widget
import android.view
def LinearLayout.add(view)
self.addView view
def Button.new
return Button(ctx) # or Button(lite[:ctx])
layout << Button.new
# instead of
layout.addView(Button(ctx))
a = { self: nil }
def a.new(obj)
a->self { obj: obj }
a->print { print self.obj }
aa = a.new 1 + 1
aa.print()
如果是 @a 就直接用
@a->new do |obj| 吧
技术相关:https://ohmlang.github.io/editor/#ca3aae7d3a44999d72acd0c0e2d7750d 目前有一个 bug 的语法规则,请看 issue
https://github.com/duangsuse/Lite/issues/7 Lite AstJson 序列化标准
https://github.com/duangsuse/Lite/issues/7 Lite AstJson 序列化标准
GitHub
Lite AST JSON Serialization #7
Lite JSON Ast node type, file, line, column nodes compstmt statements : node[] block block_type: : string (program, brace, do, def, flow, loop, scope) arguments ...
另外 #geekapk 目前依然是在咸鱼(不)做的
可以在 GeekApkR 组织里查到,不过最新动态都在组里讨论
https://bbs.letitfly.me/d/680/4 可以看到一部分(昨天晚上想了一会我修改了关于评论和应用模型的两个细节)
可以在 GeekApkR 组织里查到,不过最新动态都在组里讨论
https://bbs.letitfly.me/d/680/4 可以看到一部分(昨天晚上想了一会我修改了关于评论和应用模型的两个细节)
bbs.letitfly.me
GeekApk 后端设计 - LetITFly BBS,不仅仅是 MyAndroidTools BBS
目前貌似 duangsuse 抛弃之前 eclipse 的那个废物而且没有代码的项目跑了,新计划是只使用 Spark 框架, Gson 和 Psql 的 JDBC Driver
使用 IDEA 强力编写,只注重于代码(
使用 IDEA 强力编写,只注重于代码(
duangsuse::Echo
def System.getEnv # Java 这里比较 emmmmm.... 没有用标准的方法名风格 return System.getenv() # Just an alias of System#getenv System.env::HOME #=> "/home/dse" # instead of System.getEnv()::HOME import android.widget import android.view def LinearLayout.add(view) self.addView…
所以可以写这样的优雅代码,在一个大约 100k 的运行时上(Android 不需要额外 org.json 的情况下)(因为自从创建了 JsonAst 标准后就把 Lite 解析器和 JsonAst 解释器分开了)
A = {}
def A.new(o)
ret = {}
ret->self { obj: o }
ret->print { puts self.obj }
return ret
end
aa = A.new 1
aa.print
cc = A.new "deep"
cc->foo do |i|
return i + self.obj
end
puts cc.foo("It's fucking ") #=> It's fucking deep#Java 每次使用 Gradle 我都几乎卡死,所以我直接不用 Gradle, maven 大法好
(不使用守护进程也一样卡死,而且它使用 Javac 编译的时候怕是直接开在一个虚拟机上了,真是纸张,JavaC 过后一堆垃圾对象占用巨多内存)
(不使用守护进程也一样卡死,而且它使用 Javac 编译的时候怕是直接开在一个虚拟机上了,真是纸张,JavaC 过后一堆垃圾对象占用巨多内存)
Forwarded from 永久封存 | Yuuta 台 | 😷 #Pray4Wuhan (Yuuta)
每次执行 gradle build 相关操作风扇疯转((
Forwarded from 永久封存 | Yuuta 台 | 😷 #Pray4Wuhan (Yuuta)
duangsuse::Echo
Photo
(那个 string interpolation 是有问题的,我修改一下
It's fucking $@fucking_text )Forwarded from Solidot
Visual Studio Code 可能将取代 Visual Studio
种种迹象显示,微软著名的 IDE Visual Studio 将被它的开源编辑器 Visual Studio Code 所取代。这些迹象包括:Visual Studio 至今不支持 64 位,Visual Studio 免费的社区版和专业版几乎没有差异;Visual Studio Code 的开发更为活跃;随着微软将注意力从 Windows 转移到 Azure,它不再需要一个只运行在 Windows 上的 IDE,相比之下 VS Code 免费且有跨平台支持,支持所有现代编程语言。Visual Studio 代表着辉煌的过去,而 VS Code 有着更光明的未来。Media
https://www.solidot.org/story?sid=56413
种种迹象显示,微软著名的 IDE Visual Studio 将被它的开源编辑器 Visual Studio Code 所取代。这些迹象包括:Visual Studio 至今不支持 64 位,Visual Studio 免费的社区版和专业版几乎没有差异;Visual Studio Code 的开发更为活跃;随着微软将注意力从 Windows 转移到 Azure,它不再需要一个只运行在 Windows 上的 IDE,相比之下 VS Code 免费且有跨平台支持,支持所有现代编程语言。Visual Studio 代表着辉煌的过去,而 VS Code 有着更光明的未来。Media
https://www.solidot.org/story?sid=56413