Live data from Hacker News

Show HN: Sunflower Editor – like adding console.log to every line of your code

editor.sunflower.industries

11–20 of 27 posts

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#11

Creator here, thanks for checking out the editor! Here are some more examples: React: https://editor.sunflower.industries/?loadExample=reactExampl... . A 1500-line React app (in one file) will work just fine. Hot Swapping: https://editor.sunflower.industries/?loadExample=replExample Our goal is to make it easier to see what's happening in programs, and in doing so make coding faster. Eventually we want to build in th…

[deleted]

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#12
post #6

This reminds me of a very similar product, QuokkaJs [0] which works across many popular editors, VSCode, Atom, Sublime, Jetbrains suite. [0] https://quokkajs.com/

https://runjs.app/ is also another player in this area, though is its own editor.

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#13

Creator here, thanks for checking out the editor! Here are some more examples: React: https://editor.sunflower.industries/?loadExample=reactExampl... . A 1500-line React app (in one file) will work just fine. Hot Swapping: https://editor.sunflower.industries/?loadExample=replExample Our goal is to make it easier to see what's happening in programs, and in doing so make coding faster. Eventually we want to build in th…

Very cool. One note: the browser (at least Firefox and Chrome) becomes unresponsive for a while if the code takes too long to run.

For example:

    for (i = 0; i 

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#14

Nitpick: Please don't break the back button.

Works fine for me - what behavior are you seeing?

You need to click it twice but that's because the page is doing a redirect it seems. That would be the expected behavior from my POV.

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#15
post #13

Creator here, thanks for checking out the editor! Here are some more examples: React: https://editor.sunflower.industries/?loadExample=reactExampl... . A 1500-line React app (in one file) will work just fine. Hot Swapping: https://editor.sunflower.industries/?loadExample=replExample Our goal is to make it easier to see what's happening in programs, and in doing so make coding faster. Eventually we want to build in th…

Very cool. One note: the browser (at least Firefox and Chrome) becomes unresponsive for a while if the code takes too long to run. For example: for (i = 0; i

Another fun example:

    function fib(n) {
      if(n == 0 || n == 1)
        return 1;
      else
        return fib(n-1) + fib(n-2);
    }

    fib(100);

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#16

Nitpick: Please don't break the back button.

Works fine for me - what behavior are you seeing? You need to click it twice but that's because the page is doing a redirect it seems. That would be the expected behavior from my POV.

That is not expected behavior. If you click a link and get a page, one expects back to return to the previous page.

A standard HTTP redirect does this right as well as location.replace()

The site incorrectly sets a new location by other means.

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#17
post #8

Creator here, thanks for checking out the editor! Here are some more examples: React: https://editor.sunflower.industries/?loadExample=reactExampl... . A 1500-line React app (in one file) will work just fine. Hot Swapping: https://editor.sunflower.industries/?loadExample=replExample Our goal is to make it easier to see what's happening in programs, and in doing so make coding faster. Eventually we want to build in th…

this should be a vscode extension! wonderful work!

I'm curious what would happen if two extensions were trying to do this sort of output simultaneously, like this and GitLens.

Re: Show HN: Sunflower Editor – like adding console.log to every line of your code

#20
post #19

Interesting, the steady state nature of the code reminds me of MS Excel! Which is a compliment by the way :)

Thank you! Excel would be a lot less fun if it was like coding and you had to press “Run”, haha
Post reply on HN