Hacker News new | past | comments | ask | show | jobs | submit | chasingtheflow's comments login

Can’t say I’ve done this recently, but I think if I were doing this today I’d probably install it on the current machine and then boot into recovery mode and reinstall from there.

https://support.apple.com/guide/mac-help/erase-and-reinstall...


But you have to have it installed. I could see this solution being useful for dealing with non-technical users.


There is a Web client at https://winden.app (although it uses different servers than the defaults in the Python CLI, the latter can be easily configured to use the same servers).

However, see further discussion in this article about the difficulties of Web / JavaScript security in this context (i.e. you're depending on the people operating the Web server to not serve different JS on each and every visit).


Can’t seem to read it on mobile.


You probably don't want to. Usually it needs at least a browser window, an editor and maybe an open TTY.

haproxy.cfg can be ... tricky.


Which site?


Blink is a fork of safari’s engine


You get the speed of SSR but can sprinkle interactivity into the app using the same SPA style frameworks via isolated “islands”.


It is for objects, just not for primitives.


No. Object are passed by value. Exact same example apply:

    let a = {key: 'a'};
    
    function foo( a ) {
      a = {otherKey: 'b'};
    }
    
    foo( a );
    
    console.log( a ); // {key: 'a'}


But it is also true that:

    let a = {key: 'a'};
    
    function foo( a ) {
      a['otherKey'] = 'b';
    }
    
    foo( a );
    
    console.log( a ); // {key: 'a',otherKey: 'b'}


Yes, because "a" is not an object, it is a reference to an object. This reference is passed by value. This kind of thing is why I'd recommand everybody to know C: when you know pointers there's no magic anywhere anymore


Could you give an example in C of how the above works?


Something like this, without any kind of error checking being done.

    #include <stdlib.h>

    // assume some hash table library, exercise for the reader
    typedef struct{} *hashtable_t;
    extern hashtable_t hashtable_init(void);
    extern void hashtable_put(hashtable_t hashtable, const char* key, const char* value);
    extern void hashtable_dump(hashtable_t hashtable);

    typedef struct {
      hashtable_t table;
    } data_t;

    void foo(data_t* a)
    {
        hashtable_put(a->table, "otherKey", "b");
    }

    int main(void)
    {
        // let a = {key: 'a'};
        data_t* a = (data_t*) malloc(sizeof(data_t));
        a->table = hashtable_init();
        hashtable_put(a->table, "key", "a");

        foo(a);

        // console.log( a );
        hashtable_dump(a->table);
        return 0;
    }

The function foo() gets the numeric value of the a pointer, thus a parameter inside foo() points to the same memory location.

If C had pass-by-reference, it would be possible to give (implicitly) the memory location of the local variable a in main() instead. For example, like in Pascal (var) or C++ (& in function declaration).


Yes, which together with the other example shows that javascript uses pass-reference-by-value, as explained elsewhere on the thread.


NASA's focus has shifted more to deep space


Does the fact that they released this on WWDC day, a high traffic tech news day, suggest there may be something in here that they're hoping gets overlooked?


They are linking to it directly from the www.google.com homepage, complete with a colorful custom Google animation. If they're trying to bury this report, they're doing a very bad job of it.


I'd imaging this is more a response to Trump pulling out of the Paris Climate Agreement than anything related to WWDC.


@stevespang they don't force you to. There's a button labeled "get the plugin" that takes you to the chrome plug in store. Then below that there's a for labelled "Connect" which allows you to subscribe to their mailing list.


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: