Lisp 1 - 概览/安装配置(sbcl)

在这里插入图片描述



关于 Lisp

Lisp,全名叫 LISt Processor,表处理语言

历史:Lisp 由约翰·麦卡锡 在1958年发明,在麻省理工学院(MIT)。是Fortran语言之后第二古老的高级编程语言。

特点:能有效地处理的符号信息,特别适合用于人工智能方案。



相关教程/书籍/资源


搭建编译环境

lisp 编译有很多方式实现,比如 sbcl


sbcl

sbcl : Steel Bank Common Lisp

Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler.
It is open source / free software, with a permissive license.
In addition to the compiler and runtime system for ANSI Common Lisp, it provides an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions.
SBCL runs on Linux, various BSDs, macOS, Solaris, and Windows. See the download page for supported platforms, and getting started guide for additional help.


安装 sbcl
$ brew install sbcl

$ sbcl --version
SBCL 2.1.9

安装后地址位于 /usr/local/Cellar/sbcl/


交互模式运行 Lisp

$ sbcl
This is SBCL 2.1.9, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
# 从这里开始输入你的内容, * 为自带的行标记;
* (+ 1 2 3 4 5)
15
* (quit) 

其它


2022-05-17(二)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
以下是 Cisco 配置 LISP 的实验步骤: 1. 配置 LISP 全局参数。 ``` R1(config)# feature lisp R1(config)# lisp site-identifier 10.0.0.1 R1(config)# lisp database-mapping memory ``` 2. 配置 LISP 接口参数。 ``` R1(config)# interface <interface-type><interface-number> R1(config-if)# ip address <ip-address> <netmask> R1(config-if)# lisp mobility first-hop-interface <interface-type><interface-number> R1(config-if)# lisp mobility arp <ip-address> <mac-address> ``` 3. 配置 LISP 模式参数。 ``` R1(config)# router lisp R1(config-router)# database-mapping <eid-prefix> <map-server> [vni <vni>] ``` 4. 配置 LISP Map-Server 参数。 ``` R1(config)# lisp map-server R1(config-lisp-ms)# site-identifier 10.0.0.1 R1(config-lisp-ms)# map-cache map-request source <interface-type><interface-number> ``` 5. 配置 LISP Map-Resolver 参数。 ``` R1(config)# lisp map-resolver R1(config-lisp-mr)# map-cache map-request source <interface-type><interface-number> ``` 6. 配置 LISP 移动性参数(可选)。 ``` R1(config)# lisp mobility R1(config-lisp-mobility)# database-mapping <eid-prefix> <map-server> [vni <vni>] R1(config-lisp-mobility)# proxy-etr R1(config-lisp-mobility)# proxy-itr R1(config-lisp-mobility)# rloc-probing R1(config-lisp-mobility)# rloc-probing-interval 60 ``` 注意:以上命令中的 <interface-type><interface-number> 是您要配置的接口的类型和编号,<ip-address> 和 <netmask> 是接口的 IP 地址和子网掩码,<eid-prefix> 是 Endpoint ID 的前缀,<map-server> 是 Map-Server 的 IP 地址,<vni> 是 VNI 的编号,<mac-address> 是 ARP 表项的 MAC 地址。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

伊织Scope

请我喝杯伯爵奶茶~!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值