Better HN
topnewbestaskshowjobs
Log inSign up

Yahivin

810 karma · joined Mar 14, 2010 (16y ago) · 261 submissions

Some things I done did:

New Programming Language https://civet.dev

Apps for everyone https://glitch.com

Zine based operating system https://whimsy.space

Pixel editing community https://pixieengine.com

Email me: daniel@danielx.net

Submissions

comment 1d ago · link · parent

There's a parallel path that hooks into TS server for IDE language server features.

Civet can compile directly to TS or JS.

comment 1d ago · link · parent

Coding may come back around

comment 2d ago · link · parent

We include ES compat flags that can have it favor TS compilations where they would be ambiguous with full Civet.

Implicit returns beat implicit voids, just my opinion. TS also squiggles at you if you have a mismatched return type. Funny how two wrongs can make a right (Coffee + Types).

comment 2d ago · link · parent

Fortunately there are different languages that optimize for different things. I put the things that I like in this language.

You can still add braces in Civet, they're just optional but proper indentation is enforced (best of both worlds?)

comment 2d ago · link · parent

- Yes there's decent LSP integration - There are some in the community working on linters/formatters but it's an ongoing - We've removed all the ASI pitfalls in the code emit stage - Whitespace is significant, we try to keep it consistent and intuitive but there are probably some subtleties and edge cases. The interactive docs on https://civet.dev are fairly exhaustive. - Compiles directly into cjs/esm via esbuild and other build plugins so has 100% integration with existing JS/TS ecosystem

There might be some existing issues about extending switch with more advanced pattern matching / data types. Currently the compiler itself is not very type aware to allow it to run each file independently. A fully type aware compiler opens up lots of opportunities with switch/overloading/etc. but can have challenges depending on what we need to know at compile time.

Rationale for disallowing whitespace between unary operands is to keep `a + -b` and friends more consistent. We may be able to add it in if you have some compelling examples.

Thanks for the feedback and hope you can give it a shot!

If you use LLMs they are surprisingly good at writing Civet considering the paucity of Civet data in the training corpus.

comment 2d ago · link · parent

They can pick up a book and regain the skill at any time. 10-15 min before bed is a great option.

comment 2d ago · link · parent

There are ES compat compile flags that resolve syntax ambiguities in favor of TS.

comment 2d ago · link · parent

As the creator of this language I'm always looking for feedback, even/especially from HN :)

comment 3d ago · link · parent

There's an infinite amount of hard work available to anyone and within arms reach.

comment 3d ago · link · parent

No one is stopping you from reading a book.

comment 1w ago · link · parent

Openrouter if you just want to pay as you go at token rates.

https://one.google.com/about/google-ai-plans/ had a 75% off on the Pro plan ($5/mo for 3 months) and limits are decent.

comment 1w ago · link · parent

With Neon Gemini is good now.

comment 1mo ago · link · parent

I’ve found that subscription is ~98% cheaper than API pricing.

comment 4mo ago · link · parent

Uh oh

15.

Show HN: Nutshot Simulator – 31 days, 59K prompts, 142M tokens, ~$23K of Claude(nutshotsimulator.com ↗)

5 points · by Yahivin · 4mo ago · 3 comments

comment 2y ago · link · parent

I was pleasantly surprised with how well Copilot picked it up. Civet doesn't have that many truly new language features, most of them are from existing languages and used in a similar way. Copilot is really good at matching what you are doing near the completion so I was impressed with how well it did with a new language.

comment 2y ago · link · parent

The built in browser debugger is incredibly good. As long as the transpilation is simple and matches JS semantics you can still use the debugger. I haven't seen good debugging tools when using languages more distant from JS but I'd love to know if they've become viable.

comment 2y ago · link · parent

We ship

comment 2y ago · link · parent

The GWT approach has its own downsides as well.

comment 2y ago · link · parent

Something interesting I've found while designing Civet is that TypeScript actually mitigates in a lot of the downsides of CoffeeScript.

Types help quite a bit with implicit returns so you don't accidentally return an iteration results array from a void function.

They also help reduce the downsides of terse syntax, just hover over things in the IDE and see what they are. Missed a step in a pipeline? The IDE will warn you if there's a mismatch.

comment 2y ago · link · parent

Nailed it

comment 2y ago · link · parent

This is pretty neat but I wonder how it compares to Arc...

23.

Factorio – Sound Improvements in 2.0(factorio.com ↗)

3 points · by Yahivin · 2y ago · discuss

comment 3y ago · link · parent

- Patrick's Parabox

comment 3y ago · link · parent

I can imagine the opposite.

comment 3y ago · link · parent

> No one in this world has ever lost money by underestimating the intelligence of the great masses of the plain people.

comment 3y ago · link · parent

That's why I created https://civet.dev as a personal slight against chaptrick.

comment 3y ago · link · parent

Civet[1] is a similar idea for a programming language based off of TypeScript and 99% ES compatibility.

[1]: https://civet.dev

comment 3y ago · link · parent

It seems to make sense with the example. The `tag` keyword defines a tag that is used the same as HTML tags to create an element.

    tag Box
 css pos:relative
 x = 0
 y = 0
 <self[x:{x}px y:{y}px] @touch.moved.sync(self)> <slot> "box"

    tag app
 <self[inset:0 d:hflex ja:center]>
  <Box[hue:blue]> 'One'

comment 3y ago · link · parent

Brandon Buckingham is a modern day Hunter S. Thompson. There are probably hundreds of other YouTubers doing similar things but we haven't heard about them yet because they are at the beginning of their career and Hunter is past the end.
12345
9