20 karma · joined Oct 10, 2013 (13y ago) · 15 submissions
1.
Show HN: Gitfold – every Git branch as a folder, ready in a second(github.com ↗)
6 points · by pkuki · 2d ago · 1 comment
comment 5d ago · link · parent
comment 5d ago · link · parent
I recently created a project which utilizes FUSE to serve git files directly from object store without a checkout. Main motivation was to sepeedup a worktrees creation (I work on a huge monorepo). In my case it helps a lot - now I wait a second instead of a minute. But then I realised there are other interesting features which having vfs opened:
- tree structure of related branches (simplest case of that are stacked PRs) which rebases itself
- live preview of merge state or any node of such tree
- on demand creation of a new branch which merges any of the existing ones very cheaply (e.g for a throwaway build check)
- quick and simple comand which shows conflicting files between selected worktree and all others
- agents gets notified about such conflicts when they happen
I was able to design it in a way so git sees those virtual workspaces as normal worktrees, and all git commands works exactly as you would expect. So I think for some people, especially on the very big repositpries, it might solve a few problems they try to solve with jj.
https://github.com/pkukielka/gitfold
A few typical use cases: https://github.com/pkukielka/gitfold/blob/main/docs/guide.md
5.
Cryptocurrencies Revisited: A Different Approach(medium.com ↗)
3 points · by pkuki · 5y ago · discuss
6.
Cryptocurrencies Rethought: Taking a Step Back(medium.com ↗)
2 points · by pkuki · 5y ago · discuss
comment 11y ago · link · parent
comment 11y ago · link · parent
perf3 perf3 /
macros chars chars * 100
-------------------------------------------------
scala 15963 24885 64,15
nim 11121 20263 54,88
java 17969 53223 33,76
ocaml 7063 24371 28,98
coffee 2326 15653 14,86
racket 2461 17229 14,28
cs 5414 45039 12,02
clojure 1174 10099 11,62
ruby 1255 13247 9,47
go 3048 36321 8,39
vb 4523 58099 7,78
rust 4084 56516 7,23
js 1726 26437 6,53
c 3649 73047 5,00
haskell 1163 30115 3,86
python 304 19632 1,55
forth 563 44715 1,26
php 331 27332 1,21comment 12y ago · link · parent
In section 2.3 android is mentioned explicitly: "These features are more useful on Android (besides micro-benchmarks) where a vast RAM doesn't masquerade redundant allocations."
In section 5.2 you can read: "This prototype requires -target:jvm-1.7. Right now scalac doesn't produce the newest class file format of JDK8. In the meantime, -target:jvm-1.7 can be used on that platform. A discussion about performance at: https://groups.google.com/d/msg/scala-internals/uBxprJixpwk/...
If you will check that link first sentence in the thread is: "To recap, the new backend supports Java 6 and 7. In an experimental branch (based itself on the experimental backend) there's now support for MethodHandles, building upon "Late Closure Classes", ie the ability of the new backend to materialize anonymous closure classes as it emits bytecode."
So yes, it supports java 1.7. And yes, it can help on android.
comment 12y ago · link · parent
comment 12y ago · link · parent
The main problem which you will get with languages like Scala , Clojure and other functional languages on JVM is a lot of garbage generated during the execution. And garbage collector on Android isn't even remotely as effective as standard one. This often forces you to write code which is not really idiomatic and which rather resembles java. That is possible in Scala (I'm not sure about Clojure), but to some extend it defeats whole purpose of using something other than java.
Disclaimer: I'm the author of linked game.
comment 12y ago · link · parent
That being said I agree that jars are bigger and scala generates much more anonymous classes. Even with ProGuard that could be a problem on Android 2.3 or older. And ProGuard is a bit slow (for my game it was taking 30+ seconds for every build). Also Typesafe doesn't have plans for making scala first class citizen of Android.
So while Android development with scala is certainly possible there are few inconveniences which one should be aware of.