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 Ask HN: What RSS Reader do you use?
After a long time without RSS, I had to make the most minimal reader myself: https://zserge.com/posts/rss/ Sources are on github: https://github.com/zserge/headline
zserge··on Kirc – A tiny IRC client written in POSIX C99
as well as a file-based tiny IRC client in C: http://tools.suckless.org/ii/
zserge··on Kirc – A tiny IRC client written in POSIX C99
suckless did something similar: http://tools.suckless.org/sic/
zserge··on C++ was the fastest growing programming language in Sept according to TIOBE
They provide some additional information, but not the exact algorithm: https://www.tiobe.com/tiobe-index/programming-languages-defi...
zserge··on Golang Desktop App with Webview/Lorca, WASM and Bazel
I like the approach of go-winloader, I'd be happy to include an example of using it with webview into the readme. I agree, including 2 DLLs on Windows is ugly, however I believe that using CGo for webview would be a long-term win, because new features of webview may emerge in webview.h and they will be available in all language bindings immediately, including Go. I might be wrong, but I think if there is a solution to include both DLLs (webview.dll and WebView2Loader.dll) into a single executable in Go - that could simplify life for everyone.
zserge··on Show HN: Kvak.io – Online Notepad
That's cool! Reminds me of old notepad.cc and https://onthesamepage.online/ with very similar mechanics and philosophy, but for visual drawing.
zserge··on Show HN: Awk-JVM – A toy JVM in Awk
AWK is a very underappreciated language from the past, simple and fun to use. You did a very nice job, thanks!
zserge··on Why I Use Suckless Tools
As per their own definition, "suckless" != "does not suck", but rather "software that sucks less".
zserge··on Tmux for Mere Mortals
I've been using those for some time, before I met German keyboards with weird layouts. Now I try to stick to alphanumeric symbols only.
zserge··on Show HN: 33 line React
Nice project! I've also recently made a React clone in <1KB, with JSX syntax and Hooks - https://github.com/zserge/o
zserge··on Working remotely: I want my shared whiteboard
When working remotely as a contractor I made a tiny whiteboard - https://onthesamepage.online/about I still use it for quick notes and spontaneous collaboration, since there are no accounts or registrations - it takes a few seconds to onboard a person. Also I was surprised that German school are using it (it’s heavily focused on privacy and requires no personal information). Sorry if it sounds like shameless promotion, but for me it was hard to find an alternative, something as simple as notepad.cc in its days, but for doodling.
zserge··on Ask HN: What projects are you working on now?
Finally getting back to webview[1] and lorca[2], but also made a toy chess engine[3] today.

[1]: https://github.com/zserge/webview

[2]: https://github.com/zserge/lorca

[3]: https://github.com/zserge/carnatus

zserge··on NeutralinoJS: Lightweight Electron alternative using native browser controls
Webview author here. I have to mention that neutralino is based on a slightly outdated webview, the new version is to be merged in March, which includes EdgeHTML and Edge/Chromium support on Windows.
zserge··on NeutralinoJS: Lightweight Electron alternative using native browser controls
Yes, there is webview-x branch that is to be merged in March, that uses Edge (both variants of it) as the default engine on windows.
zserge··on Show HN: Tiny and utterly useless ReactJS clone (exercise in minimalism)
It's terribly slow and inefficient. Although, if your layout is mostly static and new components are rarely added/removed (or if performance does not matter to you) - why not? But hey, I warned you :)
zserge··on Small C Compilers
Sorry, blog layout has changed since then. https://zserge.com/posts/cucu-part1/
zserge··on Prototype: Puppeteer for Firefox
Huh. That's great news. Time to add Firefox support to Lorca lib, I guess.
zserge··on Tibetan musical notation
I've made a toy page for it - https://naivesound.com/klavar/ Click on the columns to put a note, add more height if needed, edit the title, then print it to PDF. I often use it to write down simple melodies when playing the piano. Also, there are two blank PDF templates - https://github.com/naivesound/naivesound.github.io/tree/mast...
zserge··on Show HN: Skit – minimal presentation slides for the CLI
Nice! Resembles Trikita's Slide app (shameless plug, used it in several conference talks). https://github.com/trikita/slide and https://github.com/zserge/slide
zserge··on Show HN: PowerPoint slide builder with handwriting
Yes, I actually plan to make it a pwa and now am in progress - offline sync is a bit problematic (I wish all browsers supported PWA), but I'm getting closer.
zserge··on Show HN: PowerPoint slide builder with handwriting
I don't want to be that shameless, but https://onthesamepage.online does just that. I use it for sketching diagrams and mind maps daily. Not for presentations, but can export to PNG and SVG. Also kind of collaborative (I often use it alone, but from both tablet and laptop at the same time).
zserge··on Show HN: PowerPoint slide builder with handwriting
Looks great! I recently tried to make something similar where one could simultaneously sketch on a tablet and on a laptop - https://onthesamepage.online/about
zserge··on Carlo – Web rendering surface for Node applications
I started a webview project some time ago, and I see some people using it in their projects - https://github.com/zserge/webview Basically, it provides some high-level APi over a native system webview (WebKit or IE, depending on the OS).
zserge··on Carlo – Web rendering surface for Node applications
It probably might be a good idea to make a similar Chrome-based backend for https://github.com/zserge/webview to provide consistent browser engine for all OSes.
zserge··on Create a simple cross-platform desktop game with Go
Integrating Edge is my dream. However there is no C API unlike MSHTML. I still have hopes on cppwinrt though. Any help in this direction is highly appreciated.
zserge··on Create a simple cross-platform desktop game with Go
Webview author here. It does not require local web server actually, it allows to inject js, css, HTML in runtime and bind go structs to is objects through the API, so the result is a self contained web app with no server. Although using a local web server may be more convenient to most web developers.
zserge··on Ask HN: What should I use to write native desktop apps for Ubuntu?
Alternatively, all modern desktop OSes come with decent browser engines built in. You may use https://github.com/zserge/webview for a common simple API on top of the native webviews and it allows you to build small executables (<10MB) that don't consume too much memory.
zserge··on Show HN: Chromely – Lightweight Alternative to Electron for .NET and .NET Core
Hey! Original Webview author here. I am aware of the issue of MSHTML vs Edge, and I would really love to support Edge. With the new cppwinrt included into Windows SDK it should be possible - it's just plain C++17 (and then we need a small C wrapper to make it compatible with Cgo). But so far I'm failing miserably to even build a minimal WPF app using cppwinrt. Still, the hope remains, and any help is highly appreciated.

Or maybe we should build a separate DLL for Edge and call it from the webview library? Not sure how that will work with the UWP packaging. Any expert knowledge is highly welcome and I'm open to the discussions.

I was also thinking about adding CEF bindings using dlopen, so that one could compile a binary, drop it into CEF "Release" directory and run. But I'm not sure whether it's a good idea. CEF is heavy. But it's the same on all platforms. I wonder what do people think about it?

zserge··on Electron 2.0.0 beta
I agree with you, and I tried my best to change things.

A few years ago I made Anvil - a React-ish framework for Android for native UI (reactive, declarative, works best with Redux) and have been using it in many production apps as long as I was doing Android development. But it still is a niche product, most developers prefer visual UI editor and whatever is the official Google way to do Android apps. Still, I'm very proud of Anvil.

https://github.com/zserge/anvil

Then, once I had to deal with desktop apps I figured out that HTML/CSS/JS seems to be the best option for custom (no native widgets) and modern (animations, shadows, nice fonts etc) UI. But Electron was a heavy beast, so I made a tiny wrapper over native browser engines (webviews). So far I'm very happy with it, it's much lighter and smaller than electron. And it's very convenient to use from C++ or Go. Some kind people added Rust and Nim support, I'm now working on Python and Node.js bindings. So yeah, it's pretty much language-agnostic, although it's still web UI.

I really hope it can take it's niche for small desktop apps that don't need the full power of Electron, yet need to have a good look.

https://github.com/zserge/webview

zserge··on LCUI – A small C library for building user interfaces with XML and CSS
To be fair, it's not that bad (I have made a couple of apps based on the webview) - IE11 is a rather decent browser supporting all the niceties from CSS3, flexbox etc. It's not that different from making layouts for web pages, when you have to support IE11 anyway. All the IE11 pitfalls are covered on stackoverflow, so it didn't feel like wasting much time to make windows version of the app look exactly like linux or macOS.
← PreviousPage 3 of 7Next →