HN user

cdcarter

2,007 karma

@cdcarter / cdcarter@gmail.com

apex compiler and runtime - salesforce

Posts30
Comments943
View on HN
news.ycombinator.com 2y ago

Ask HN: Python3.12 Hosting?

cdcarter
1pts2
blog.joinmastodon.org 2y ago

How to implement a basic ActivityPub server

cdcarter
3pts1
news.ycombinator.com 2y ago

Ask HN: Linux from Scratch style project with modern twist?

cdcarter
4pts1
www.spacerogue.net 3y ago

Camneerg: The Mac Plus Web Server

cdcarter
50pts9
techcrunch.com 4y ago

The $495 Peloton Guide brings connected strength training to fitness platform

cdcarter
2pts0
news.ycombinator.com 7y ago

Ask HN: What (emerging) web standards are important for HTTP APIs in 2018?

cdcarter
1pts0
emoji.expert 10y ago

Emoji Expert

cdcarter
3pts0
www.edge.org 10y ago

Just A New Fractal Detail In The Big Picture (2015)

cdcarter
363pts175
medium.com 10y ago

Why the Bernie Breach Isn’t About Technology, and What’s at Stake

cdcarter
1pts0
news.ycombinator.com 10y ago

Ask HN: What “APIs” return images based on query strings

cdcarter
1pts0
medium.com 10y ago

This is why I support a SAG-AFTRA strike authorization for video games

cdcarter
3pts2
www.lightningdesignsystem.com 10y ago

Salesforce's Lightning Design System

cdcarter
2pts0
news.ycombinator.com 11y ago

Ask HN: What resources are there to learn to write good docs?

cdcarter
9pts3
news.ycombinator.com 12y ago

Ask HN: The software I want to build is too custom, how do I make it affordable?

cdcarter
6pts9
dhtmlconf.com 12y ago

DHTML Conf

cdcarter
3pts0
haskell.cs.yale.edu 12y ago

The Haskell School of Music

cdcarter
5pts0
groundfloor.neocities.org 13y ago

GroundFLoor

cdcarter
3pts0
www.insidehighered.com 13y ago

Veritossed: Cheating Scandal Kills 4 Harvard Quizbowl Championships

cdcarter
3pts4
www.washingtonpost.com 13y ago

Inaugural crowds corralled on the Mall to witness history

cdcarter
1pts0
korystamper.wordpress.com 13y ago

Seeing Cerise: Defining Color

cdcarter
1pts0
thesocietypages.org 13y ago

Race, Class, App.net: The Beginning of ‘White Flight’ from Facebook & Twitter?

cdcarter
3pts2
inthenest.nfshost.com 13y ago

Show HN: build a spotify playlist to work to, powered by EchoNest

cdcarter
1pts1
www.change.org 14y ago

Rename the font 'Comic Sans' to 'Comic CERNs'

cdcarter
4pts0
youarenotdead.com 14y ago

You Are Not Dead: A Guide to Modern Living

cdcarter
2pts0
groups.google.com 14y ago

Memo on Writing - Noah Slater

cdcarter
1pts0
www.guardian.co.uk 14y ago

Spanish novelist Lucía Etxebarria quits writing in piracy protest

cdcarter
4pts1
news.ycombinator.com 14y ago

Ask HN: With GoDaddy even more horrible, what budget hosting/domain company?

cdcarter
5pts10
poetrybyemilydickinson.com 14y ago

Poetry by Emily Dickinson: an attempt to subvert innocent Googlers

cdcarter
1pts0
www.vbs.tv 15y ago

Casey Reas on Code and Art

cdcarter
2pts0
www.adn.com 15y ago

The state said it was not practical to provide electronic [...] emails.

cdcarter
1pts0
Swift 6.3 4 months ago

As of very recently, the entire stdlib (i.e. "Foundation") is open source and available on all platforms Swift targets. For a while, the Linux builds had a much smaller/limited version of Foundation, but it's fully supported now.

Swift 6.3 4 months ago

I was looking for something that allows easy access to direct memory, with a syntax thats a little easier to explain than C. Frankly, zig was not actually a real viable option based on that syntax requirement but I still wanted to explore it.

Nim really is clean and simple.

Swift 6.3 4 months ago

I spent last week (with Opus, of course) porting the xv6-riscv teaching operating system to a bunch of different languages. Zig, Nim, LISP, and Swift.

The improvements in embedded Swift have definitely made it one of the most enjoyable/productive languages to work on the OS. I feel like I can build useful abstractions that wrap raw memory access and make the userland code feel very neat.

On the other hand, the compilation times are SO bad, that I'm really focusing on the Nim port anyway.

I vibe coded an app to track my movie watches, at https://moviesonthe.computer.

I really enjoy the ability to get started quickly with a known idea like “make a single user letterboxd clone” with a system prompt that explains my preferred tech stack. From there it’s relatively easy to start going in and being the tastemaker for the project.

I think people being able to build their own bespoke apps is a huge super power. Unfortunately I don’t think the tools today do a good job of teaching you how to think if you aren’t already a software engineer. Sonnet rarely grasps for an abstraction.

Huge shout out to Small Computer Central/Steven Cousins. I have four or five machines designed by him, with various main boards and backplanes. The parts are all tested working, and the build instructions are comprehensive. It’s a very enjoyable project to go from a pile of parts to connecting to the UART and blinking some LEDs.

I don't come from TS, but this seems like a good intro to zig from that sort of perspective. There's a whole lot of paradigms to relearn when you switch to something like Zig and this kind of content is useful.

I'll nitpick with one complaint though...

    const values = std.AutoHashMap(Point, u32);
    defer values.deinit();
    try values.put(Point{ .x = 0, .y = 0 }, 1);
    //  ~~~~~~^~~~ error: expected 3 argument(s), found 2
> The mistake here isn't on that line, and it doesn't have to do with the number of arguments. Rather, it's that I forgot to call .init() on the hash map

Well...

    >>> class MyType():
    ...    def test(self, a, b): return a + b;
    ... 
    >>> x = MyType
    >>> x.test(1, 2)
    Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
    TypeError: test() missing 1 required positional argument: 'b'
How else do you want unbound functions to behave when you haven't constructed an instance of the type yet? (And FWIW, zls in vscode correctly annotates values as having type `type` for me)

The Unix Programming Environment tutorial for building hoc doesn’t even come close to what Nystrom gets into in Crafting Interpreters. Hoc is a very fun little language, but as Nystrom describes several times in the book…parsing just isn’t the interesting part of the game.

I’ve also ported the lox vm to Zig and had a great time working through it.

Since the project is designed in C, you can mostly write the exact same code in zig, with minimal modifications. If you want to use zig features, they’re easy to integrate, but Nystrom obviously won’t be giving you any hints.

But the language offers a lot of useful features (slices, optionals, error types) and makes some C paradigms syntactic realities (tagged enums, explicit pointer casts). Even more so, the standard library comes with very useful stuff (an ArrayList, a handful of different allocators, heck I replaced the trie of keywords with a StaticStringMap).

it’s a fun project, I would definitely recommend it!

Well, the markdown specification allows inline HTML, so that's to be expected. But it's true if you're taking user input as markdown and display it as rendered HTML, you need to think very carefully about escaping and sanitization.

What Was ISDN? 3 years ago

Was glad to see some facts about using ISDN for voice acting in there. When I was a teen, my interests were split between computers and theater. I was SHOCKED when I found out some of the actors I got to work with had ISDN, and not for internet!