Better HN
topnewbestaskshowjobs
Log inSign up

binarynate

2,743 karma · joined Dec 25, 2016 (9y ago) · 730 submissions

Submissions

comment 5y ago · link · parent

> That means dumping C++.

Or just integrate with C++ code by exposing it through C linkage with `extern "C" {}`. Sure, C is the de facto lingua franca of programming languages, but that doesn't seem like a pragmatic reason to choose C over a different language that may be better for the job. Also, C++ has a massive ecosystem.

572.

TypeScript 4.3 RC(devblogs.microsoft.com ↗)

2 points · by binarynate · 5y ago · 1 comment

573.

Catala: A Programming Language for the Law(arxiv.org ↗)

6 points · by binarynate · 5y ago · discuss

574.

99% Invisible Acquired by Stitcher(twitter.com ↗)

34 points · by binarynate · 5y ago · 8 comments

comment 5y ago · link · parent

> I’d like to remind you that the code wasn’t developed by WordPress - it was General Public License (GPL). We didn’t steal it, and we gave it back according to GPL (JavaScript is not linked)

This doesn't really address Matt's point that the Wix app should be GPL licensed and that attribution should be given in order to comply with the library's GPL license. If anything, this response from Avishai just makes Wix look worse.

576.

Thoughtworks Technology Radar Volume 24(thoughtworks.com ↗)

3 points · by binarynate · 5y ago · discuss

comment 5y ago · link · parent

The three most popular kinds of TypeScript projects I create are:

- Node.js services built with Serverless framework targeting AWS Lambda - Create React App front-ends - Gatsby front-ends

For the first, I have a single shared webpack config that I reuse for all my serverless services. For the front-end projects, I just followed the few steps to add TypeScript support to CRA and Gatsby.

comment 5y ago · link · parent

Yes, native interop works the same across all platforms (Linux, macOS, Windows, Android, iOS). You can just place a dynamic library with C linkage (.so, .dylib, or .dll file) into your app's folder, and then you can call the native functions as external functions in C#. For example, if your library exports the following C function:

    void printMessage(char *message) {
        printf("Message from C#: %s", message)
    }
You can call it from C# like this:

    MyLibrary.printMessage("Hello from C#!");

    public static class MyLibrary {
        [DllImport("MyLibraryName")]
        public static extern void printMessage(string message);
    }
C# takes care of marshalling data types, and an instance of a native object can be passed as an IntPtr. I'm currently developing web services for a new WebRTC-related product using .NET 5 on Ubuntu, and it's working well. One of the services utilizes a native C++ library and another utilizes a native Go-based library using the same approach. Java and Go are both good options, too.

comment 5y ago · link · parent

I think that C# is underrated. Although TypeScript is my default language choice for most programming, C# / .NET is my choice for cases where:

- high performance is important - or interop with native libraries is required (because C#'s DllImport attribute makes that super simple)

Another benefit is that C# is syntactically similar to TypeScript (they were both designed by Anders Hejlsberg after all), so switching between the two languages feels easy. Java and Go are both similar to C# in terms of performance, but interfacing with native code isn't as simple with those languages, and they're also not as similar to TypeScript as C# is (especially Go, which is quite different).

580.

SE Radio Episode 452: Scott Hanselman on .NET [audio](se-radio.net ↗)

1 points · by binarynate · 5y ago · 1 comment

581.

TC39 proposal: operator overloading in JavaScript(github.com ↗)

1 points · by binarynate · 5y ago · 1 comment

582.

Brendan Eich: JavaScript, Firefox, Mozilla, and Brave [audio](lexfridman.com ↗)

3 points · by binarynate · 5y ago · discuss

583.

Node.js 14.x runtime now available in AWS Lambda(aws.amazon.com ↗)

2 points · by binarynate · 5y ago · discuss

comment 5y ago · link · parent

Oh yeah, you're right—thanks for pointing that out!

comment 5y ago · link · parent

There's a really good story on the stock corner of Piggly Wiggly in "Business Adventures", a book that Bill Gates said is his favorite business book.

https://www.gatesnotes.com/Books/Business-Adventures

586.

Deno in 2020(deno.land ↗)

1 points · by binarynate · 5y ago · discuss

587.

WT.Social: a donation-funded social network created by the creator of Wikipedia(en.wikipedia.org ↗)

1 points · by binarynate · 5y ago · discuss

588.

Autonomous racing is coming to Indianapolis with the Indy Autonomous Challenge(cnet.com ↗)

2 points · by binarynate · 5y ago · discuss

comment 5y ago · link · parent

indie = independent

indy = Indianapolis

590.

Parallels 16 Preview for M1 Macs Runs ARM Windows(macrumors.com ↗)

1 points · by binarynate · 5y ago · discuss

591.

Run Deno Containers on AWS Lambda(hub.docker.com ↗)

1 points · by binarynate · 5y ago · discuss

592.

Take the State of JavaScript Survey(stateofjs.com ↗)

3 points · by binarynate · 5y ago · discuss

593.

Trello Is Down

2 points · by binarynate · 5y ago · 2 comments

594.

Electron 11.0 released with support for Apple Silicon(electronjs.org ↗)

122 points · by binarynate · 6y ago · 219 comments

595.

No-nonsense guide to gRPC for C# developers(aiki.dev ↗)

1 points · by binarynate · 6y ago · discuss

comment 6y ago · link · parent

The most surprising part is that LiveJournal is still around.

597.

Apple M1: which apps are ready and which are not yet(en24news.com ↗)

1 points · by binarynate · 6y ago · 1 comment

598.

Insights from Adopting TypeScript at Scale at Bloomberg(techatbloomberg.com ↗)

2 points · by binarynate · 6y ago · discuss

1
192021
25