Hacker Newsnew | past | comments | ask | show | jobs | submit | krosaen's commentslogin

You probably don't want a long range EV then?

Saw this too on mobile - I think it's an ad - I requested a paid ad-free version elsewhere in the comments

Neal.fun is good clean fun - my kids love it too. Neal, if you are listening, would pay for an ad-free version (I already bought you some coffees too).

The founder of Zingerman's (famous deli and family of businesses in Ann Arbor) description of servant leadership is a bit more complete and overlaps heavily with what the author of this post is advocating for:

https://www.zingtrain.com/article/servant-leadership/


If there is a primitive not currently supported (say running a temporal workflow service) is it possible to define a new primitive for this? Just wondering what it looks like if/when you need something not currently supported.


You can just use the resource as you'd normally would and then use e.g. secrets to define the connection settings per environment. You would however need to provision the resource yourself for all your envs. We have a terraform plugin to help you automate it.


No so much about why collaboration sucks as and argument for how important direct ownership / responsibility is. Good post.


This reminds me of the pains taken to reproduce original Game Boy Advance fidelity in the chromatic by mod retro https://modretro.com/blogs/blog/display-the-hard-way


I like the idea of the `defer `keyword - you can have automatic cleanup at the end of the scope but you have to make it obvious you are doing so, no hidden execution of anything (unlike c++ destructors).


Adopted from go, first appeared in D, invented by one of its major developers, Andrei Alexandrescu.


P.S. In D it's `scope(exit)` = defer, `scope(failure)` = Zig's errdefer, and `scope(success)` -- which no one else has and which I have made good use of. e.g., I have a mixin that traces entry and exit from a function, the latter with scope(success). If I use scope(exit) instead then when an exception is thrown all the leave messages are printed and then the stack trace, rather than seeing the stack trace at the point of failure (this baffled me when it first happened).


I vaguely remember reading somewhere recently that Andrei left the D community / foundation. Do you know if that is true?



But you can forget it, unlike C++ destructors


The GNU C and C++ dialect also has attribute cleanup. https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attribute...


C++ doesn't have hidden execution, you just don't know the language. Once you exit scope destructor is invoked.


I would like a language to support both defer and C++ style destructors / Rust Drop. There are good use-cases for having both. For things like a mutex or straight-forward resource cleanup - having a bunch of brain-dead defer statements adds little value and only bloats unnecessary line count. Let the resource type handle its own release/cleanup at scope close. Code is made sweet, succinct and safe.


In Rust, there’s a drop guard pattern to do this, which leverages the lazy execution of closure, checkout the scopeguard crate. C++ should be easy to do that too I think


GNU C++?


Hammock driven development :)

https://www.youtube.com/watch?v=f84n5oFoZBc


This looks pretty awesome, and excited it's not only a cloudflare product (Cap'n Web exists alongside cloudflare Workers). Reading this section [1], can you say more about:

> as of this writing, the feature set is not exactly the same between the two. We aim to fix this over time, by adding missing features to both sides until they match.

do you think once the two reach parity, that that parity will remain, or more likely that Cap'n Web will trail cloudflare workers, and if so, by what length of time?

[1] https://github.com/cloudflare/capnweb/tree/main?tab=readme-o...


I think we'll likely keep them pretty close to in-sync, at least when it comes to features that make sense in both.

If anything I'd expect Cap'n Web to run ahead of Workers RPC (as it is already doing, with the new pipeline features) because Cap'n Web's implementation is actually much simpler than Workers'. Cap'n Web will probably be the place where we experiment with new features.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: