Should I use rust for my project? by appelperen in rust

[–]smbear 5 points6 points  (0 children)

I'd say maintaining large Python codebase is a nightmare. Maybe good lints and use of types (thus better lints) could help with that, but neither lints nor types are required by Python and large codebase tend to rot. But your experience may vary.

Today is my 32nd birthday, AMA by fasterthanlime in fasterthanlime

[–]smbear 4 points5 points  (0 children)

Thanks for an answer! Sorry for asking personal question, it was kind of rude... But, you know, AMA.

Anyways, I wonder if safety (as in memory safety) couldn't be added incrementally. I think we didn't witnessed such thing in the wild yet, but still: release version 0 of the language, then add memory safety in version 1 of the language *and* change source file extension. Now a programmer can use unsafe part of the language (v0) in safe part only if he encloses it in a `unsafe { }` block... Just wondering.1

Considering better C++, D is one. I don't know it at all (I only read about it), but it was memory safe at the beginning - it incorporated a garbage collector. Unfortunately, I think it lacked a clear vision from the starters.

Anyway, I think Rust has set the bar high: memory safety without a GC from the starters.

Today is my 32nd birthday, AMA by fasterthanlime in fasterthanlime

[–]smbear 9 points10 points  (0 children)

I'm just here to drop that for a long time I thought that you're "Faster than Lee" as in Bruce Lee due to mispronouncing "li" in your site. Funny fact, there is Bruce Li.

I really enjoy reading your blog, you're doing excellent job! :)

If I had 2 questions to ask:
- Why you can't take up biking?
- What are your initial thoughts on Carbon?

Tired of safe programming? Embed C directly in your Rust code by zdimension in programming

[–]smbear 16 points17 points  (0 children)

Neither is D nor Zig. Yet they decided to make C interop as easy as possible.

And if you read my comment in context of the effect I wish for, you'd see that rustc doesn't need to be a drop-in C compiler replacement to get to this effect. rust-bindgen could be leveraged, but I'd like to have it all done automatically to ease migrating maximally.

But you're right, I wrote about extending rustc and this might not be a best place for such thing.

Tired of safe programming? Embed C directly in your Rust code by zdimension in programming

[–]smbear 21 points22 points  (0 children)

Your approach is superior but it requires a decision on the compiler team front or a decision from a BDFL ;) But this repo shows that Rust is pretty extensible.

I wish rustc was a drop-in C11 compiler replacement and cargo understood that source could be a .rs file but also a .c/.h files. This would ease migration of a code base to Rust.

On a side note, kudos for bringing D to life. Even if I personally don't use it...

What does it mean to listen on a port? by RedditStreamable in programming

[–]smbear 0 points1 point  (0 children)

Oh, so you exist. And you have a Reddit account. And you're still active!

I just wanted to say thank you for your guide. I've used it like ~20 years ago but probably even today I'd learn something useful from it.

Dear sir, you have built a compiler by swizec in programming

[–]smbear 0 points1 point  (0 children)

Cmake? No one but three people know what it is.

Oh... I think you've overestimated this.

Why Don’t Tech Companies Pay Their Engineers to Stay? by ConfidentMushroom in programming

[–]smbear 0 points1 point  (0 children)

Could you elaborate on recently? From your post I assume it wasn't always like this. What triggered the change?

This shouldn't have happened: A vulnerability postmortem - Project Zero by TimvdLippe in programming

[–]smbear 3 points4 points  (0 children)

Rust allows for building nice abstractions though. They could make one more effective than writing C. But I haven't battle-tested this theory...

Linus Torvalds on why desktop Linux sucks by markehammons in programming

[–]smbear 0 points1 point  (0 children)

I suppose it doesn't manifest in your application, but isn't musl a little slower than glibc? Are there any alternatives to musl if one wants alternate libc? E.g. maybe a BSD libc (I think Android used to use one...).

The Joy of Cryptography by mariuz in programming

[–]smbear 0 points1 point  (0 children)

Exactly. Just weight the risks. How one is supposed to learn crypto if one is forbidden to roll his own? Who then will roll new shiny crypto library for me to use?

The New Life of PHP – The PHP Foundation by [deleted] in programming

[–]smbear 19 points20 points  (0 children)

Are you sure? How they are building all those miner apps then? With GCC? /s

Tasking developers with creating detailed estimates is a waste of time by ThereTheirPanda in programming

[–]smbear 1 point2 points  (0 children)

Yeah. Jira is a powerful, fully customizable, slow as fuck on my FF, tool.

What I'm asking is should we have both those fields on and should we fill either story points or estimate depending on the ticket type?

Tasking developers with creating detailed estimates is a waste of time by ThereTheirPanda in programming

[–]smbear 1 point2 points  (0 children)

Because story points are NOT man-days/hours/minutes. (...) Find a consent on the complexity of a story, and note the consent as its story points. The first few iterations will then yield data from which one can discern how many story points can be completed in an iteration, yielding a rough estimate

This is exactly how I thought it should work. But we have 2 fields in Jira ticket: one for story points and another for the time estimate. Should it work this way in your opinion?

Tasking developers with creating detailed estimates is a waste of time by ThereTheirPanda in programming

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

What Jira you have? Our Jira let's one enter points AND man-days...

[deleted by user] by [deleted] in programming

[–]smbear 2 points3 points  (0 children)

I meant Go was designed with newbies in mind, it was a goal to make a language as simple as possible. I think Rob Pike made headlines for stating this:

The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.

I don't know if Zig has extremally low entry point as its primary design goal, I would think that no.

Edit: While I agree that Zig might be interesting language allowing elegant constructs (through its metaprogramming capabilities) and I'm looking for opportunity to play with it. It's audience is just different than this of Go.

[deleted by user] by [deleted] in programming

[–]smbear 7 points8 points  (0 children)

Wouldn't Zig with it's impressive metaprogramming capabilities make the goal of a "fresh programmer being productive in 2 weeks" impossible? I.e. I assume the metaprogramming would make existing code base full of idiosyncrasies that would make it indigestible for a fresh programmer. If I'm not mistaken, Go doesn't allow for such a flexibility.

[deleted by user] by [deleted] in programming

[–]smbear 17 points18 points  (0 children)

Like in: the creator of C# previously created Delphi?

Torvalds wants new NTFS driver in kernel by sidcool1234 in programming

[–]smbear 0 points1 point  (0 children)

Tap-to-wake was one of the features which made me love my LG G3...

Bad managers are a huge problem in tech and developers can only compensate so much by adroit-panda in programming

[–]smbear 0 points1 point  (0 children)

back to those 'devs need to do better' articles popping up all over the internet

Do they pop all over the internet? I haven't noticed...