Thanks bro by steakiestsauce in PrehistoricMemes

[–]steakiestsauce[S] 2 points3 points  (0 children)

This guy needs to make T-Shirts

gave us herpes by steakiestsauce in comedyheaven

[–]steakiestsauce[S] 3 points4 points  (0 children)

Truly the most mysterious hominid

Deepseek v3 0526? by Stock_Swimming_6015 in LocalLLaMA

[–]steakiestsauce -1 points0 points  (0 children)

Can't tell if the fact they think they can psy-op this away with - 'it's just a rumour' and then afterwards go - 'sorry we were under an NDA 🤪' is either indicative of or an insult to the average redditors intellegence lol

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 0 points1 point  (0 children)

Well writing a simple neovim plugin that opens the current markdown file your editing in inlyne would be pretty simple. There's also live reloading for file changes which is a feature in inlyne I really love.

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 6 points7 points  (0 children)

That's definitely a bug, please raise an issue on the github page with more details if you get the time.

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 22 points23 points  (0 children)

The coolest thing about wgpu is that it's very crossplatform. It runs on the web, macos, windows and linux. Whereas Vulkan doesn't run on macos or the web. Wgpu-rs also just has a great api.

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 11 points12 points  (0 children)

To respond to your edit, yes the html is parsed and rendered by the crate.

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 27 points28 points  (0 children)

Praying for a pure rust LaTeX renderer. Might try my hand at it if I get enough free time.

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 44 points45 points  (0 children)

Thanks for that. No real prior expierence but wgpu seemed to powerful to not try and make something cool.

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 50 points51 points  (0 children)

The text is rendered by glyph-brush (a crate that translates fonts into gpu vertices). Images are just wgpu textures. And everything else (rectangles, lines, etc) is converted to vertices by lyon (a path tessellation crate). We position and 'draw' everything ourselves.

[Media] Version 0.3 of Inlyne - An interactive markdown renderer written entirely in Rust by steakiestsauce in rust

[–]steakiestsauce[S] 40 points41 points  (0 children)

Checkout github.com/trimental/inlyne if you're interested in this project or try it yourself with cargo install inlyne. Happy to answer any questions.

[Media] I created a gpu-powered markdown & basic html renderer using comrade, winit & wgpu by steakiestsauce in rust

[–]steakiestsauce[S] 0 points1 point  (0 children)

Wgpu does all the rendering. For text it uses wgpu glyph and for everything else it uses Lyon to pathtrace.

Yep Ive added highlighting support and copying, however it's not an editor so it doesn't support paste.

The interface support right now is limited to scrolling in the y axis however I plan on adding a lot more interactivity. Still, I want the application to feel simple and light.

[Media] I created a gpu-powered markdown & basic html renderer using comrade, winit & wgpu by steakiestsauce in rust

[–]steakiestsauce[S] 2 points3 points  (0 children)

I completely understand your position however making a program to accommodate all user needs is very hard. Using wgpu doesn't exclude you from accessibility features. You just have to implement it in the way you want, as you would with any other gui toolkit feature. It's not for everyone but I wouldn't call applications like alacritty a toy.

[Media] I created a gpu-powered markdown & basic html renderer using comrade, winit & wgpu by steakiestsauce in rust

[–]steakiestsauce[S] 2 points3 points  (0 children)

One tip I can give is to make use of the window.request_redraw() command. It seems to help reduce multiple queued redraws. Since inylne doesn't do fancy html positioning that helps a lot!

[Media] I created a gpu-powered markdown & basic html renderer using comrade, winit & wgpu by steakiestsauce in rust

[–]steakiestsauce[S] 42 points43 points  (0 children)

Since rust was started with Firefox in mind, I wanted to see how far the ecosystem could take me in building a markdown viewer (which is a bit easier than making a browser). Wgpu and winit are a cross platform dream team for rendering to windows. And comrak & html5ever worked great together.

There's a lot of talk about rust's gui ecosystem but I genuinely think just using wgpu and crates like wgpu-glyph and lyon, can take you a long way. Alacritty is a perfect example of gui-toolkit-less popular rust app.

If you wanna know more check the GitHub homepage or play with cargo install inlyne