Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
RazrFalcon
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
RazrFalcon
2y ago
>RustyBuzz is quite limited when compared with HarfBuzz. As the main author of rustybuzz I'm surprised to hear this. If you need a text shaper, rustybuzz is mostly a drop-in replacement for harfbuzz. Text shaping and TrueType parsin
2.
▲
by
RazrFalcon
3y ago
While I do like Swift and wish Rust would look as nice, it doesn't have references and lifetimes. Those two alone make code way nicer. Anonymous closure arguments, aka $0, are probably the ugliest part of its syntax. numbers.cont
3.
▲
by
RazrFalcon
4y ago
At least Swift exists :) But sure, there are a lot of interesting languages out there. I would love to use something other than Rust, but there are simply no choice.
4.
▲
by
RazrFalcon
4y ago
You're basically describing Swift: public func read(path: URL) throws -> Array<UInt8> { let file = try FileHandle(forReadingFrom: path) let bytes = try file.readToEnd() ?? Data() return Array(byte
5.
▲
by
RazrFalcon
5y ago
>How much work would it be to port over the C# SVG→TinyVG converter to Rust based on resvg? Probably a day, as long as you know Rust. I can take a look into it if you're interested. usvg (the SVG parser of resvg) is specifically des
6.
▲
by
RazrFalcon
5y ago
A small nitpick as the resvg author: the repo located here https://github.com/RazrFalcon/resvg I'm not sure why the author linked some random, outdated fork. If you're trying to beat SVG, you should have done
7.
▲
by
RazrFalcon
5y ago
If you're looking for a small, fast CPU-based 2D library, you might be interested in https://github.com/RazrFalcon/tiny-skia Just like Skia, all pixel accesses is SIMD accelerated. It doesn't have C bindings,
8.
▲
by
RazrFalcon
5y ago
I'm sure you will be interested in https://github.com/RazrFalcon/resvg-test-suite From a quick glance, pixie should pass 10-20% of those tests. Yes, SVG is that complex.
9.
▲
by
RazrFalcon
5y ago
Well, it's based on SVG, which is also RGBA8888 sRGB only (effects can optionally use LinearRGB).
10.
▲
by
RazrFalcon
6y ago
>because they support binary dependencies Without an ability to tweak build flags. Which makes them useless. And since they are not really crossplatform either, you better stick with portage, which is still far behind cargo.
11.
▲
by
RazrFalcon
6y ago
Three chars limit for keywords and some std types, e.g. `Vec`, `len`, `str`.
12.
▲
by
RazrFalcon
7y ago
I'm using QtC daily too, and it's far from perfect. - It still can't handle most of the CMake projects. - Refactoring/autocompletion/go-to-definition doesn't work on a heavy-templated code. - Clang must be patc
13.
▲
Show HN: resvg – a better SVG rendering library
5 points
by
RazrFalcon
8y ago
|
1 comments
14.
▲
by
RazrFalcon
8y ago
I came here to write the same. svgcleaner[1] will reduce it from 8.4KiB to 1.3KiB (compressed with zopfli). Which is 85% smaller. And a manually crafted one is just 477B. And 261B compressed. Which is just 3% of the original. Now we can tal
15.
▲
by
RazrFalcon
8y ago
Yes. I have nVidia and it's a total pain. Not only with sublime.
16.
▲
by
RazrFalcon
8y ago
Glad that they have a lot of HiDPI fixes, but it still unusable on linux... [0] [0]: https://github.com/SublimeTextIssues/Core/issues/2028
17.
▲
by
RazrFalcon
8y ago
wine notepad.exe
18.
▲
by
RazrFalcon
8y ago
I'm not saying that you should ditch an existing C++ project. But it doesn't mean that C++ as good as Rust. It's just wrong.
19.
▲
by
RazrFalcon
8y ago
Yes. C++ has all of this in a crippled form. But it doesn't mean that C++ in on par with Rust.
20.
▲
by
RazrFalcon
8y ago
So nothing about ADT, pattern matching, modules, better std, explicit unsafe and cargo?
21.
▲
by
RazrFalcon
8y ago
Except Inkscape which is extremely slow. Especially on 4K.
22.
▲
by
RazrFalcon
9y ago
If we are talking about C++ then the problem is that there a too many build systems and all of them are incompatible. CMake is quite popular (and maybe most popular) but it's a complete horror in comparison to other build systems, espe
23.
▲
by
RazrFalcon
9y ago
SVG is not a colored paths container. There are far more things that it can do and far more ways to optimize it. Instead of SVGO you can use svgcleaner[1] with zopfli, which is a bit better. Yes, nothing compares to manual optimizations, bu
24.
▲
by
RazrFalcon
9y ago
>I know it will be supported by the community They won't. Projects like Atom and VSCode thrives because they have big companies behind them. Remove them - and the project will die. There are tons of abandoned text editors on GiHub.
25.
▲
by
RazrFalcon
9y ago
xi-editor looks like the best solution for me.
26.
▲
by
RazrFalcon
9y ago
There is DeaDBeeF on Linux which has the lowest appetite among GUI audio players.
27.
▲
by
RazrFalcon
9y ago
Can you provide a minimal example?
28.
▲
by
RazrFalcon
9y ago
Did someone try to render an SVG using it? I'm using QtWebKit for now, but it's just a huge pain.
29.
▲
by
RazrFalcon
9y ago
Yes. You can't beat PNG in low resolution, because it's hard to make SVG pixel-prefect on all resolutions. But on modern devices, with high DPI - it's not a problem. And you will get a high size reduction (but with some runti
30.
▲
by
RazrFalcon
9y ago
It doesn't supported well even in modern browsers. There are so many edge-cases that are completely ignored. Yes, you probably newer encounter them, but they are still there.
More ›