Better HN
topnewbestaskshowjobs
Log inSign up

codr7

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

codr7@protonmail.com
Submissions

comment 7y ago · link · parent

Author here.

It's still a young language and naive implementation focused on correctness, but I'm very happy with how its turning out.

I'm especially fond of first class environments and qualified identifiers [0]; which allow composing, overriding and delegating data and behavior in a convenient yet remarkably flexible way. It's clearly a more fundamental mechanism than the usual suspects.

Note that this is the opposite of what Python is doing with __dict__ and Lua with tables. Rather than basing the implementation on a general purpose data structure, g-fu exposes the the implementation and allows hooking into it.

It reminds me of pcostanza's work on Context Oriented Programming and ContextL [1], but integrated rather than bolted on.

[0] https://github.com/codr7/g-fu/tree/master/v1#environments

[1] https://github.com/pcostanza/contextl

2492.

Show HN: G-Fu – a pragmatic Lisp embedded in Go(github.com ↗)

123 points · by codr7 · 7y ago · 23 comments

comment 7y ago · link · parent

Having grown up in Sweden, I'd say that's mostly history by now.

It used to work a lot better, but they've been privatizing and monetizing non-stop during my life so far and it's mostly same ice cream/different flavor these days from what I can see.

comment 7y ago · link · parent

Heh, I feel very tempted to go all in with pictures.

After 15 years of using nothing but the latest and greatest, I'm now stuck with a refurbished HP desktop that smells like burned plastic and an arbitrary collection of questionable-quality accessories on top of a retired kitchen table with a garden chair to sit on.

And the only thing that really bothers me is that the computer might stop working any second and I can't afford a new one.

Life moves in mysterious ways :)

comment 7y ago · link · parent

It's more uniform, we use other forms of punctuation in writing.

Spoken programming languages is a different can of worms.

2496.

Show HN: The DOOM Fire Kata(github.com ↗)

4 points · by codr7 · 7y ago · discuss

comment 7y ago · link · parent

Formal verification is the future, and always will be.

The gap between what's doable and writing all software that way is epic, and it's not at all clear to me that its the best way forward.

Software is (potentially) about creating what didn't exist before, nailing everything to the floor based on past experience isn't going to lead anywhere worth going.

Maybe part of the solution is writing software that's not verifiable or rejected. Probably, since it has to be something we didn't try yet.

comment 7y ago · link · parent

There's just no way to win this game, whatever good ideas are thrown in will be twisted, turned and corrupted into worse than what came before.

I once worked on the software side of a 500-employee electronics company that had managed to ISO-certify their so called Agile development process.

Everything, and I do mean everything; was performed according to some ISO-script. No deviation, no matter how meaningless the task. And we had more useless meetings than anything I've seen before, it's just that they were called stand ups and reviews.

Thanks, but no thanks.

comment 7y ago · link · parent

It doesn't work, energy follows thought and it makes no sense to focus it on what you want to avoid. Take or leave.

That being said, the worst I ever saw was the in-house business nonsense I was paid to deal with as a Java consultant. The worst code isn't open source from my experience, subjecting it to public scrutiny would mean suicide for the companies involved.

comment 7y ago · link · parent

Isn't part of the issue mixing general purpose code that doesn't change very often (the kind that belongs in a standard library) with code that changes all the time (the kind that belongs on PyPI)?

I remember one of Go's core devs voicing some of the same concerns regarding the SMTP-library [0] a while back.

https://golang.org/pkg/net/smtp/

comment 7y ago · link · parent

I come across people every day who seem stuck in analysis paralysis concerning some class of software problems.

They're typically reading every paper and book they can get their hands and engaging in endless discussions about definitions and hierarchies, but nothing of value seem to come out of the process.

I used to read a lot of books and blogs, but what works a lot better for me is to make an honest attempt at solving any problem before seeking assistance. At least then I know what I'm looking for and I always learn something worth knowing along the way.

comment 7y ago · link · parent

Take that [0], Lisp. 8k years.

They wore chest beards back then.

http://www.craftinginterpreters.com/the-lox-language.html

comment 7y ago · link · parent

Macros, interpreters and embedded languages [0].

[0] https://github.com/codr7/g-fu/tree/master/v1

comment 7y ago · link · parent

"...assuming the camera is mounted high enough off the ground to cope with Earth’s curvature"

Erm, without getting into THAT discussion; wouldn't this be the case even if the plane was completely flat due to perspective? You know, things further away tend to get smaller and disappear behind closer features.

What disappears due to curvature is more or less lost, I can't see building a higher tower helping much.

Edit: Can't even mention curvature without being hell-voted. I'll just note that I'm not the one with issues here, I posed an honest question about a technical detail.

comment 7y ago · link · parent

To each his own, but from my perspective you're giving your power away to institutions that exist for the sole purpose of controlling the collective mind.

Life is eternal, that is part of what you are and can't be taken away.

And since whatever created you is part of you, just like any parent is part of their children; there's no need for icons, worship or churches.

You can't prove either perspective, so that makes it roughly 50/50; why choose doom and gloom?

Take it or leave it.

2506.

Show HN: Functional Objects(github.com ↗)

2 points · by codr7 · 7y ago · discuss

2507.

Show HN: Raw Closures(github.com ↗)

1 points · by codr7 · 7y ago · discuss

comment 7y ago · link · parent

I know quite a few who would consider that an option.

Embedding a higher level language that's controlled from a more primitive host language allows solving many otherwise tricky problems without the struggle.

comment 7y ago · link · parent

Indeed.

The parent post was calling out Go for being overly verbose and explicit compared to alternatives. I was simply making an example to the contrary.

comment 7y ago · link · parent

Word.

Interpreter, but close enough :)

https://github.com/codr7/g-fu/tree/master/v1

comment 7y ago · link · parent

You can write Fortran in any language, these people are missing the point. The simplicity is a feature, it also allows you to say exactly what you mean without sweet talking the compiler.

comment 7y ago · link · parent

I am aware, and the same is mostly true of Go.

comment 7y ago · link · parent

Like C, you mean?

How is it more verbose than C++, Java, Rust or Swift?

You're not making much sense here, why do you feel so threatened?

comment 7y ago · link · parent

There's plenty of polymorphism in Go, that's what interfaces are for. In C you would typically use a struct stuffed with function pointers, how is that an improvement?

Its still a better C in many ways, strings and character sets is a big one.

comment 7y ago · link · parent

And yet, people are building big code bases on top of both C and Go without generics all the time. Like C, Go lacks support for elaborate abstractions. It's still a better C for many problems.

comment 7y ago · link · parent

The idea wasn't to elevate anything, I'm sharing ideas with anyone who is interested.

There's nothing in here that will make you rich and famous, I have nothing to sell.

comment 7y ago · link · parent

Word.

Except the last thing we need is more lords and external solutions, better spend that energy on meditating to find your self.

2518.

Show HN: G-Fu – A Lisp 2 Go(github.com ↗)

10 points · by codr7 · 7y ago · discuss

1
8283848586