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

Up next: https://www.youtube.com/watch?v=IvUU8joBb1Q

comment 1y ago · link · parent

Basically the same thing except the former is pessimistic and the latter optimistic.

comment 1y ago · link · parent

Forth make a nice starting point for designing your own interpreters/languages imo. But I find the stack gymnastics quickly get in the way of practical solutions.

comment 1y ago · link · parent

...BeanFactoryContextConfig

First you configure a context, then you can use that to get a bean factory and start processing your whatevers.

comment 1y ago · link · parent

Not so sure they would if they knew what it means, beyond tapping keyboards.

Too much software and you start turning into a computer, which obviously doesn't work very well.

comment 1y ago · link · parent

I recently did a dual implementation of a simple language in Java/C for educational purposes:

https://github.com/codr7/shi

comment 1y ago · link · parent

I gave up on Swift when the next release suddenly required actor annotations all over the place. They've been making weird decisions lately.

comment 1y ago · link · parent

Don't know about Scala alternative, but the language I've found most enjoyable on the JVM is definitely Kotlin.

comment 1y ago · link · parent

Exactly!

I like my ORMs based on SQL concepts, not OOP concepts.

So you do have to know SQL, but you get more convenient ways of generating it.

https://github.com/codr7/tyred

comment 1y ago · link · parent

In C, direct memory control is the top feature, which means you can assume anyone who uses your code is going to want to control memory through the process. This means not allocating from wherever and returning blobs of memory, which means designing different APIs, which is part of the reason why learning C well takes so long.

I started writing sort of a style guide to C a while ago, which attempts to transfer ideas like this one more by example:

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

comment 1y ago · link · parent

These words just don't belong together, period.

comment 1y ago · link · parent

I still haven't seen any evidence to match these repeated claims of increased efficiency. What I have seen is reports that makes a lot of sense to me claiming it's all in the user's head.

comment 1y ago · link · parent

A better path is to use the actual features of the programming language to provide a query interface; which can offer similar features in a type safe, well integrated fashion.

comment 1y ago · link · parent

Simpler to write maybe, reading it and following all the threads to figure out what the code is doing, not so much.

The problem with C++ is that you end up having to take most of its features into account, one way or the other, and it quickly gets complicated; at least that's my experience and the experience of many others.

comment 1y ago · link · parent

Forth is a great starting point for designing interpreters/languages.

A while ago I tried to put together a kit to make it easier to get started writing interpreters:

https://github.com/codr7/shi

comment 1y ago · link · parent

As much as I like the idea of XMPP, I don't have good experiences from interacting with it. Neither clients nor protocol/server level.

I've written multiple parsers along the way, back in the days when there was nothing else and more recently for use in very constrained embedded contexts.

I don't know how much has changed, but it was more complicated than I would have wished, seemingly designed more to check theoretical boxes than for ease of use.

I was also part of a project where the backend was implemented as a bunch of services communicating via XMPP, custom server etc. And it was a total mess, we spent a lot of time on manual intervention just making sure messages weren't dropped.

Is this a common experience with XMPP or did I just hit all lemons?

comment 1y ago · link · parent

And then they introduced coke at committee meetings, the crazy shit they've been coming up with lately shows absolutely zero understanding of the complexity issue.

comment 1y ago · link · parent

Exactly, it doesn't work very well in practice.

Even when working alone, the complexity gradually creeps up on you.

Because it's all made to work together, start pulling anywhere and before you know it you're using another feature, and another, and so on.

And many features interact in exotic and hard to predict ways, so hard that entire careers have been spent on trying and failing to master the language.

comment 1y ago · link · parent

We're standing on the shoulders of many creative heroes; some technically brilliant, some better described as visionaries and designers. They all played a role in getting us this far.

No one is forcing you to admire Steve Jobs.

comment 1y ago · link · parent

If you think prisons turn criminals into law abiding individuals, or that that's even their purpose, you've got some more figuring out to do before teaching.

comment 1y ago · link · parent

Nor a viable solution to the problem.

comment 1y ago · link · parent

Wind in a vacuum, that's interesting.

comment 1y ago · link · parent

There they go, making the same stupid mistakes as most other ORMs out there; by 1:1-mapping structs to tables as well as inventing their own SQL-dialect.

comment 1y ago · link · parent

This one is anything but small.

comment 1y ago · link · parent

Or stand together and demand the madness stops, rather than pretend there's nothing to do about it; which could actually help improve the situation.

The people involved in making these decisions deserve to be locked up for life, and I'm sure they will be eventually.

comment 1y ago · link · parent

Does it look like they are even trying to solve the problem?

Perhaps they're more waiting for the public to beg for permanent military presence. Create a problem for the solution you're looking to implement.

I have no idea about California, but I do know that's how it works in Sweden.

comment 1y ago · link · parent

But this is how you learn, how you find better ways, by grinding.

Getting wild ideas badly implemented on a silver plate is a slot machine, it leads nowhere but in circles.

comment 1y ago · link · parent

Careful with the productivity claims, there's plenty of research showing that perspective is usually a distortion of some kind. Which makes sense, you have someone at your shoulder constantly reassuring you and bubbling ideas; I can see how it feels productive. Many report feeling more stressed, because the spaces where they used to think are no longer there.

comment 1y ago · link · parent

Obviously, but that doesn't tell us shit where consciousness comes from.

comment 1y ago · link · parent

And you're enough of an expert on all subjects to judge?

Or are you rather shielding from whatever makes you think?

1
456
86