Better HN
topnewbestaskshowjobs
Log inSign up

eriksvedang

166 karma · joined Aug 7, 2012 (14y ago) · 22 submissions

Submissions

1.

coherence – a user friendly networking engine for Unity hits 1.0(coherence.io ↗)

1 points · by eriksvedang · 3y ago · discuss

2.

String patterns in Carp(blog.veitheller.de ↗)

2 points · by eriksvedang · 8y ago · discuss

3.

A walkthrough of the internals of the Carp compiler(blog.veitheller.de ↗)

25 points · by eriksvedang · 8y ago · 1 comment

comment 9y ago · link · parent

OK, I see what you mean now. Thanks for the feedback, I'll make sure to think about this more before stabilising the modules.

comment 9y ago · link · parent

The ”IO_” part is the namespace, so no clashes!

comment 9y ago · link · parent

Normal usage of arrays (and structs) is through an immutable api, internally it uses mutation though. See example/updating.carp for example.

comment 9y ago · link · parent

Correct, not at the moment. Overall the type system is less expressive but also less dependent on annotations. Differentiating between immutable and mutable refs is probably coming though, it’s a useful distinction for sure.

8.

Carp, a compiled Lisp with type inference and a borrow checker(blog.veitheller.de ↗)

252 points · by eriksvedang · 9y ago · 109 comments

comment 10y ago · link · parent

Primarily stand-alone.

comment 10y ago · link · parent

Thanks for the links!

The short answer is that safety is handled similar to Rust, using lifetime analysis. It's quite a bit more simplistic than Rust at the moment though. Also, some checks are done at runtime (like bounds checking on arrays, when turned on).

comment 10y ago · link · parent

It will require roughly the same amount of practice as when learning Rust, so a pretty significant learning effort I'm afraid.

I'll try to do as much checking as possible in the interpreter so that the transition from interpreted to compiled code is smooth. Right now there is none though.

comment 10y ago · link · parent

No tail recursion at the moment but it's something I'd be interested in adding later.

I'm being very conservative with adding different type constructs but sure, Rust & Go certainly gets a lot of things right in that department and I'll consider their solutions for the future development of Carp.

comment 10y ago · link · parent

Interesting, thanks a lot for the tip!

comment 10y ago · link · parent

Yes, only the statically compiled code is GC free.

comment 10y ago · link · parent

1. Yes, and yes!

2. No plans for inheritance at the moment, probably some kind of interfaces but that's not a top priority right now. Custom types are limited to structs, I will add union types soon

3. This has not been decided yet, I want to do more research before settling on any particular solution. It will be a high priority though, since I want to use it for the games I write

Thanks, Erik

comment 10y ago · link · parent

Absolutely! We have a gitter chat that would be a perfect place for that kind of discussion https://gitter.im/eriksvedang/Carp

comment 10y ago · link · parent

I'm working on Clojure-looking lisp with a borrow checker and static analysis in the vein of Rust. It's especially tailored for games since most lisps don't account for that use case (GC, dynamic types). Here's a link, let me know if you have any questions: https://github.com/eriksvedang/Carp

18.

How Else Heart.Break() turns players into coders(gamasutra.com ↗)

72 points · by eriksvedang · 11y ago · 7 comments

19.

Programming Adventure Game Else Heart.Break() Is Out on Steam, Humble and GOG(elseheartbreak.com ↗)

4 points · by eriksvedang · 11y ago · 1 comment

20.

Hacking game Else Heart.Break() coming September 24(elseheartbreak.com ↗)

6 points · by eriksvedang · 11y ago · 1 comment

21.

Else Heart.Break() – An adventure game about love and programming(elseheartbreak.com ↗)

1 points · by eriksvedang · 12y ago · discuss

22.

On features and tiny computers(eriksvedang.com ↗)

2 points · by eriksvedang · 13y ago · discuss