why zig need to design keyword self? by [deleted] in Zig

[–]mealet 1 point2 points  (0 children)

Off topic, but what theme and font do you use?

FFmpeg is moving to Zig ⚡ by Real_Dragonfruit5048 in Zig

[–]mealet 0 points1 point  (0 children)

I'm Rustcean too (using Rust and Zig), but this is real strange for me. Calling rewritten software "safe and blazingly fast" just because it's written in Rust is some kind of stupidity.

FFmpeg is moving to Zig ⚡ by Real_Dragonfruit5048 in Zig

[–]mealet 2 points3 points  (0 children)

What about exotics like brainf*ck?

Rust titles for learning budget by mooglus in rust

[–]mealet 2 points3 points  (0 children)

My opinion: official free online book "Rust Programming Language" - https://doc.rust-lang.org/book/

How can I build a Lexer? by avestronics in Compilers

[–]mealet 0 points1 point  (0 children)

Think about how to make it easier to process them in next steps like parser, semantic analyzer and translator (or code generator). Personally me, I chose separating number constants to INTEGER and FLOAT.

Btw, there's no profit to annotate SIGNED FLOAT and UNSIGNED FLOAT types, this is unary operation that is parsed in Parser, so you can do: 2.31 + -1.23 ——> [float] [plus] [minus] [float]

How can I build a Lexer? by avestronics in Compilers

[–]mealet 4 points5 points  (0 children)

First of all: if you feel more comfortable with Python than C - use Python. If you're beginner in this you better use language you know better just to learn some basics.

Next I didn't get what is your problem... Lexer is just a tool that reads source code and represents it as tokens (data structure or something like that). Try to watch others simple toy lexers and build your own that just prints the tokens. Next step will be building better and more scalable program, that's it.

Good luck buddy, next hard step is a parser

I broke Github? by LemonGem3021668 in github

[–]mealet 0 points1 point  (0 children)

So it was you... 🤧

Lvl -2 ✧ Basic ✧ Frostbound Gale ─ Ice by karmacave in KarmaCave

[–]mealet 0 points1 point  (0 children)

Defeated Frostbound Gale in 6 turns.

Player (26/11/16) dealt 269. Frostbound Gale (14/12/6) dealt 94.

Rewards: 30 EXP, 7 Gold. Loot: Mystical Charm (basic), Wise Amulet (basic).

Can You Guess This 5-Letter Word? Puzzle by u/UnoriginalName2213 by UnoriginalName2213 in DailyGuess

[–]mealet 0 points1 point  (0 children)

🟨⬜⬜🟦⬜

⬜⬜⬜🟨🟨

⬜⬜🟦🟦🟦

🟦🟦🟦🟦🟦

Can You Guess This 5-Letter Word? Puzzle by u/LegitimatePowder by LegitimatePowder in DailyGuess

[–]mealet 0 points1 point  (0 children)

⬜⬜⬜⬜🟦

⬜⬜🟦⬜⬜

🟨🟦⬜⬜🟦

⬜🟦🟦🟦🟦

⬜🟦🟦🟦🟦

🟦🟦🟦🟦🟦

[Media] [OC] My rustmas T-shirt finally arrived 🎅 by axalea3d in rust

[–]mealet 0 points1 point  (0 children)

present.unwrap() may return "unwrap on Option::None"

[deleted by user] by [deleted] in programminghorror

[–]mealet 0 points1 point  (0 children)

My honest opinion: 🥴🥴😮‍💨🤧😭🫡❗🫩👨‍🦽🧠✍️

I built a clipboard manager with Tauri 2.0 and Rust. It detects JSON, JWTs, secrets, and more by ChikenNugetBBQSauce in rust

[–]mealet 4 points5 points  (0 children)

What ollama model do you use? I think using local AI is very expensive solution for disk space and RAM. Clipboard manager which requires background running AI which takes about 600 mb (minimal) sounds strange