News for hackers. Stuff that matters.

pbsurf

Re:Website Is Just an SVG on Sunday September 14, 2025 @12:32PM (#45241132)
Another SVG website: https://styluslabs.com/
Re:OSMAnd vs. Organic Maps on Thursday September 04, 2025 @02:17AM (#45124137)
No business, just me!
Re:OSMAnd vs. Organic Maps on Thursday September 04, 2025 @02:14AM (#45124123)
Yes, you can download any region and set of layers for offline use.
Re:OSMAnd vs. Organic Maps on Wednesday September 03, 2025 @06:46PM (#45121188)
I've been building https://github.com/styluslabs/maps with support for 3D terrain, custom layers, and plugins for search and routing.

Vector tiles are generated and served on-demand by https://github.com/styluslabs/geodesk-tiles so there's no need to download an entire country or region first.

This is great! I recently built a simple project to generate and serve vector tiles on demand from a GOL file: https://github.com/styluslabs/geodesk-tiles
Re:A community-led fork of Organic Maps on Monday May 12, 2025 @12:19PM (#43964712)
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.
Re:Serving Vector Tiles, Fast on Sunday April 06, 2025 @02:07AM (#43599293)
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
Re:Show HN: 3D Terrain simulation for hiking, skiing etc. on Sunday January 12, 2025 @12:06PM (#42674956)
I'm working on https://github.com/styluslabs/maps - has Sentinel-2 imagery, slope angle shading and custom slope shading including slope aspect.
Re:Ask HN: What are you working on (August 2024)? on Saturday August 24, 2024 @09:00PM (#41343384)
https://github.com/styluslabs/maps - open-source maps app
Re:Using Qt for Mobile in 2023 on Monday December 25, 2023 @09:25PM (#38768414)
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

Juries, perhaps?
Excellent until the charging ports burn out, requiring a motherboard replacement: https://forums.lenovo.com/t5/ThinkPad-X-Series-Laptops/X1-Ca...
Re:Vector graphics on GPU on Wednesday August 10, 2022 @04:39PM (#32418093)
GPU vector graphics library I released a few years ago: https://github.com/styluslabs/nanovgXC - basically a new backend for nanovg that supports arbitrary paths. Coverage calculation (for analytic antialiasing) is explained a bit here: https://github.com/styluslabs/nanovgXC/blob/master/src/nanov...
Re:Advice for the next dozen Rust GUIs on Saturday July 16, 2022 @02:43AM (#32115781)
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.
Re:Bicycle Recommendations on Wednesday February 23, 2022 @03:41AM (#30439045)
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
Re:Ask HN: Who wants to collaborate? on Tuesday February 01, 2022 @03:54PM (#30169118)
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

Re:Witeboard on Sunday October 04, 2020 @01:52AM (#24676798)
Take at look at https://github.com/styluslabs/stylusboard - no web client but native apps for all major platforms
Re:Ask HN: How to do cross platform GUI? on Sunday August 23, 2020 @09:25AM (#24251758)
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

Re:PDF: Still unfit for human consumption, 20 years later on Tuesday August 11, 2020 @10:29AM (#24120610)
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

Re:Fast 2D Rendering on GPU on Sunday June 14, 2020 @01:24AM (#23515328)
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.

Seems to be the only one here with real stylus support - pressure sensitivity and draw with pen, pan with finger. Very nice!
I've added shared whiteboarding to my handwriting app: http://styluslabs.com/share It is possible to deploy your own server.
Re:Write – A word processor for handwriting on Tuesday August 28, 2018 @10:46AM (#17859156)
I'm hoping to add some rough OCR to allow searching in the future. In the meantime, if you turn off pressure sensitivity (Pen menu -> Custom Pen), you'll get raw strokes in the SVG instead of filled paths.
Re:Write – A word processor for handwriting on Tuesday August 28, 2018 @10:27AM (#17859000)
Creator here. Although the site hasn't been updated in a while Write isn't dead - there will be a major update coming out in a few months.
Re:Cirrus Vision – Single-engine personal jet aircraft on Saturday May 20, 2017 @11:02AM (#14382685)
Fuel consumption works out to between 2 and 4 mpg, depending on payload.
Re:Closing in on high-temperature superconductivity on Tuesday September 20, 2016 @01:43AM (#12537348)
Three groups published essentially the same results in the same issue of Science:

Greiner group: https://arxiv.org/pdf/1605.02704.pdf

Zwierlein group: https://arxiv.org/pdf/1606.04089v1.pdf

Bloch group: https://arxiv.org/pdf/1605.05661v1.pdf

Re:San Francisco May Let Bicyclists Yield at Stop Signs on Tuesday October 20, 2015 @11:22PM (#10423488)
at the next stop sign he just cruised to the stop sign in the 2 foot space between the cars and the curb and blocked slowed down even more cars

If the cyclist passed you and even more cars already at the stop sign, that implies that if, instead of passing him, you simply followed him as you would have any other vehicle, you would have ended up in the same place in the queue of motor vehicles at the stop sign. Thus you saved zero time by passing the cyclist.

In city traffic, the average speed of a cyclist can easily be greater than the average speed of motor vehicle, yet many motorists, perhaps not understanding the difference between maximum speed and average speed, insist on rushing past cyclists at the first opportunity, safe or not, just to stop and wait at the next intersection.

Re:Cheap FPGA Development Boards: What to look for on Sunday August 03, 2014 @11:42AM (#8128203)
Another option is http://www.zedboard.org The MicroZed has a Zynq 7010, 1 GB DDR3, gigabit Ethernet and USB 2 for $199.
The Dart and nearly all other wall-plug AC to DC converters use a rectify-invert-rectify method. They first rectify the 50/60Hz mains AC to DC, then convert it back to AC at much higher frequencies in the kHz - MHz range, or in the case of the Dart, hundreds of MHz, and finally rectify it again to produce the final DC output. For a given amount of power output, at higher frequency less energy has to be stored in the circuit per cycle (i.e. stored in reactive elements like capacitors), which enables more compact components to be used.
Re:SF’s Housing Crisis Explained on Tuesday April 15, 2014 @03:52AM (#7590794)
I'd like to see all taxes replaced by a wealth "tax" in the form of a voluntary--not coerced--payment to the state for the service of recognizing and protecting one's ownership of a piece of property. Payment would be encouraged by the fact that if an individual failed to pay the tax for some property, someone else could take it from them, pay the tax, and become the legally recognized owner, leaving the original possessor with no legal recourse.

Older »