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.

Factor: A Practical Stack Language

163 pointsby slondralmost 3 years ago

12 comments

bjolialmost 3 years ago
Be careful. Factor is a gateway to lower level stack based languages.<p>I saw Zed Shaw do a presentation using factor and decided to spend a weekend playing with it. It was the start of a two year journey that ended with me writing forth for microcontrollers. That was time I should have studied but was somehow always sidelined by other things.
评论 #32218598 未加载
评论 #32218128 未加载
评论 #32217998 未加载
评论 #32220758 未加载
评论 #32216483 未加载
评论 #32218781 未加载
评论 #32220728 未加载
评论 #32218134 未加载
mncharityalmost 3 years ago
In case anyone else was curious, Slava Pestov is now at Apple working on Swift. Top of his twitter[1] is a WWDC22 talk &quot;Design protocol interfaces in Swift&quot;[2] (but video seems 1x-only - I don&#x27;t see a copy on yt - there&#x27;s a transcript).<p>[1] <a href="https:&#x2F;&#x2F;twitter.com&#x2F;slava_pestov" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;slava_pestov</a> [2] <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;videos&#x2F;play&#x2F;wwdc2022&#x2F;110353&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;videos&#x2F;play&#x2F;wwdc2022&#x2F;110353&#x2F;</a>
评论 #32222956 未加载
mckinneyalmost 3 years ago
Ha! I implemented &quot;concatenative&quot; programming for Java as Binding [1] (or Unit) expressions, but had no idea. Seriously, never came across that term before this post.<p>The idea with binding expressions is the type of expression A and the type of expression B implement &quot;reactions&quot; with one another in order to form a binding expression when they are lexically adjacent.<p>65 mph<p>The type of `mph` defines a post reaction method with the type of `65` as an argument that results in type Rate. As I understand it this is concatenative, right?<p>Another example:<p>Money payment = 1.5M USD;<p>There are tons of these.<p>Concatenative programming in general feels like it should have a more prominent place in mainstream languages. Just my take.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;manifold-systems&#x2F;manifold&#x2F;tree&#x2F;master&#x2F;manifold-deps-parent&#x2F;manifold-ext#unit-expressions" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;manifold-systems&#x2F;manifold&#x2F;tree&#x2F;master&#x2F;man...</a>
评论 #32221725 未加载
评论 #32220735 未加载
dharmatechalmost 3 years ago
You can read HN in the Factor listener:<p><a href="https:&#x2F;&#x2F;bluishcoder.co.nz&#x2F;2020&#x2F;04&#x2F;18&#x2F;fun-factor-libraries.html" rel="nofollow">https:&#x2F;&#x2F;bluishcoder.co.nz&#x2F;2020&#x2F;04&#x2F;18&#x2F;fun-factor-libraries.ht...</a>
dharmatechalmost 3 years ago
Chris Double&#x27;s posts on Factor:<p><a href="https:&#x2F;&#x2F;bluishcoder.co.nz&#x2F;tags&#x2F;factor&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;bluishcoder.co.nz&#x2F;tags&#x2F;factor&#x2F;index.html</a>
dangalmost 3 years ago
Related (others?):<p><i>Factor: A Practical Stack Languge</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22053857" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22053857</a> - Jan 2020 (21 comments)<p><i>Factor: An impressive stack-based language environment</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17726634" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17726634</a> - Aug 2018 (34 comments)<p><i>A Panoramic Tour of Factor (2015)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11377847" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11377847</a> - March 2016 (6 comments)<p><i>Factor – A Practical Stack Language</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10141410" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10141410</a> - Aug 2015 (7 comments)<p><i>Factor – A practical stack language</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9008472" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9008472</a> - Feb 2015 (41 comments)<p><i>A panoramic tour of Factor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8750720" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8750720</a> - Dec 2014 (10 comments)<p><i>Factor 0.97 now available</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8548832" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8548832</a> - Nov 2014 (18 comments)<p><i>Web scraping with Factor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7628055" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7628055</a> - April 2014 (24 comments)<p><i>Factor&#x27;s Visual REPL</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1673792" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1673792</a> - Sept 2010 (8 comments)<p><i>Factor programming language (modern Forth)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1623697" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1623697</a> - Aug 2010 (19 comments)<p><i>Factor: Comparing Factor&#x27;s performance against V8, LuaJIT and SBCL</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1388540" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1388540</a> - May 2010 (2 comments)<p><i>Replacing GNU assembler with Factor code</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1076658" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1076658</a> - Jan 2010 (5 comments)<p><i>Improved write barriers in Factor&#x27;s garbage collector</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=884704" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=884704</a> - Oct 2009 (2 comments)<p><i>A survey of domain-specific languages in Factor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=854757" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=854757</a> - Oct 2009 (1 comment)<p><i>Performance in Factor, Java, and Clojure</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=797378" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=797378</a> - Sept 2009 (16 comments)<p><i>Factor programming language</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=782531" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=782531</a> - Aug 2009 (5 comments)<p><i>Joy in Factor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=772603" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=772603</a> - Aug 2009 (13 comments)<p><i>Factor compiler improvements</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=738124" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=738124</a> - Aug 2009 (1 comment)<p><i>Factor&#x27;s implementation of polymorphic inline caching</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=629357" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=629357</a> - May 2009 (9 comments)<p><i>Factor VM ported to C++</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=600668" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=600668</a> - May 2009 (10 comments)<p><i>Proof-of-concept Smalltalk implemented using Factor as a host VM</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=541836" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=541836</a> - April 2009 (3 comments)<p><i>Factor: A practical stack language</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=279356" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=279356</a> - Aug 2008 (1 comment)<p><i>Factor 0.88 released</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1664" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1664</a> - March 2007 (2 comments)
评论 #32217492 未加载
评论 #32217421 未加载
Avshalomalmost 3 years ago
I used to play around with Factor in 05-10ish. Had all of a semester of C and a few physics labs worth of Matlab under my belt so I never actually managed anything interesting in it but god damned if it hasn&#x27;t ruined me for every other language.
dmixalmost 3 years ago
Those examples look really weird and cool.<p>This web app is using XML for it&#x27;s views: <a href="https:&#x2F;&#x2F;github.com&#x2F;factor&#x2F;factor&#x2F;blob&#x2F;master&#x2F;extra&#x2F;webapps&#x2F;wiki&#x2F;wiki-common.xml" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;factor&#x2F;factor&#x2F;blob&#x2F;master&#x2F;extra&#x2F;webapps&#x2F;w...</a>
hansvmalmost 3 years ago
Concatenate languages are fun, but damn if that isn&#x27;t an annoying UI. It&#x27;s gated with some kind of captcha, and it made me go through 40+ rounds, with every few selected images resizing and shifting the captcha.
评论 #32220043 未加载
danbmil99almost 3 years ago
Another recovering FORTH addict here
pyrolisticalalmost 3 years ago
Made me realize webassembly is almost a concatenative language
评论 #32219257 未加载
juunppalmost 3 years ago
Damn, that indeed looks interesting. Could someone give here a Factor vs Forth tl;dr? Forth appears to be tailored for embedded systems, but the velociraptor is growing quick on me.
评论 #32218977 未加载