reddit上看到一个不错的ruby vs lisp的帖子

最精彩的在这里引用一下:

Python folks would say that you could do something very much like the Ruby example in python, by replacing symbols with strings. A Rubyist would say how much less elegant that is. A C programmer would point out that you could do exactly the same thing in C by encoding prolog in a string … And the Python and Ruby programmers would point out how much easier their job is since they can rely on their language’s parser and lexer (instead of having to write a new one for the DSL). There’s a similar thing with Lisp vs Python and Ruby.

Ah, indeed. Lisp is short for “list processor” and ultimately that is all programming is when you abstract far enough. It’s a beautiful thought, really. The difficulty is in how best to organise the things that your lists are made up of, and how best to process them in a Von Neumann architecture… I now want to drink red wine or whiskey and read SICP…

https://www.reddit.com/r/ruby/comments/58xevn/ruby_is_lisp/

吹爆了吹爆了。

有这時間看 Reddit 不如把一仟多頁的的 CLtL2 看一遍(这位还在看 SICP 说明都还在门口转悠)。或者再学门语言,比如我最近看完了 The Swift Programming Language(看完 Common Lisp 标准以后发現 Swift 还挺容易),順便覚得 Ada 还是不錯的,可以替代 C++。

请问swift的编译器是swift写的吗?

小大半是 C++,毕竟编译器后端是 LLVM。早些时候开源了。

说实话我不是特别喜欢它,只是因为 macOS 的主推l系统编程语言是这个所以了解一下。

1 个赞

看不了看不了,只是要用ruby所以看了一点相关的东西,SICP对我来说都是有生之年了。CLtL2名字记下了嗯。

Ada有什么地方在用吗?

航天,交通控制,嵌入式,硬件驱动,商业系统。和 C++ 以及 Rust 的定位相似。

另外 Emacs 对 Ada 有极强的开箱支持,只要安装编译器就可以获得智能补全,跳转,文档支持。

1 个赞

SICP又不是学语言的,而且不做最后两章的题的话,可以看得挺快。。。

据说即使是在雷达 导弹还有航电系统里 Ada也越来越少了。美国国防部控制着Ada,不允许厂家有自己的特性,因此厂商没法通过添加新特性进行商业竞争,同质化的结果就是低利润,最后没人做 没人用。

  1. Ada 标准不是 DoD 控制的。Sweden, Germany, Canada 的国防項目都用 Ada,原则上想要什麼就加什麼,然而要么是損失几亿美元起步要么出人命,隨便加特性出了事故谁頂包?真殺程序员祭天啊?

  2. Government Contract 以及工業上的合约都是几十年几十年做的,只要 Contract 沒做完公司就倒不了。

我读书少 你别骗我。我见过的政府和企业的合约从来没见过几十年的,发展一款战斗机也是分期签合同,订单完了就完了,想要新单子那得另谈,就连航天飞机这种战略级项目一取消,这帮火箭专家都得换工作了。波音这类军火商也开始转向Java C++了 你可以看看他们的招聘网站,web职位不算。因为招Ada的人太难了,重新培养又太慢,因为工作都是跟着项目走,项目没那么长,工作也就没那么长,那些时间还得从头培养一个Ada程序员,从business上看太不划算了。没有一个庞大的程序员基数,很难保证这门语言的持续健康发展。但是我也喜欢Ada,和lisp一样,它的思想影响了很多语言。

1 个赞

得去了美国 还得进政府企业 算了 还是看看龙芯的指令集比较靠谱

Symbolics 的 Contract 簽了至少 20 多年,公司倒了以后合约分到 Clozure.Inc, Franz.Inc 这些公司。今年刚好到期。 另外還有 Lucid Common Lisp,Lucid (就是做 XEmacs 的那個)倒了以后,LW 負責 Lucid Common Lisp 的维护,但不再卖这个产品。

Contract 不是用了产品就要一直给我免費修,而是保证有问題一定可以找到人來修。

;;; -*- Mode: Lisp; Base: 8; Package: System-Internals -*-
;;;>
;;;> *****************************************************************************************
;;;> ** (c) Copyright 1998-1982 Symbolics, Inc.  All rights reserved.
;;;> ** Portions of font library Copyright (c) 1984 Bitstream, Inc.  All Rights Reserved.
;;;>
;;;>    The software, data, and information contained herein are proprietary to,
;;;> and comprise valuable trade secrets of, Symbolics, Inc., which intends 
;;;> to keep such software, data, and information confidential and to preserve them
;;;> as trade secrets.  They are given in confidence by Symbolics pursuant 
;;;> to a written license agreement, and may be used, copied, transmitted, and stored
;;;> only in accordance with the terms of such license.
;;;> 
;;;> Symbolics, Symbolics 3600, Symbolics 3675, Symbolics 3630, Symbolics 3640,
;;;> Symbolics 3645, Symbolics 3650, Symbolics 3653, Symbolics 3620, Symbolics 3610,
;;;> Zetalisp, Open Genera, Virtual Lisp Machine, VLM, Wheels, Dynamic Windows,
;;;> SmartStore, Semanticue, Frame-Up, Firewall, Document Examiner,
;;;> Delivery Document Examiner, "Your Next Step in Computing", Ivory, MacIvory,
;;;> MacIvory model 1, MacIvory model 2, MacIvory model 3, XL400, XL1200, XL1201,
;;;> Symbolics UX400S, Symbolics UX1200S, NXP1000, Symbolics C, Symbolics Pascal,
;;;> Symbolics Prolog, Symbolics Fortran, CLOE, CLOE Application Generator,
;;;> CLOE Developer, CLOE Runtime, Common Lisp Developer, Symbolics Concordia,
;;;> Joshua, Statice, and Minima are trademarks of Symbolics, Inc.
;;;> 
;;;> Symbolics 3670, Symbolics Common Lisp, Symbolics-Lisp, and Genera are registered
;;;> trademarks of Symbolics, Inc.
;;;>
;;;> GOVERNMENT PURPOSE RIGHTS LEGEND
;;;> 
;;;>      Contract No.: various
;;;>      Contractor Name: Symbolics, Inc.
;;;>      Contractor Address: c/o Ropes & Gray
;;;> 			 One International Place
;;;> 			 Boston, Massachusetts 02110-2624
;;;>      Expiration Date: 2/27/2018
;;;>      
;;;> The Government's rights to use, modify, reproduce, release, perform, display or
;;;> disclose this software are restricted by paragraph (b)(2) of the "Rights in
;;;> Noncommercial Computer Software and Noncommercial Computer Software Documentation"
;;;> contained in the above identified contracts.  No restrictions apply after the
;;;> expiration date shown above.  Any reproduction of the software or portions thereof
;;;> marked with this legend must also reproduce the markings.  Questions regarding
;;;> the Government's rights may be referred to the AS&T Contracts Office of the
;;;> National Reconnaissance Office, Chantilly, Virginia 20151-1715.
;;;> 
;;;>      Symbolics, Inc.
;;;>      c/o Ropes & Gray
;;;>      One International Place
;;;>      Boston, Massachusetts 02110-2624
;;;>      781-937-7655
;;;>
;;;> *****************************************************************************************
;;;>

你说的是maintenance 这种情况下不做新功能开发,只是改改bug。不需要那么多人,也很少会因为maintenance 就有动力去发展语言。不会因为剩了点醋,就去买二斤螃蟹。我以前公司使用Lockheed Martin 的产品,我们是这产品最大的用户,想让他给做新功能照样不理你。

1 个赞