Article 48: Try to load an SVG image, I dare you.
>>60608382
Just use https://github.com/RazrFalcon/libsvgparser ? Of if you are unhappy with it, you can roll your own easily with a parser combinor library like nom.
SVG is an XML-like markup language for vector graphics. Parsing an SVG file is something that Rust should be really performant at, since it has algebraic data types.
>>60608382
>Parsing an SVG file is something that Rust should be really performant at, since it has algebraic data types.
Rustfags and their buzzwords. Like saying Parsing stuff in C should be really performant because it has for loops.
>>60608502
How about something a little bit more meaty than an xml parser with some extras? Like, say, an equivalent of librsvg? Heck I'll settle for librsvg bindings.
Rust is so far away from production ready it's laughable
>>60608382
Funny that you picked that example. Gnome's SVG rendering library is migrating to Rust from C: https://www.phoronix.com/scan.php?page=news_item&px=librsvg-2.41-Rust
>>60608721
>no Rust bindings
>>60608679
>Rust is so far away from production ready it's laughable
LIAR
>>60608679
A diverse library ecosystem is not needed for languages to be production ready.
COBOL was production ready without coming with SVG code.
>>60608847
>rust is literally on COBOL level of support
>>60608744
The entire librsvg library will be fully rewritten in Rust in a few months. It'll be a native Rust library then, no bindings will be required except the ones that go the other way to C.
>>60608721
>small project maintained by one guy
Really shaking up the industry. Huge achievement. Like the 500 lines of D in the Facebook code base (bet they're gone by now).
>>60609048
The OP mentioned librsvg first, as an example of a library he wanted. Also:
https://github.com/GNOME/librsvg
>> 58 contributors on Github
>> Maintained by one guy.
Rust removed the ++, -- and ?: operators because they were too C like.
>>60608382
fuck of Go shill why don't you go garbage collect yourself
>>60609145
The ternary operator ?: is pointless in Rust because it does the same thing as the ordinary if which is an expression rather than a statement.if condition {block1} else {block2}
++ and -- do the same thing as +=1 and -=1 when used properly. Getting rid of them on the other hand means you get rid of abominations like this:while (x-->0) {
do stuff
}
>>60608926
>JUST WAIT (tm)
Isnt that all of Rust at this point
>>60608923
Rust would love to be used to the extent COBOL still is. Just not in the same context of course
You are basically complaining that the language is new.
A language being new doesn't somehow make it shit. You're an idiot.
>>60609263
x-->0 is like programming version of shitposting
>>60608847
A diverse ecosystem of libraries and api are absolutely required for a language to be accepted by industry.
>>60608382
>SVG image
>SVG
>image
>>60610058
>7 years old
>The new Systems Programming language
>Still cannot render an icon in svg format
>>60610125
Rust is like the programming version of mods.
>>60610328
GNOME is literally rewriting its svg library to Rust: https://github.com/GNOME/librsvg
>>60609145
Rust never had ++ and -- operators, you're confusing that with swift, which removed them on 3.0
For ?: see >>60609263
Why would you need SVG support?
>>60608382
https://crates.io/crates/svg
?
>>60610975
in addition
why would you need to query network interfaces on a system via a system's programming language?
>>60610318
Rust has been stable for less than two years, actually.
>>60611014
>hey here's an xml parser
Try actually rendering anything fagit
>>60611249
https://github.com/nical/lyon
?