HNHacker News
TopNewBestAskShowJobs

zserge

587 karma · joined April 13, 2012

Hey, I'm Serge. Born in Ukraine, living in Munich, MSc in Software Engineering, brought up with a love for simple things, now doing all sorts of software development, mainly Go, C/C++, JavaScript and Python.

https://zserge.com

submissionscomments
zserge··on Tmux 2.0 released
May I suggest a more lightweight alternative for Tmux/Screen/DVTM sessions - http://zserge.com/blog/mucks2.html ?
zserge··on The state of Clojure on Android
Totally agree with you! Kotlin is great replacement for Java on Android. I like to see that more and more interesting libraries appear for Kotlin, like Anko. I recently made Anvil compatible with Kotlin (http://zserge.com/blog/anvil-kotlin.html), which makes UI development a pleasure
zserge··on Ask HN: Brag about open-source projects you're proud of
At the moment Anvil is my favourite child:

- https://github.com/zserge/anvil - a new reactive UI library for android. It totally changed the way I develop android apps now.

Also there is some tiny ones, but found useful over the years:

- https://bitbucket.org/zserge/jsmn/wiki/Home - JSMN, a very fast and lightweight JSON parser for embedded systems

- https://bitbucket.org/zserge/mucks - A wrapper for Tmux/Screen/DVTM to keep persistent terminal sessions. Usefule when you use terminal as an IDE

- https://bitbucket.org/zserge/gambiarra - minimalist Lua unit-testing library

zserge··on Ask HN: What OS do you run?
Thinkpad x120e + Gentoo is the only development machine I run (still looking for a newer 12" thinkpad to replace this one). There is also ubuntu installed in the chroot (for android firmware builds) and a few docker containers with various OSes.

In theory I can survive with any OS/platform, since my primary tools are tmux+vim+zsh. I use them for android development (Java, Kotlin), for web (JavaScript, Golang), for embedded systems (C, Lua).

So the only two apps that I keep always open is a full-screen terminal and a browser. Probably even Chrome OS would be comfortable for me :)

zserge··on Loading 180 tiled images with HTTP/2 vs. HTTP/1
Does anyone know when the HTTP/2 client for Go will be available? And, are they likely to include http/2 into a standard net/http package?
zserge··on Show HN: Anvil – a tiny reactive android UI library
It should be available as:

    <dependency>
        <groupId>co.trikita</groupId>
        <artifactId>anvil</artifactId>
        <version>0.0.2</version>
    </dependency>
Gradle:

    compile 'co.trikita:anvil:0.0.2'
zserge··on Show HN: Anvil – a tiny reactive android UI library
I've just published the release today, it should be available within the next few hours. Meanwhile you can build it from the github sources.
zserge··on Ask HN: Who are your favorite poets?
Definitely, Brodsky. Unfortunately, not many of his poems were written in English, and only a few were translated.

  All the huskies are eaten. There is no space
  left in the diary And the beads of quick
  words scatter over his spouse's sepia-shaded face
  adding the date in question like a mole to her lovely cheek.
  Next the snapshot of his sister. He doesn't spare his kin:
  what's been reached is the highest possible latitude!
  And like the silk stocking of a burlesque half-nude
  queen it climbs up his thigh: gangrene.
zserge··on Keys: Musical Keyboard with Gesture Controls, Modularity, and LEDs
Are these full-size keys?
zserge··on Cello – Higher Level Programming in C
> To compile Cello requires a C99 compatible C compiler.

In fact, it fails to compile with -std=c99, it seems to require GNU extenstions, that's why they have -std=gnu99 in their Makefile. They use ##__VA_ARGS__, which is not in the C99 and AFAIK there is no portable way to make a workaround.

zserge··on Poll: What is your primary editor?
sam is here, but no acme?
zserge··on Angular 2 Core
You might want to have a look at Mithril, it's extremely minimalistic and fast: lhorie.github.io/mithril/mithril.html
zserge··on State of the Lua Ecosystem (2013)
Thanks! Config file looks like a powerful way to customize builds. But am I right saying that I will have two configs (for host and target) and I will have to pass --force-config option to toggle them?
zserge··on State of the Lua Ecosystem (2013)
Oh, thanks for a prompt response! I personally got stuck with LuaRocks and cross-compilation for our MIPS board. Probably it was lack of documentation or lack of my knowledge. So instead I manually crafted most of the packages we needed either from scratch or by writing custom makefiles for existing ones (that was more than a year ago).

The whole idea of rockspec looks very nice to me and I totally support it.

But can I keep a global aka system rocktree and a per-project local trees? (Pardon my ignorance, I really don't know that). Per-project trees make deployment a lot easier.

Also, why can't "luarocks" or "moonrocks" be a single executable/script? Isn't it easier to get user just a download link instead of: "download it here, unpack, configure, make build, make install, now use it to install moonrocks"? (Also, I'm not saying that it's a very complex procedure, I know most people can do it easily, but that leaves an impression that the LuaRocks project is not very user-friendly).

zserge··on State of the Lua Ecosystem (2013)
So, LuaRocks contains just 330 packages and doesn't look like the best package manager for Lua (and they also have a terrible website as for me).

If a community here wants to make things better - let's meet somehow and discuss it.

Then if, say, each of 5 Lua developers converts 1 package per day in their free time then in about three months the whole list of packages will be converted.

Anybody?

zserge··on State of the Lua Ecosystem (2013)
How does LuaRocks implement the cross-compilation? Lua is widely used on embedded platforms, so I wonder how easy it will be to just take a random module from the LuaRocks and build/deploy it for some MIPS or ARM board?
zserge··on Go 1.4 now supports Android
That's definitely good news, but seems like it's far from what was planned for Go support for Android (there was a document on Google Docs about it this summer).

They seem to fixed the linker, leaving the networking issues open so far. And I'm not really sure about the *.so generation for Dalvik/ART, Java bindings generator tool and other planned tasks. I saw some mentions in the go.mobile repo a while ago, but this issue still doesn't have a release assigned: https://code.google.com/p/go/issues/detail?id=6342

zserge··on Go generate: A proposal for a Go preprocessor
I personally like this solution. I don't know why there's so much negative opinions on this. Yes, it doesn't solve the problem of generics as a language construct and it doesn't provide macros as a language construct. But it gives a lot of power for many other real-life applications like embeddeding/processing some content or generating type-safe bindings/wrappers/parsers/collections/...

It's an extension of a build system, not a language. It helps to specify build process details right in the source files that either depend on it, or provide necessary details for it. This approach worked for CGo, it worked for +build flags, so I don't see why it will not fit in this particular case.

One thing I worry is how to get the processor app during the build process. E.g. if bindata is used to embed a file - how will "github.com/jteeuwen/go-bindata" be installed?

zserge··on Show HN: Tmuxomatic – An intuitive and flexible session manager for tmux
Nice concept, but the configs still look write-only to me.

Here's my two cents: https://bitbucket.org/zserge/mucks

Much-much simpler, and definitely less intuitive, but supports screen and dvtm as well: http://zserge.com/blog/mucks2.html

zserge··on Poll: If Yoda was a programmer, what would be his go-to language?
If it is C - he would write "if (42 == answer) ... " instead of "if (answer == 42) ..."

http://en.wikipedia.org/wiki/Yoda_conditions

zserge··on A framework for making 2D DOS games in Lua
My assumption is that since DosBox simulates the same hardware on different platforms/OSes - it's possible to write a DOS game once and enjoy it on Linux, Windows, Mac, Android etc. Cross-platform games with retro flavor, why not?
zserge··on Show HN: Solid, a scripting language with a tiny VM
Can VM be built separately from the compiler, so it could be used on small MCUs?
zserge··on Show HN: Solid, a scripting language with a tiny VM
Great job! I was looking for a small and simple embeddable language (smaller than Lua) for a long time. Solid looks very promising to me.
zserge··on Another Android Markup Language (a very simple one)
Good question. Now I use "android:" namespace by default (if no other namespace was given). So, for custom namespaces you write "mynamespace:foo", for android namespace - just "foo". I've just updated AAML to use prefix "=:foo" for default namespace or no namespace. If you prefer other syntax for empty namespace - you are welcome to suggest!
zserge··on Can a person be identified by just the way they type?
OK, that may work with a hardware keyboard, but what about a manner of typing on on-screen keyboards? Will I be able to log in from the tablet or phone?
zserge··on How To Retarget the GNU Toolchain in 21 Patches
Great tutorial! I wish there was a similar article for LLVM/Clang.
zserge··on ShowHN: obsqr QR scanner - bringing minimalism to Android
Clickable links: https://bitbucket.org/trikita/obsqr/wiki/Home https://play.google.com/store/apps/details?id=trikita.obsqr
zserge··on Try Haxe
Haxe is a nice language, though I don't like it's verbosity (hey, it's almost like Java!). Maybe I'm too much spoilt with coffeescript, ruby, python and other syntax-sugary languages.
zserge··on Loop: a programming language for the JVM inspired by Haskell and Ruby
I wish it was ported to Android platform.
zserge··on How to make a Text Adventure
Yes, the developer is from Russia. But there's a nice english documentation as well: http://instead.syscall.ru/wiki/en/gamedev/documentation Plus, INSTEAD supports URQ games that have a much more simplified syntax.
← PreviousPage 6 of 7Next →