pbsurf
|
5 months ago
|
on: Nicu's test website made with SVG (2007)
pbsurf
|
6 months ago
|
on: OSMAnd vs. Organic Maps
No business, just me!
pbsurf
|
6 months ago
|
on: OSMAnd vs. Organic Maps
Yes, you can download any region and set of layers for offline use.
pbsurf
|
6 months ago
|
on: OSMAnd vs. Organic Maps
pbsurf
|
9 months ago
|
on: OpenPlanetData – Free Daily Planet OSM PBF and GOL Indexed Snapshots
pbsurf
|
10 months ago
|
on: A community-led fork of Organic Maps
I'm working on
https://github.com/styluslabs/maps/ including a new 3D map engine (based on Tangram-ES) and JS plugin support, so while there is no offline routing yet, support for additional online routing services can be added by users.
pbsurf
|
11 months ago
|
on: Serving Vector Tiles, Fast
I've built a server for generating OpenStreetMap vector tiles on demand from a GeoDesk database, which is barely larger than an .osm.pbf (100GB vs. 80GB for current planet.osm.pbf) - much smaller than a PostGIS instance:
https://github.com/styluslabs/geodesk-tiles
pbsurf
|
1 year ago
|
on: Show HN: 3D Terrain simulation for hiking, skiing etc.
pbsurf
|
1 year ago
|
on: Ask HN: What are you working on (August 2024)?
pbsurf
|
2 years ago
|
on: Using Qt for Mobile in 2023
I believe QML ListView actually does support kinetic scrolling - Qt calls it "flicking". To get behavior closer to React Native, it might work to decrease the value of the Flickable flickDeceleration property [1].
That said, my troubles with Qt's performance and behavior on mobile led me to create my own cross-platform GUI library: https://github.com/styluslabs/ugui/
[1] https://doc.qt.io/qt-6/qml-qtquick-flickable.html
pbsurf
|
3 years ago
|
on: BBC offices in India raided by tax officials amid Modi documentary fallout
Juries, perhaps?
pbsurf
|
3 years ago
|
on: Tell HN: The ThinkPad X1 Carbon is an excellent MacBook replacement
pbsurf
|
3 years ago
|
on: Vector graphics on GPU
pbsurf
|
3 years ago
|
on: Advice for the next dozen Rust GUIs
Getting sufficient antialiasing quality for 2D graphics is difficult on GPUs.
https://github.com/memononen/nanovg accomplishes this with GL2/GLES2 level hardware for most of the stuff one would want to render as part of a GUI. My project
https://github.com/styluslabs/nanovgXC supports rendering arbitrary paths with exact coverage antialiasing, but requires GLES3.1 or GL4 level hardware for reasonable performance.
pbsurf
|
4 years ago
|
on: Bicycle Recommendations
Regarding aluminum vs. steel - I've had two aluminum frames crack after a couple years of normal riding (no crashes). Trek, to their credit, honored their warranty and replaced the bikes. Given enough time, aluminum will always fail; steel will not:
https://en.wikipedia.org/wiki/Fatigue_limit
pbsurf
|
4 years ago
|
on: Ask HN: Who wants to collaborate?
I'm working on computational chemistry, with the very long-term (decades) goal of designing molecules (proteins/enzymes) for things like artificial photosynthesis and molecular computing (chips still rely on the bulk properties of semiconductors; for miniaturization to continue, at some point it will become necessary to design molecules to function as logic and interconnect).
See https://github.com/pbsurf/chem
pbsurf
|
5 years ago
|
on: Witeboard
pbsurf
|
5 years ago
|
on: Ask HN: How to do cross platform GUI?
For my cross-platform app, I was originally using Qt for desktop platforms and Android. I was fairly happy with Qt on the desktop, but less so on Android, in part because I was using Qt Widgets - Qt Quick is the newer, preferred way to build GUIs in Qt, at least for mobile. Around 2016 I started looking into an iOS port - at the time, Qt for iOS was fairly immature and there was (is?) some uncertainty about licensing requirements for statically linking Qt on iOS. Having already spent more time than I wanted fighting various problems with Qt on Android, I decided to consider alternatives and ended up creating my own SVG-based GUI library that I now use across desktop and mobile:
https://github.com/styluslabs/ugui
pbsurf
|
5 years ago
|
on: PDF: Still unfit for human consumption, 20 years later
One way that SVG could be used for multipage documents is with a convention that the top-level <svg> tag is the document and child <svg> tags are the pages - this is what I do in my app. I also use the fact that gzip files can be created with independently decompressible blocks to create svgz files with page-level random read access [1].
But another barrier is that browsers refuse to support SVG fonts. One supposed reason for this, the lack of hinting support in SVG fonts, is less relevant now with high DPI displays - macOS no longer does hinting at all I believe. The additional effort to support SVG fonts is really minimal [2], so it seems strange that it's intentionally omitted.
[1] https://github.com/styluslabs/ulib/blob/master/miniz_gzip.h
[2] https://github.com/styluslabs/usvg
pbsurf
|
5 years ago
|
on: Fast 2D Rendering on GPU
I've just released a fork of nanovg that does GPU rendering a bit like Pathfinder, so it can support arbitrary paths - nanovg's antialiasing has some issues with thin filled paths. It also adds support for dashed lines.
https://github.com/styluslabs/nanovgXC
If you give it a try, let me know how it works for you.