Better HN
topnewbestaskshowjobs
Log inSign up

cdcarter

2,014 karma · joined May 28, 2011 (15y ago) · 1,007 submissions

@cdcarter / cdcarter@gmail.com

apex compiler and runtime - salesforce

Submissions

comment 2mo ago · link · parent

How would a docker container do anything for a web component?

comment 6mo ago · link · parent

Can you share some credible sources on "schools banning calculus"? Googling seems to primarily show up Quora and indeed HN discussions, and no actual policy proposal or news article.

comment 6mo ago · link · parent

Check out the Adafruit Fruit Jam, its got pretty much everything you need.

comment 6mo ago · link · parent

Most US insurance has very strict guidelines about what is diagnostic vs preventative for a colonoscopy. And its almost certianly diagnostic.

comment 7mo ago · link · parent

The plugin directly adapts code from GNU Grep, so they MUST release it under the GPL, as far as I understand.

comment 7mo ago · link · parent

All you really need is a copy of "The Unix Programming Environment", where you can implement `hoc` in a couple hours.

comment 7mo ago · link · parent

What do you mean by that? bad support for what?

comment 8mo ago · link · parent

Swift too, in 6.3!

comment 8mo ago · link · parent

The blog started publishing in 2017. Why do you think this?

comment 8mo ago · link · parent

That is what raincole is asking about. Do you have a source for this, in the Uk context?

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

If it weren't for the 11k process fork bomb, I wonder how much longer it would have taken for folks to notice and cut this off.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

That would be the "hardwired" option.

comment 8mo ago · link · parent

I don't think beyond tastes that crazy, but I have to jump in to support this bean burger. These guys are the real deal.

comment 8mo ago · link · parent

80% of my home voice assistant requests really need no response other than an affirmative sound effect.

comment 8mo ago · link · parent

Even a PCMCIA slot would help! ;)

comment 11mo ago · link · parent

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.

comment 1y ago · link · parent

Nothing stopping someone from deciding to migrate VCSs (or even just repos) and all of a sudden end up in the place that 15 years of codebase history is squashed down to a single new starting commit. :(

comment 2y ago · link · parent

On the other hand, ifnt is fun to say outloud.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Do you have any written posts or documents about this language and your design decisions?

comment 2y ago · link · parent

What?

comment 2y ago · link · parent

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)

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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!

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

kens is the author of the write up, not the designer of the chip.
12345
34