TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Codepad.org, a pastebin that executes code

143 pointsby sahabout 17 years ago

24 comments

wastedbrainsabout 17 years ago
I could see this being incredibly useful, there has been tons of code pasting, but it will make things a lot cleaner and simpler being able to check out fully functioning code while discussing the problem with someone.<p>Now all it needs is an embeddable widget and this would take over coding blogs and forums.
rajuabout 17 years ago
Very, very nice. Love it. I agree with paulgb, this is something I never thought I would ever find useful, but I can already see myself sharing code snippets with others.<p>I might be getting greedy, but how about syntax highlighting? Although CodePad is really cool. Bravo! Keep up the great work...
评论 #129475 未加载
评论 #129576 未加载
bouncingsoulabout 17 years ago
Suggestion: Since it's intended for code you should explicitly declare a monospaced font for the textarea. Safari uses a sans serif by default.
评论 #129405 未加载
slackerIIIabout 17 years ago
Very cool stuff. How are you keeping the backend secure?<p>You should put up a page of the most popular code samples :) And of course, let people vote them up and down.
评论 #129319 未加载
bootloadabout 17 years ago
<i>"... Codepad.org, a pastebin that executes code ..."</i><p>Very nice. Tried <i>"import this"</i> &#38; <i>"hello world in c"</i>. There is a poll over on arclanguage that asks if users want this type of functionality (hosted arc repl). I was surprised that more didn't want this type of feature to hack with Arc ~ "A hosted repl" : <a href="http://arclanguage.org/item?id=4070" rel="nofollow">http://arclanguage.org/item?id=4070</a>
vladabout 17 years ago
Really cool. I thought of something related yesterday, which would be a place where people could submit code to get comments and feedback from the community about how they would have coded something differently. It would be useful for both newbies, business people, experienced programmers, web programmers, and people who've known COBOL for 20 years and want to learn about new languages. And, for each program, someone could submit code that does the same thing in a different language, especially web languages. This is really awesome and would facilitate this very easily! A good way to learn the proper way to do something, especially with web languages that may change every major version, is by asking questions of experts in an IRC chat, and then watch them argue amongst each other about the best way to implement something. This would solve that problem by letting people browse, search, or reference a particular post or example or add on to it. I'm thinking of a wiki/social news/forum/code execution app.
评论 #129425 未加载
paulgbabout 17 years ago
Cool. This is one of those things I didn't know I needed, but give it a week and I won't be able to live without it ;).
mixmaxabout 17 years ago
Welcome to hacker news.<p>Hope you stick around :-)
mikecottonabout 17 years ago
This is sweet. So useful for getting help with code or showing someone how to do something.
评论 #129418 未加载
tokipinabout 17 years ago
Lua would be a nice and easy addition. in particular WoW uses it for its UI mods
tlrobinsonabout 17 years ago
How about some JavaScript support. Here's I'll help:<p><pre><code> document.write(eval(inputString)); </code></pre> Of course that lacks any sort of security measures...
thoraxabout 17 years ago
This reminds me a bit of that site Utility Mill, but, of course, that one is for long-term versioned Python code.<p>Nice work.
ghiotionabout 17 years ago
No lisp? No arc? ;)<p>Seriously, that's really cool. I want to break it now.
评论 #129376 未加载
andreyfabout 17 years ago
Why not include a prettier editor?<p><a href="http://www.cdolivet.net/editarea/" rel="nofollow">http://www.cdolivet.net/editarea/</a><p>Or maybe open an API so that other people can extend it?
johnrobabout 17 years ago
Timeout is working: <a href="http://codepad.org/nQQKVWfa" rel="nofollow">http://codepad.org/nQQKVWfa</a>
评论 #130721 未加载
henningabout 17 years ago
Darn, my code snippet to call system("rm -rf /") was met with some nonsense about forking disallowed.
评论 #129325 未加载
评论 #129721 未加载
andrabout 17 years ago
I tried to write an infinite loop in C, but couldn't remember what I had to include. FAIL.
评论 #129374 未加载
alusabout 17 years ago
<a href="http://codepad.org/pclJNMvg" rel="nofollow">http://codepad.org/pclJNMvg</a>
评论 #129318 未加载
评论 #129924 未加载
simianstyleabout 17 years ago
Will there be any PHP support?
评论 #129502 未加载
评论 #130596 未加载
tokipinabout 17 years ago
a timer might be nice for comparing algorithms and languages
评论 #129921 未加载
jsmcgdabout 17 years ago
Really cool. Well done!
newt0311about 17 years ago
Awesome. Future suggestion (for python), add in some external modules like scipy. Then it would be possible to send examples of some of the more obscure modules. Really nice app.
miratomabout 17 years ago
c/c++ is broken. Doesn't support this:<p>int x = 4; x++; printf("x: %d\n",x);<p>How can you say you support c/c++ when you don't support ++?
评论 #131017 未加载
rmsabout 17 years ago
Upvoted!