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.

Can your REPL do this?

119 pointsby whalliburtonover 13 years ago

15 comments

mtravenover 13 years ago
Still waiting for a REPL that could what Lisp Machines could do in the early 80s -- namely integrate graphics with object-specific behavior.<p><a href="http://dspace.mit.edu/handle/1721.1/6946" rel="nofollow">http://dspace.mit.edu/handle/1721.1/6946</a><p><a href="http://en.wikipedia.org/wiki/Common_Lisp_Interface_Manager" rel="nofollow">http://en.wikipedia.org/wiki/Common_Lisp_Interface_Manager</a><p><a href="http://www.sts.tu-harburg.de/~r.f.moeller/uims-clim/clim-intro.html" rel="nofollow">http://www.sts.tu-harburg.de/~r.f.moeller/uims-clim/clim-int...</a>
评论 #3325094 未加载
评论 #3324489 未加载
评论 #3325448 未加载
评论 #3324724 未加载
评论 #3326747 未加载
weavejesterover 13 years ago
Factor's REPL can handle images, colours and fonts:<p><a href="http://re-factor.blogspot.com/2010/09/visual-repl.html" rel="nofollow">http://re-factor.blogspot.com/2010/09/visual-repl.html</a><p>I've been meaning to write something like Factor's REPL for Clojure, but haven't gotten around to it yet.
评论 #3325366 未加载
评论 #3324080 未加载
colandermanover 13 years ago
I don't get this. Someone wrote a bunch of cute Lisp functions that use Unicode and put them on a webpage?
评论 #3324112 未加载
评论 #3326473 未加载
评论 #3324672 未加载
darklajidover 13 years ago
I didn't find a decent/direct way to get to the code itself. This seems to be the repository that is mentioned/used in that text:<p><a href="https://github.com/whalliburton/academy" rel="nofollow">https://github.com/whalliburton/academy</a><p>Edit: And someone who likes dead prez I certainly got a kick out of the hexagram examples. Haven't seen those for a while.<p><a href="https://en.wikipedia.org/wiki/Dead_Prez" rel="nofollow">https://en.wikipedia.org/wiki/Dead_Prez</a>
raldiover 13 years ago
Yes. It was called BASIC and it came with my IBM PC XT in 1985.
gruseomover 13 years ago
Somebody showed me some shit Mathematica can do (by way of embedding images and live representations of data) that goes way beyond this and any other Lisp REPL I've seen, so let's not get too smug.<p>On another note, it's a pleasure to see a bit of the I Ching in there - in the classic Wilhelm/Baynes edition, no less. It is one of the greatest works of civilization. (As for Wilhelm/Baynes: how a translation of a translation could have turned out so well is a mystery. Putting it beside any other I Ching in English is like comparing a Monet to a daguerreotype.)
评论 #3324961 未加载
yvdriessover 13 years ago
Well I learned something new. SBCL and CLISP seem to have good unicode support that work well with emacs+slime.
d0mineover 13 years ago
Racket <a href="http://docs.racket-lang.org/quick/index.html" rel="nofollow">http://docs.racket-lang.org/quick/index.html</a>
omarantoover 13 years ago
Just to make sure I understand: in "Can your REPL do this?" the word "this" refers to printing Unicode characters, right?
gcrover 13 years ago
DrRacket's REPL supports image literals. The racket language also includes functions for manipulating these. Take a look at this program: <a href="http://img13.imageshack.us/img13/6493/drracket.jpg" rel="nofollow">http://img13.imageshack.us/img13/6493/drracket.jpg</a><p>In the "Definitions" pane at the top, we define three variables, <i>bruce-lee</i>, <i>energy-blast</i>, and <i>terrible-accident</i>. In the "Interations" pane at the bottom (here's the REPL), we compose them together.
rryanover 13 years ago
<a href="https://github.com/whalliburton/academy" rel="nofollow">https://github.com/whalliburton/academy</a><p>Since there's no link to the actual repo in that document.
brutolover 13 years ago
(let ((i0 (parse-integer "4DF0" :radix 16))) (loop for i from i0 to (+ i0 300) do (princ (string (code-char i))))) ䷰䷱䷲䷳䷴䷵䷶䷷䷸䷹䷺䷻䷼䷽䷾䷿一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟丠両丢丣两严並丧丨丩个丫丬中丮丯丰丱串丳临丵丶丷丸丹为主丼丽举丿乀乁乂乃乄久乆乇么义乊之乌乍乎乏乐乑乒乓乔乕乖乗乘乙乚乛乜九乞也习乡乢乣乤乥书乧乨乩乪乫乬乭乮乯买乱乲乳乴乵乶乷乸乹乺乻乼乽乾乿亀亁亂亃亄亅了亇予争亊事二亍于亏亐云互亓五井亖亗亘亙亚些亜亝亞亟亠亡亢亣交亥亦产亨亩亪享京亭亮亯亰亱亲亳亴亵亶亷亸亹人亻亼亽亾亿什仁仂仃仄仅仆仇仈仉今介仌仍从仏仐仑仒仓仔仕他仗付仙仚仛仜仝仞仟仠仡仢代令以仦仧仨仩仪仫们仭仮仯仰仱仲仳仴仵件价仸仹仺任仼份仾仿伀企伂伃伄伅伆伇伈伉伊伋伌伍伎伏伐休伒伓伔伕伖众优伙会伛伜 NIL
评论 #3329055 未加载
anon_dover 13 years ago
This is actually pretty cool. Shame about the title.
fbombover 13 years ago
Wow. TRS-80 graphics.
deltasquaredover 13 years ago
To run the demos from SBCL: (require 'asdf) (asdf:operate 'asdf:load-op 'academy) (in-package :academy) (help)