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 FOSDEM 2018 schedule
Sorry for an off-topic question, but does anyone know where to park a car not far from the university overnight? It's our first year at FOSDEM, and we would like to avoid driving to the center of the city only to leave the car there. Thank you.
zserge··on Show HN: Eel – a simple Python library for making little HTML GUI applications
A similar project, but for C/C++/Go (using gtk-webkit, cocoa-webkit and mshtml):

https://github.com/zserge/webview

Does not require a web server (uses JS-to-native bindings instead), which might be a benefit.

zserge··on Show HN: Audiovisual sequencer for tweet-sized JavaScript animations
I have been working on Glitch for a while. Not forcefully limited to short tweet-size tunes, it makes generative music from simple chiptunes [1] to something more advanced [2].

I would be happy to answer any questions, if you are interested in!

It's open source and new version is coming soon - https://github.com/naivesound/glitch

[1]: http://bit.ly/2ib97gq (parser seems to trim the last parenthesis, so I had to use URL shortener)

[2]: http://bit.ly/2gQDWKM

zserge··on Using Java 9 Modularization to Ship Zero-Dependency Native Apps
On Windows 7 SP1 it uses IE11. Same on Windows 10. On some Windows 8 it might use IE10, which is still not that bad.

Sorry, can't tell much about xls/doc. It's aimed to be a web UI for your app. Normally, you app would be a web server then. So if you want to handle certain requests and open external apps - you surely can do it.

zserge··on Using Java 9 Modularization to Ship Zero-Dependency Native Apps
Since Go and Electron are mentioned, let me offer a web UI library for Go: https://github.com/zserge/webview (I know UI has been a problem for Go apps for a while and is often a stopper when it comes to writing desktop apps in Go).

The library creates a full-screen webview window and lets you write UI code in HTML5/CSS/JS connecting it to the core app logic written Go. It provides JS-to-Go bindings allowing to call Go code from JS and vice versa.

The whole library is a single header file of ~800LOC with a thin Go wrapper. It supports Windows 7+, MacOS, Linux and OpenBSD.

Executables are 5-10MB in size and take about the same amount of RAM. No external libraries are used on Windows and MacOS, on Linux gtk-webkit is required, but it is typically one "apt-get" command to run.

zserge··on Show HN: Tiny cross-platform web UI library for C and Go
I am working on some small audio/music related apps, such as Glitch (https://github.com/naivesound/glitch) and I wanted a custom, cross-platform UI. I also tried to stay away from Electron because it's way too heavy for such a simple task. So far this webview library fits nice in this niche - memory usage is only a few MB or RAM, binaries are small, too.
zserge··on JDK 9 General-Availability Release
To me JDK9 and Jigsaw sounds like a viable alternative to Electron. Cross-platform, well-known mature language, distributable standalone app bundle includes the runtime and takes ~15-30 MB zipped or ~80MB unpacked on disk (I tried swing UI, but I would expect JavaFX to have similar results). I don't remember RAM usage details (I tried it a few weeks ago), but I wouldn't expect it to be higher than Electron's.
zserge··on Firefox Focus – A new private browser for iOS and Android
You should be able to download such APKs from F-Droid or its fancier "frontend" - https://fossdroid.com/a/firefox-klar.html
zserge··on Apple Pulls 60 VPNs from China App Store
Unfortunately, this method has been blocked years ago. Well, not blocked completely, but the speed slows down to zero (packet loss grows up to 100%) within a couple of minutes making it practically unusable.
zserge··on Fantastic DSLs and where to find them
I can give Anvil as an example (https://github.com/zserge/anvil). It's a DSL for writing Android view layouts in Java and Kotlin. The DSL looks nicer than linear code of creating views and binding their properties, its look follows the hierarchy of the views, and the way it works results in a very fast rendering mechanism.
zserge··on Opera is Reborn
I know that launchers normally detect when the package was installed/uninstalled. That's how they refresh the list of app icons. And launcher is just a regular app with no special permissions. I think some kind of an intent is broadcasted when the list of apps is changed.
zserge··on Litho: A declarative UI framework for Android
Another React-like alternative is Anvil - http://trikita.co/anvil/
zserge··on Material Design Color Tool
Shameless plug: http://0xrgb.com (similar to flatuicolors, which was using Flash by that time), 0xrgb also includes ios, tango, solarized and material color schemes.
zserge··on A Thank-You Note to the Hacker News Community from Ubuntu
I believe that the major pitfall here is that the feedback you've received is mostly about the changes that people want to see. However if we consider the number of people who want Gnome vs the number of those who want Unity 8 vs the number of conservative users who like Unity 7 as it is now - the results might be different.

I personally am very happy with the current Unity. I find it intuitive and more aesthetically pleasant/polished than Gnome Shell (I've only used that as it comes with Ubuntu Gnome).

So please, don't drop current Unity. Or if you have to switch to Gnome Shell - please keep the user experience as close as possible to the current Unity to help users migrate.

zserge··on RedMonk Programming Language Rankings: January 2017
"A noble spirit embiggens the smallest man." (Springfield town motto)
zserge··on ParTcl – a micro Tcl implementation
When I made partcl, I also wrote a brief post of why+how I implemented it: http://zserge.com/blog/tcl-interpreter.html I tried to keep data representation separate from the main interpreter code, so if one needs to use binary data or real lists - he may only rewrite a small part of code.
zserge··on Partcl – a tiny command language
Memory management? Most Lisp implementations have a GC, while Tcl in its simplest form has no concept of a reference, and thus there is no need for a GC - everything is passes by value. For example, a simple `sl5.c` example below leaks all the memory it ever allocates.
zserge··on Coroutines in C, revisited
I've recently made a similar protothread/coroutine library for embedded systems where local continuations can be either setjmp or goto or case labels. Nothing fancy, but perhaps someone find it useful: https://github.com/zserge/pt
zserge··on Marp: Markdown Presentation Writer
Also, there is http://trikita.co/slide for Android and a standalone https://github.com/trikita/slide-html with very similar goals
zserge··on With React Native it’s not all sugar and spice
Just to mention, if you enjoy Kotlin - you might want to try Anvil+Bansa. It is like React+Redux, but for Kotlin (or Java). Resulting APKs are much smaller than React Native and don't rely on jni code.

http://anvil.site/

https://github.com/brianegan/bansa

zserge··on Show HN: Slide – an open-source plain text presentation maker
Thanks for the feedback! Slide is not something we're selling or trying to make profit of (in any form - no ads, no spying, no analytics, open source). We made a few presentations with it for internal company meetings, but that was mostly just text that I find very boring to share.

Below in this thread there is an example of a slide text, PDF and SlideShare upload. It should give an impression of how it looks like and how it works.

I agree that a presentation on the web site would make more sense, but I can't think of a good idea for the presentation, while some fake artifical example is not much different from what you see on the screenshots.

Finally, once you open the app - it starts with a quick tutorial which is a presentation itself. It was supposed to be a quick start for new users, as well as an example.

zserge··on Show HN: Slide – an open-source plain text presentation maker
Thanks, I understand your point, and I sincerely don't want it to become a thread of infinite disagreement. But text slides can be helpful.

I often use just text. I rarely use images (no kittens or meme picures, images are good only if they really illustrate what you're saying). My slides are just text, lists and short code blocks.

(for the company meetings I use whiteboard instead of slides more and more often. I illustrate what I speak about in real time and keep people's attention. And I illustrate only when I see people don't follow my words).

People are good creatures, but we are so easily distracted. If someone missed what I just said and I have text slides - he may look at a slide and get the idea.

Also, people are bad a multitasking. If you are saying one thing and slide describes something additional or even different - people will lose their focus. If your audience could close their eyes and not fell asleep - they would be able to get 100% of what you are telling them. But they keep their eyes open. Their eyes focus on you, or their neighbors in the audience, on their phone screens or watches etc. It distracts. Having large, short, clear slides keeps their focus on what you're saying.

So right, it all depends on the audience, how they are interested in your presentation topic and how well you perform on the stage.

zserge··on Show HN: Slide – an open-source plain text presentation maker
There is also Remark.js that converts Markdown into HTML slides - https://github.com/gnab/remark

Also, I'm working on an HTML/JS Slide version - just download it and edit HTML contents. It uses the same markup as in Android Slide and no build system is needed, just edit, press F5, see how it looks like.

https://github.com/trikita/slide-html

zserge··on Show HN: Slide – an open-source plain text presentation maker
Slide can be an option for people with different mindset - like some people prefer Markdown for documentation, while others are happy Word or Writer. Also Slide is a mobile app, so it's suitable for last-minute presentation makers, who do it on a plane, when using a laptop may be inconvenient.
zserge··on Show HN: Slide – an open-source plain text presentation maker
Not really, but here's what I've just made on my phone in five minutes (don't think of it as of a "serious" presentation, I just wanted to show how exported slides look like):

http://www.slideshare.net/SergeZaitsev/slide-201606051659

The raw PDF is available on Google Drive - https://drive.google.com/open?id=0Bztexa2TJWdcdlZXRk1MSTVoNj...

The text I typed on my phone to make this presentation is:

    #SLIDE
    
    #make a presentation
    (even if you got no time to make one)
    
    content *is* important
    
    #Takahashi
    #method
    
    • short text
    • big font
    • many slides
    
    @http://www.magic4walls.com/wp-content/uploads/2015/10/two-lines-between-black-and-white-circles-minimalism-wallpaper.jpg 140% top
    minimal

    #opensource
    http://github/trikita/slide

    #Feedback
    #appreciated!
The theme is the default white-on-black theme.
zserge··on MicroG Project: A re-implementation of Google’s Android apps and libraries
So this does not affect app developers, but rather firmware developers, right? Also, do these libraries end up talking to Google backends or there is a choice to use some other backends with compatible API? Sorry for a newbie question, I tried my best to avoid Google APIs in my APKs so far, so I don't really know much about them.
zserge··on Kotlin 1.0 Released: Pragmatic Language for JVM and Android
And here are some examples of using Anvil with Kotling: https://github.com/zserge/anvil-kotlin-demos
zserge··on Kotlin 1.0 Released: Pragmatic Language for JVM and Android
I designed my reactive mvvm micro-library (https://github.com/zserge/anvil) for Android with kotlin in mind, and so far it saved me lots time. Kotlin+Android is a great choice.
zserge··on Kotlin for Android Developers
That's why Anvil has the lightweight concept of "renderable" - it's just a lambda with view hierarchy declaration, which can be put anywhere you find appropriate in your architecture - in activities, fragments, in self-contained components, in special dedicated "view" layer classes, you can move common parts into separate styles module etc etc. Since you have the full power of your programming language you are free to refactor it any way you like. Anvil has no restrictions on that.
zserge··on Kotlin for Android Developers
Done. I will try to cover more within the next few days, hopefully I will add an example to `anvil-examples` repository and make a blog post tell more about recent changes in Anvil.
← PreviousPage 4 of 7Next →