HN user

neeeeees

161 karma
Posts4
Comments53
View on HN

On one of these less forgiving architectures, how does one write programs that read some bytes off the network, bitcast them into a struct, and do something based on that?

On x86 you would use a packed struct that matches the wire protocol.

Wouldn’t this require extra copying if member reads were forced to be aligned?

To add, the set of observable mutations (beneficial or not) that occur as a result of a single point mutation is in all likelihood an extremely tiny subset of the set of all observable mutations - even after “deduping” for the observed effect.

It’s an intentionally misleading tweet.

To simplify, It’s saying, if the genome were a string of some length, for any possible byte b and byte position i, there exists a person whose genome has b at position i. Unlike normal character strings, there are only 20 or so valid characters (proteins) encoded by 3 “bytes” (nucleotides) each. So you’re looking at O(10 billion) values of (i, b) that would still keep the string well-formed in its 3-bytes-per-character encoding.

Most importantly, it’s not saying anything about having some bytes b1 and b2 at the ith and jth positions or any generalization thereof.

Sane C++ Libraries 2 years ago

Interesting - is there a type safe way to do this? vector<variant<>>? and/or a custom “vector allocator” to hide the details?

(Author here) Thanks for explaining this more succinctly than I can :)

Just one nitpick:

decent amount of stuff that has to be done in main before you run _start

should read

decent amount of stuff that has to be done in _start before you run main

Analogously, cleanup code like running global destructors usually happens in _start/CRT after main returns, but I skipped that in the post for the sake of brevity.

they are slow when not thrown

I thought the not-thrown case was pretty much zero-cost, at least in newer versions of Clang... How much of a slow down are we talking here?

Looking forward to grabbing a physical copy of this book. As a beginner, CI and Alex Aiken’s course at Stanford were a great place to start.

Bob also gave me a lot of insight on what it’s like working on programming languages in the industry when I reached out to him as an undergrad.

Hey everyone, I wanted to build a tool like this to clearly illustrate how 'code is just data' - something a lot of students in a class I TA'd struggled to grasp. Everything in CUTE centers around a memory array with disassembly overlay, and each word being editable. It's still a little rough around the edges (e.g - the assembler doesn't catch many syntactic errors which aren't hard to detect), but I wanted to get some early feedback!

Looks pretty cool! Couple of questions:

- Is there a story behind the name?

- Out of curiosity, does “Encore Cloud” also run on AWS?

- I think a lot of developers have a mentality of “rather write boilerplate than be tied to a platform not endorsed by $bigCompany”. Do you have a strategy to mitigate this?

Congrats on the milestone!

I hope it’s okay to ask a technical question:

How did you build push notifications (especially on mobile) with a single codebase? Do you use something like OneSignal?

Also, is your iOS app still using Cordova? It looks and feels so nice, which is a marked difference from the last time I tried that framework.

I think I can answer part of this. I worked on building GraphQL APIs dynamically from Rails models as sort of a pet-project at Shopify a few years ago.

It’s not a difficult task, but when discussing viability with the APIs team, the general consensus was that you don’t want your API coupled to your data. Most of the time, you don’t want to expose everything.

Of course, you can start describing what to omit, but now you’re just writing an API design by omission.

Building good APIs is hard, so you want to build the right abstraction - which is not always the easiest one.

Not sure why you’re getting downvoted. A little harsh and hyperbolic , sure, but their website has become an unusable joke in recent years.