Lurker News

Comments (136) 51 threads

antimatter1516 replies#
Hey HN!

I'm one of the creators of Carbide, and I'm really excited to share it with you all.
We're thinking of releasing Carbide as open source in the coming weeks if there's a community interested in building stuff on top of it.
One of the areas we'd appreciate help with is adding support for different languages— Python, Scala, Haskell, Rust, etc.
Other than that, general feedback / questions welcome.
We've scrabling to turn off jet-engine mode on the website :)

antimatter15#
We've turned off the crazy scrolling effects, so hopefully your laptops won't be supersonic anymore.
nhaliday1 reply#
Any comments on how your project compares to https://tonicdev.com/home?

It looks like y'all are really aiming for Bret Victor-style direct manipulation, which is a bit more ambitious, but Tonic has incorporated some similar ideas, including time-traveling debugging, and it seems like there's a lot of overlap around the more basic features, like the automagical approach to packaging and the data visualization stuff.

antimatter15#
I think Tonic is great, and the stuff they've done with CRIU for pausing resuming computation is really clever. On the surface, Tonic is meant for building NodeJS services, whereas Carbide is focused on things which run in the browser.

One aspect of Tonic that I find really interesting is the attention they've paid to reproducibility.
Traditional notebook programming environments (Mathematica and Jupyter) are sensitive to the order of execution of the cells, which often makes it kinda hard to reproduce results. This stems from the fact that cells are used for two things— controlling what gets executed, and as a means for visualizing output.
As far as I'm aware, Tonic is designed so that there is only one way that a program can execute, so there's any notebook is automatically trivially reproducible. This has the side effect of making every notebook essentially equivalent to a single file which is evaluated in-order. Essentially, they've made it so cells only mediate what output is displayed, and not what gets executed.
Carbide takes the opposite approach— leaving cells to only control what gets executed, and introducing something else (probes) to visualize output within a cell.

zdrummond#
This looks great. I really love tonicdev [1], but I'm reluctant to use it on production data because it's SaaS [2]. If you open-sourced this and I can run it "behind the firewall", that would be awesome.

[1] https://tonicdev.com [2] I don't want to share production keys with Yet Another SaaS

finkelwink2 replies#
I know it sounds crazy, but hear me out. I would love to hack on adding VR support to something like this. A real Minority Report development environment is something I've always dreamed of having.

No promises, but I can't get experimenting without source. Wink :).

ramon#
This is something I dreamed about it too, another thing I dreamed about was speaking what I wanted and the computed programmed it for me. I think I might be closer to telling the computer what to develop and have it open up in Carbide then the first idea, because I'll probably need a Unity behind the Carbide and I don't want that, will be heavy as hell.
fizx#
> We're thinking of releasing Carbide as open source in the coming weeks if there's a community interested in building stuff on top of it

I'll be hitting refresh until you do :)

antimatter152 replies#
A lot of Carbide's widgets depend on having access to a program's parse tree, which (to the extent of my understanding) a lot of these protocols (Jupyter/MS's Language Server Protocol) don't provide.

In order to inspect an expression, we have to be able to take the document, parse it into an abstract syntax tree, determine branches which are expressions, and annotate them so that a code generator can wrap it in some log invocation.
It'd be great if it were possible to apply "one simple trick" and support a hundred different languages all at once, but in this case I don't think the existing abstractions really suffice.

spullara#
You have access to that in IDEA and there are plugins that do some of the behavior you have in carbide. Very creative new features though.
a-saleh#
Do you think it might be possible to auto-port languages that are compilable to JS with source-map support?
sushisource3 replies#
One of the comments I always have when I see environments like this is that it looks really neat to have all these adjustable sliders and partial debugging and whatnot, but when you attempt to apply this to any truly useful program (ie: Anything that performs side effects) it really starts to break down if that side-effect isn't idempotent, like writing a file to a disk, or making a network call you really only want to make once, etc.

Do you have any strategies for that, or is the idea that these features are really only for testing functions that don't cause those sorts of side effects?

rtpg#
One way to work around this is to write programs that work in memory and have a button that manually triggers side effects

So you do all your manipulations and then hit a "Save" button at the bottom which triggers the save to disk.
Similarly if your input depends on a side effect (web resource?) You place a button on the top which will "start" your program.
Of course, the programming environment can offer primatives (debouncing and the like) to help make this stuff easier.

voltagex_#
I wonder if the debugger could be combined with a really good mocking framework. That seems like a good idea for a "live" testing framework. Maybe that's something that could be used to help prototype unit tests themselves.
chvid#
(First congrats on a great looking project and really good copywriting/teaser.)

I think this sort of highly interactive environment is best suited for languages without side effects at all.
I.e. purely functional language as you see it in a spreadsheet.
Allowing any language (JS, Python and so on) gives problems with how to handle errors, show variable values that change over time, how to handle programs that take a long time to evaluate (or never evaluates), how to handle programs that modify the environment (i.e env.x = env.x + 1) and so on.

qwertyuiop924#
This feels very inspired by Smalltalk's IDE. Not entirely, but there's certainly some traces in things like probes and inspection.

What's involved in writing language support? I'm probably sticking with Emacs for the day-to-day, but I might be interested in writing Scheme support.

suyash#
Dude congratulations! Please write a blog post on :

1. Who invested this product? 2. What are it's key features that are missing today in IDE's? 3. What was your primary motivation etc.
It will be nice to hear the backstory.

carapace#
I'm normally pretty cynical about these sorts of efforts but this seems pretty compelling.

One pet peeve about the site, please consider adding a "Who" section or note. One of the first things I look for in an interesting site or project is the "human face" of it, so to speak.

adelarsq#
For Rust? Keep going! Would be so cool!
hoodoof#
What is your business model, how will you make money?

What is the need that it meets or problem that it solves?
Who are the first champion users who will feel compelled to use this?

greenspot#
Is Carbide kind of a JSFiddle Pro?
xyzxyz998#
You've done a wonderful job. It takes courage to think in completely new directions, actually do something about it and then give it away- like a Buddha.

Sorry about the naysayers. Please remember that most of us on this forum are wannabes trying to one-up each other to make up for our failures. Don't blame us, we're all humans... :(

ramon#
Great job, I think the idea of adding different languages or widgets should have an "App" concept were people plugin technologies. That way there can be various githubs of projects separate from the main project were people contribute at free will, that would be really awesome and great for the project. Best Regards,

Continue this thread — 1 more reply

kbart4 replies#
The page is surprisingly uninformative. It took me good 5 minutes of looking for "download" button before realizing that it's an in-browser IDE. A big "Try it now" button on top of the page would do wonders. A short, one sentence description of what it is would also be helpful, because "new kind of programming environment" reminds something from managers' meeting slides. Anyway, good job and thanks for making it available to us, I was looking for something like this few months back, I'll sure give it a try.
Elrac1 reply#
Similar sentiment here. If I understood the not-very-explicit description correctly, it's an IDE for Javascript, and Javascript only, right?

It's hard to believe, but somewhere in the world are developers using languages other than Javascript.

helb1 reply#
"We haven't launched support for other programming languages yet (rest assured it's on our roadmap)"

"Our roadmap" is a link, but does not work… There however is a "Future" section near the page bottom, with screenshots that indicate support for Python, MIT Scheme, and something called Watlab.

Elrac#
I missed that! Thanks.
pawelk#
Yeah, I saw ⌘-Enter in the bottom-right of every example and immediately thought "too bad I can't even try this on my machine". But I kept scrolling and clicked one of the "Example Notebooks" half-expecting it'll download a project file or something but luckily it turned out to run the editor in my browser.
athenot1 reply#
It seems that the author addressed that in the very first bullet point on that page:

> Carbide is a new kind of programming environment which (as obligatory in this day and age):
> • Requires no installation or setup
(It's also followed by the mention of Javascript and all the browser screenshots reinforce the point.)
The first analogy that came to my mind is that this is a similar environment to Wolfram Alpha but more focused on experimenting around with programming concepts.

kbart1 reply#
"Requires no installation or setup" != "in-browser". You can as well link everything statically to a single bin file or use Java.
xeromal#
Yeah, it could easily be just a portable app.
ruler88#
Yea I can echo this statement
chriswarbo3 replies#
Looks like a cool project, but I can't scroll very far down the site before my browser crashes. I've reproduced this several times, here's the terminal output if it helps:

    $ conkeror https://alpha.trycarbide.com
    ......
    JavaScript strict warning: https://alpha.trycarbide.com/, line 603: SyntaxError: test for equality (==) mistyped as assignment (=)?
    JavaScript strict warning: https://alpha.trycarbide.com/, line 604: SyntaxError: test for equality (==) mistyped as assignment (=)?
    JavaScript strict warning: https://alpha.trycarbide.com/, line 605: SyntaxError: test for equality (==) mistyped as assignment (=)?
    JavaScript strict warning: https://alpha.trycarbide.com/, line 606: SyntaxError: test for equality (==) mistyped as assignment (=)?
    JavaScript strict warning: https://eponymous-labs.github.io/carbide-splash/static/main.js, line 162: SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function
    JavaScript strict warning: https://eponymous-labs.github.io/carbide-splash/static/main.js, line 201: ReferenceError: assignment to undeclared variable diff
    Console error: [JavaScript Warning: "window.controllers is deprecated. Do not use it for UA detection." {file: "chrome://conkeror/content/window.js" line: 331}]
      Category: DOM Core
    Segmentation fault
outworlder1 reply#
Well, if the browser segfaulted, it is not the page's fault. It is the browser's. No ifs or buts.

I'd suggest enabling core dumps and sending those to the Conkeror team, assuming there's no bug filed for that.

pmontra1 reply#
I know how this line of defense plays out with my customers if their customers' browsers segfault on a page I wrote...

I fix the page ASAP to prevent the segfault and then file a bug to the browser developers. If I don't, I lose the customer and somebody else will fix the page anyway, maybe not filing the bug because it doesn't make money.

Erwin4 replies#
Just how do you "fix a segfault" in your page? Do you immediately replicate the user's exact computing environment, all down to the specific operating system and perhaps browser plugins which might contribute, install a specific version of the this obscure browser (Conkeror?) with debug symbols, fire up GDB and understand why the complex C++ crashed based on the core dump?

That seems like an unlikely amount of effort. IME If you have some "enterprise" tool with enterprise clients, there's typically going to be a list of browsers which are supported and tested by QA.

Continue this thread — 4 replies

maaaats#
Freezes the browser here, mobile Firefox

Continue this thread — 1 more reply

nostrademons12 replies#
I think that something like this will probably be the future of programming, but Carbide itself needs to dial it back and focus on which data visualizations give the biggest bang for the least obtrusiveness.

Apple's been moving in a similar direction with Swift playgrounds, and recent Java IDEs (IntelliJ, and I think Eclipse) will display the values of variables next to the line of code when you pause in the debugger. These are both useful features. They get cluttered really quickly, though, and in the playground case take you out of your normal development flow.
If you want this to be impactful, focus on delivering information at your fingertips without delivering information overload. The core idea of being able to inspect & manipulate run-time values alongside the code that generates them is sound. The implementation - with lots of fancy gadgets that overshadow the code itself - needs some design love.

Continue this thread — 12 replies

Load more comments