[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

The continuing story of the shit meme language

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 32
Thread images: 5

File: fzk3.png (12KB, 375x375px) Image search: [Google]
fzk3.png
12KB, 375x375px
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
>>
File: 2f7.jpg (28KB, 601x508px) Image search: [Google]
2f7.jpg
28KB, 601x508px
>>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.
>>
File: 1493938086366.jpg (72KB, 720x960px) Image search: [Google]
1493938086366.jpg
72KB, 720x960px
>>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.
>>
File: HMnK3mo.png (572KB, 867x806px) Image search: [Google]
HMnK3mo.png
572KB, 867x806px
>>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.
>>
File: 1489336086252.png (198KB, 1190x838px) Image search: [Google]
1489336086252.png
198KB, 1190x838px
>>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
?
Thread posts: 32
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.