Hacker Newsnew | past | comments | ask | show | jobs | submit | THBC's commentslogin

”every pointer is simply adding a dimension to the data.”

No, it’s not. The concept of having a pointer to a pointer has nothing to do with the concept of dimensionality.

You must be thinking of lists of lists (of lists…), which can be implemented using pointers. The dimensionality, however, comes from the structure of the list, not from the pointers.


Right. -ish. A two dimensional array can be modeled as an array of pointers to one dimensional arrays or as one pointer to a two dimensional array. Both have use cases. It's probably a right of passage for someone new to the C language to understand that difference (I learnt C as a teenager and it took me some time, months, to comprehend all the different permutations of pointers and square brackets).


I guess you skimmed over: “Which is one way to interpret things”

I’m certainly not thinking of a list-of-lists. In actuality, pointers ARE dimensionality, regardless of the intended use.

I’m not going to spell that out further. If you can’t see that, then you’ve got some work to do if you’re maintaining a C codebase.


Holodeck is just around the corner


Except for haptics.


Probably written by a language model


Ah, configurable data loss.


M/S Local Minimum


Prior Drift


Just make some of your relationship arrows longer by adding more dashes.


What? In JS async/await is _literally_ syntactic sugar for returning/thening promises.


They need to have experience and intuition working with promises without syntactic sugar, before being allowed to use syntactic sugar.

It's a basic way to learn. In Python you don't directly teach people about decorators without first asking them to explicitly reassign a function to the result of calling the decorator. In Haskell you don't teach people about do notation without first making them write nomadic code with the bind operator and many lambdas.

In many cases, just a few days of forbidding students to use the syntactic sugar is enough to make them appreciate why this syntactic sugar is needed and how it is supposed to be used. JavaScript's async/await is the same.


    const value1 = await task1(init);
    const value2 = await task2(value1);


That’s not ”raw Promise” syntax, that’s Thenable syntax.

Compare with

    const myPromise = new Promise((resolve, reject) => resolve(”foo”));
    
Afterwards either try-catch await myPromise, or use myPromise.then().catch()


It’s only the irreversible MAOIs that get a bad rap for being somewhat incompatible with certain foods and other medicines.

These MAOIs are reversible, i.e. they will release from their substrate (the MAO enzymes) after some time. Irreversibles require the body to synthesize more of the enzyme to replace the enzyme molecules that got forever inactivated.

That said, some of the Harmala family alkaloids are also heavily comutagenic and some are neurotoxic.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: