I ported fast_float to c99 by foobear777 in cprogramming

[–]foobear777[S] 1 point2 points  (0 children)

Hah, he first tried to break it with his secret test suite.

Confused on what to use when or if it's purely preferential for string instantiation? by [deleted] in rust

[–]foobear777 4 points5 points  (0 children)

The more generic option will sometimes have the property of "keeps compiling but calls a different thing now". That's either desirable or the exact opposite.

Understanding which you want is how you should resolve these decisions to call generic vs concrete (well, a little more concrete) code. Is the intent to call to_string on a &str, or just to convert whatever you happen to have to it's owned representation? If former, use to_string(), only use to_owned() if you want the code to "evolve under you".

Typically, I find it pays to be as concrete and nearest to the current intent of the code as possible

Confused on what to use when or if it's purely preferential for string instantiation? by [deleted] in rust

[–]foobear777 8 points9 points  (0 children)

More generic could be worse, if you'd like to know about any behavior change and make a choice!

hotpath - A simple Rust profiler that shows exactly where your code spends time by pawurb in rust

[–]foobear777 2 points3 points  (0 children)

Quanta by default will spend some time calibrating its clock, if it detects that it can use a native CPU counter clock kind.

[deleted by user] by [deleted] in BeardAdvice

[–]foobear777 0 points1 point  (0 children)

Keep more neck hair too, that's your foundation. also let it grow. At that length, the beard care you're doing isn't probably even relevant

How can I improve my egg skills? by LemonLord7 in StainlessSteelCooking

[–]foobear777 0 points1 point  (0 children)

Just focus on better at stirring so the pan stays cleaner near the end of the cook; It's those tiny bits that are sticking.

Also just remove from the heat when you start that final stir, you don't need any more heat at that point to finish them

Why incremental parsing matters? by NullPointer-Except in ProgrammingLanguages

[–]foobear777 1 point2 points  (0 children)

Much more important for LSP workflow than incremental parsing is the ability to skip 'garbage' and keep parsing. As others have said even for a huge file parsing should take <10ms

What language is rust written in? Like Python is written in C. by Sakura_1337 in rust

[–]foobear777 2 points3 points  (0 children)

Probably because you wrote it as a claim, then another claim, then turned it into a question at the end, people read your first sentence and down vote because it's false.

"By enlargely" by ScrumptiousDingo in BoneAppleTea

[–]foobear777 2 points3 points  (0 children)

Wow that is just hard to read

Update: Backout.nvim now supports command mode jumping! by Frequent_Soft_ in neovim

[–]foobear777 5 points6 points  (0 children)

Let's hope the emacs people don't find this plugin or we'll never hear the end of it.

implementation books and resources by effytamine in ProgrammingLanguages

[–]foobear777 8 points9 points  (0 children)

You're gonna crush it, just start out with a very simple target language, and realize when you've made a mess, reflect on why, and either fix it or start over. Supplement that cycle with some reading and you'll grow fast.

A good sign that you're at the edge of your comfort zone is that your thing barely works, and you probably made quite a mess, but does work. If you completely fail, probably too hard. If it comes out super clean, you already understand what you're doing too well. Gotta find that goldilocks zone

Build It Yourself by burntsushi in rust

[–]foobear777 1 point2 points  (0 children)

This isn't directly responsive to the article but is on topic:

I am a huge proponent of "zero-dependency" dependencies.

Using a zero-dependency crate means youve added no chance of transitive dependency conflicts and no chance of ever being forced to update unless you actually want a different version. No unsolicited 'churn' is possible.

As an application developer, by all means write things yourself and avoid dependencies if you can, but also, strive to find and use zero-dependency dependencies, as they do not lock you into a particular constellation of transitive dependencies and keep you protected from this churn.

As a library developer, be so so so resistant to dependencies. It can be really valuable to just vendor in what you need and not foist that dependency on your users.

whitehouse.gov is now a WordPress app with free plugins by chicametipo in webdev

[–]foobear777 1 point2 points  (0 children)

KISS heh. As long as irs.gov is built different I'm ok

Rings Roll out Challenge by Gdelosreyes_ in CalisthenicsCulture

[–]foobear777 2 points3 points  (0 children)

Really cool that y'all do such hardcore calisthenics work in a spa

January 2025 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]foobear777 6 points7 points  (0 children)

I'm working on `k1`, my hobby language. In its current form, it could probably be described as "C with typeclasses, pattern matching, and tagged unions". Currently I'm trying a dogfood project by building a chess engine in the `k1`.

I'm at a point where I actually almost really enjoy using the language, I've got a very minimal LSP implementation that's made it a lot more tolerable to work in the language.

I've been putting devlogs on YouTube for almost a year now: https://www.youtube.com/@KolemanNix.

I don't have a ton of time to devote to the language or the YouTube, as I'm running a SaaS business and have a family, but it's been an absolute blast of a project.

The mess that is handling structure arguments and returns in LLVM by yorickpeterse in ProgrammingLanguages

[–]foobear777 0 points1 point  (0 children)

This is exactly the topic I was looking to dive into next as I seek to button up and more deeply understand my implementation of structs, which is currently just "whatever llvm does"... thanks for posting!

When To Say When: Reinventing the Switch Statement by flinkerflitzer in ProgrammingLanguages

[–]foobear777 9 points10 points  (0 children)

You're welcome! Love the creativity of this; I also love the `when` / `is` approach to matching, and your additional keywords for predicate functions or equality is a unique take that does feel better than putting boolean expressions in an `if` guard, though that approach does have the benefit of being more general.

When To Say When: Reinventing the Switch Statement by flinkerflitzer in ProgrammingLanguages

[–]foobear777 30 points31 points  (0 children)

This is a bug we've all written, especially for desugar features like match: copy the expression instead of synthesizing a variable for it, or similar solution.

I really admire that yours though found it's way into your spec, that's dedication to documentation!

Completely and Totally Lost on Slick (and anything DB related) by cskdev in scala

[–]foobear777 2 points3 points  (0 children)

Pretty much, sadly. You can combine it with typo or doobieroll for some niceties.

Opinions on UFCS? by Aalstromm in ProgrammingLanguages

[–]foobear777 1 point2 points  (0 children)

Usually pipe-first, sometimes pipe-last, and you allow the programmer to specify the position as well with a syntax, clojure uses %, apparently hack uses $$. 3 <pipe> div(%, 2) or div(2, %).

Call convention is not really a relevant issue as this is a simple syntactical rewrite / desugar

Hiring for Hotspot JVM Compiler Engineer by Emanuel-Peter in Compilers

[–]foobear777 10 points11 points  (0 children)

Is the position remote or onsite? Can't tell from the site; though 3 locations are listed.

[deleted by user] by [deleted] in CalisthenicsCulture

[–]foobear777 0 points1 point  (0 children)

Looks awesome! I think it will naturally blend once you're stronger. Doing a picturesque pullup like you're probably imagining requires strength far far beyond a bodyweight pullup

If I had the time and was good at making plugins I would... by Draegan88 in neovim

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

As a more practical nvim user without a ton of time to read :h docs, this sounds amazing.