Better HN
topnewbestaskshowjobs
Log inSign up

codr7

3,876 karma · joined Mar 28, 2019 (7y ago) · 2,562 submissions

codr7@protonmail.com
Submissions

comment 1y ago · link · parent

Maybe they didn't exist.

Empty city streets, factories run by children.

Where were all the adults?

comment 1y ago · link · parent

I've been working this problem from different angles for a while now:

https://github.com/codr7/shi-c

https://github.com/codr7/hacktical-c

comment 1y ago · link · parent

Sounds promising but soldering electronics is pretty far outside of my comfort zone, think I'm going to let this marinate for a while.

comment 1y ago · link · parent

Except being special trained to tear humans apart, that is.

comment 1y ago · link · parent

Because the implementation should be familiar to most devs, which makes it easier to see what kind of language you're dealing with.

Binary sort would be another candidate for me, but people get it wrong in subtle ways and not every language does array updates.

Your examples don't make much sense to me. A web app using what framework? What does that say about the language? CLI apps could work if you could find one that people recognize and that's small enough for an example.

comment 1y ago · link · parent

Because you're using the pre-processor to create a new language, which we have pretty much agreed is a bad idea.

If you want that level of safety, why not use a language that provides it for you?

comment 1y ago · link · parent

This is such a nice setup!

They can deliver pretty much whatever they feel like. Who can tell a trash token from an hallucination? And tracking token usage is a pita.

Sum it up and it translates to: sell whatever you feel like at whatever price you feel like.

Nice!

comment 1y ago · link · parent

Too much syntax for me, adding filler words to make it read more like English is a programming language design dead end imo.

comment 1y ago · link · parent

I hereby cast my vote for naive recursive Fibonacci.

https://github.com/codr7/shi#language

comment 1y ago · link · parent

Because that level of (type) safety and C is a bad fit.

comment 1y ago · link · parent

From my experience, trying to make C type safe is counter productive.

It's perfectly possible to do generic vectors in C without twisting the language. This implementation isn't as safe as alternatives in other languages, but plays well on C's strengths.

https://github.com/codr7/hacktical-c/tree/main/vector

comment 1y ago · link · parent

Allocating objects for every single property can turn pretty bad in Java.

A strong enough type system would be a lot more useful.

comment 1y ago · link · parent

Sometimes I feel like I actually wouldn't mind having any function touching the database tagged as such. But checked exceptions are such a pita to deal with that I tend to not bother.

comment 1y ago · link · parent

Same goes for almost any other country I've been to. But the US does seem to be one of the worst places from what I see online.

comment 1y ago · link · parent

I'd do this in almost any other language than C :)

In C, I like just passing a const char * around as input; this also gives me ability to return progress and unget chars as an added bonus.

https://github.com/codr7/shi-c/blob/b1d5cb718b7eb166a0a93c77...

comment 1y ago · link · parent

Looks overly complicated to me.

This is an alternative I wrote for my C book:

https://github.com/codr7/hacktical-c/tree/main/task

comment 1y ago · link · parent

From what I've seen, worrying about reactions and resisting the effect, for whatever reasons; which makes you see exactly what you expect and experience the effects stronger.

Like many here, I finally managed to fix that by leaning into it for a while, which wasn't always pleasant, but fixing internal issues is rarely pleasant. For me it was a lot about letting go of fear, which is always a good thing.

comment 1y ago · link · parent

You're not going to leave us hanging with the specs, right?

comment 1y ago · link · parent

Porting my latest educational project[0] to Common Lisp[1]:

https://github.com/codr7/shi

https://github.com/codr7/shi-cl

comment 1y ago · link · parent

Does it really have to be either or?

I get the feeling that spending a lot of time in Rust makes you believe not having that kind of backup is madness.

Yet programmers all over the world get by just fine without it.

And it's not free by any means, there's a fair bit of a learning curve and increased effort involved.

Can't hurt the language to take these problems seriously, can it?

comment 1y ago · link · parent

Yep, there's an astonishing amount of pretending involved in dates/time processing,

I'm surprised anything works at all just from what I know.

comment 1y ago · link · parent

Plenty of people these days insist on stamping anything that looks like time with a time zone. Getting that right through the entire stack is like winning the lottery imo. When dealing with different time zones, I've had some success in simplifying the situation by mandating UTC for the server side.

comment 1y ago · link · parent

Muscimol and Mescaline likewise; unless you're on big pharama med, I'd say most hallucinogenics are worth trying.

comment 1y ago · link · parent

My Linux life started even earlier, with a borrowed Red Hat 4 CD around 1995/6.

But it took quite a few years before it ran well enough for me to consider using it full time.

I remember the first versions of GNOME being buggy as hell.

Then I spent a couple of years compiling Gentoo, can't remember actually using it much.

comment 1y ago · link · parent

Like others have already said, pass it on.

comment 1y ago · link · parent

Nokia made some pretty nice phones there for a while, and the OS looked pretty usable by Microsloth's standards.

I blame Ballmer, he's like Steve Gate's less intelligent but at least as evil brother.

comment 1y ago · link · parent

Forget about Palm, BeOS is the real tragedy here.

comment 1y ago · link · parent

Another seemingly intelligent developer's brain turns to mush.

Good times, more jobs for the rest of us once the clown party is over.

1
8910
86