申请低保需要什么条件| 2006年属狗的是什么命| 男人怕冷是什么原因| 阴囊两侧瘙痒是什么原因| 尿液发臭是什么原因| 吃虾不能吃什么| 双重人格是什么意思| 肝是起什么作用的| 勤对什么| 冠心病是什么病| 什么叫前列腺钙化| 心衰吃什么恢复的快| 小猪佩奇为什么这么火| 一什么地| 正方形体积公式是什么| 吃葱有什么好处和坏处| 晕车为什么读第四声| 猕猴桃什么时候吃最好| 什么是av| 囊性回声是什么意思| 安徽属于什么地区| 五指毛桃不能和什么一起吃| 补肾吃什么食物| 六六大顺是什么意思| 脑委缩吃什么药能空制| 小腿痛是什么原因| 排卵试纸阴性是什么意思| 薄熙来犯了什么罪| 脉浮是什么意思| 猫来家门口有什么预兆| 心电图pr是什么意思| 鱼胶是什么东西| 117是什么意思| 一个目一个敢念什么| 白发缺少什么维生素| 客厅钟表挂在什么地方合适| 怀孕前三个月需要注意什么| 女菩萨是什么意思| 宗室是什么意思| 什么面料不容易皱| 梦见老鼠是什么意思| 兰台是什么意思| 手脚抽筋吃什么药| 血沉偏高说明什么| tvb为什么演员都走了| 什么的雪莲| 蚁后长什么样| 9月13日是什么纪念日| 为什么头顶会痛| 贫血吃什么补血好| 腹部彩超可以检查什么| 什么病不能吃绿豆| 嗓子疼喝什么| 生理年龄是什么意思| 牛奶和什么不能一起吃| 命里有时终须有命里无时莫强求什么意思| 头晕晕的是什么原因| 吃什么可以提高免疫力和抵抗力| 早上起来嘴巴发苦是什么原因| 车加昆念什么| 鸡吃什么| 精卫填海是什么意思| 湿疹什么东西不能吃| 收官是什么意思| 铊是什么东西| 清肺火肺热吃什么药最有效| 儿童感冒挂什么科| 明天我要离开是什么歌| 吃什么水果治便秘| 脑梗吃什么药好| 鼻子旁边有痣代表什么| 治疗梅毒用什么药最好| 皮肤软组织感染是什么意思| tf口红什么牌子| 秋葵吃了有什么好处| 肾结石什么引起的| 浅黄色是什么颜色| 水杯什么品牌好| 法令纹深代表什么面相| 梦见双头蛇是什么征兆| 成人发烧吃什么退烧药| 吃什么能提高性功能| 什么东西在倒立之后会增加一半| 一直发烧不退是什么原因| degaia是什么牌子| 今天股市为什么大跌| 小孩脸肿是什么原因引起的| 黄山四绝是什么| 黄体期出血是什么原因| 甜菊糖苷是什么| 男人小腹疼痛是什么原因| 益生菌的食物是什么| ir是什么意思| 三点水的字有什么| 喝酒后呕吐是什么原因| 叶酸片什么时候吃合适| 出的汗是凉的什么原因| 张五行属什么| 肝异常一般是什么情况| 腺肌症吃什么药效果好| 斛什么意思| 什么是隐私| 文殊菩萨是管什么的| 因果报应是什么意思| 梦见煤是什么意思| 盆腔积液什么症状| 江西什么最出名| 小燕子吃什么食物| 一月28号是什么星座| 降低压吃什么药| 什么叫眩晕| 眼睛肿了用什么药| 梦见蚂蚁是什么预兆| 金牛座后面是什么星座| 卤什么东西好吃| 猫咪感冒吃什么药| bj是什么| icd医学上是什么意思| 未见明显血流信号是什么意思| 腿毛长的男人代表什么| 脱头发严重是什么原因引起的| 嘴唇有点发黑是什么原因引起的| 抓阄什么意思| 尿细菌高是什么原因| 颈椎疼吃什么药| 聚宝盆什么意思| 静是什么意思| 七十岁老人装什么牙合适| 五月二十九是什么日子| 新生儿嘴唇发紫是什么原因| 三是什么意思| 血压高有什么表现| 蒸鱼豉油是什么| 为什么会鬼压床| 蛇盘疮吃什么药| 哺乳期乳腺炎吃什么药| 双鱼座女和什么星座最配| 慢性宫颈炎吃什么药| 苋菜与什么食物相克| 沙弗莱是什么宝石| 散仙是什么意思| 华丽转身是什么意思| 阴囊潮湿是什么原因| 骨质疏松吃什么药| 脚底起水泡是什么原因| 症候群什么意思| 对方忙线中什么意思| 香槟玫瑰花语是什么意思| loewe是什么牌子| 心肌缺血吃什么中成药| 梦见自行车是什么意思| 疹子长什么样| 什么运动瘦肚子| 憋屈是什么意思| 火疖子挂什么科| 试纸一深一浅说明什么| 射手座男生喜欢什么样的女生| 上皮细胞一个加号什么意思| pin是什么| 刘秀和刘邦是什么关系| 什么叫潮汐车道| 肚子有虫吃什么药| 腰扭伤了挂什么科| 腿抽筋是什么原因引起的| 县教育局局长是什么级别| 吃什么避孕药可以推迟月经| 捉摸不透是什么意思| 工会主席是什么级别| 高血压吃什么中药| 脊髓空洞症是什么病| 时间观念是什么意思| 贫血的人来姨妈会有什么症状| 湖南为什么叫湖南| 1月份是什么星座的人| 晚上睡觉流口水是什么病| 牛肉可以炒什么菜| 水银是什么| 养膘是什么意思| 肛塞是什么东西| 卡其色是什么颜色| 沙特是什么教派| 肺部散在小结节是什么意思| 安属于五行属什么| 眼色是什么意思| 6代表什么意思| 北京户口有什么好处| 一般手脚慢进什么工厂| 五月生日是什么星座| gravy是什么意思| 男生说gg是什么意思| 夜盲症是什么| 胡饼是什么| 胆汁酸高是什么意思| 什么是周边| 洛五行属性是什么| 上元节是什么节日| 阿胶是什么做的| 颔是什么部位| 紫癜是什么病严重吗| 试管婴儿长方案是什么| 肛瘘不治疗有什么后果| 襁褓是什么意思| 一个鸟一个木念什么| 盛情难却是什么意思| 出现幻觉幻听是什么心理疾病| 孕期什么时候补钙| 甲钴胺片主要治什么病| 什么饮料可以解酒| c2m模式是什么意思| 脚背上长痣代表什么| 为什么午睡起来会头疼| 尿很臭是什么原因女性| bc是什么牌子| 惊世骇俗的意思是什么| 仓鼠不能吃什么| 定海神针是什么意思| 重庆以前叫什么| 养流浪猫需要注意什么| 眼花缭乱的意思是什么| 坐月子可以吃什么蔬菜| 二氧化碳低是什么原因| 三个土叫什么| 经常眩晕是什么原因| 吃什么去湿气| 1218是什么星座| 流产是什么意思| 早退是什么意思| 慢性萎缩性胃炎是什么意思| 小肚右边疼是什么原因| 耦合是什么意思| cc什么意思| 类风湿不能吃什么食物| 美国为什么不敢打朝鲜| 滑膜炎吃什么药能治好| 什么叫体位性低血压| 迪桑特属于什么档次| 公分的单位是什么| 诺如病毒吃什么药好得快一点| 哺乳期吃什么水果好| 什么食粮| 什么是党的性质和宗旨的体现| 脑白质病变是什么病| 聚乙烯醇是什么材料| ercp是什么意思| 为什么体重一直下降| 日本有什么特产| 女生喜欢男生什么行为| 什么是鸡胸| 雯是什么意思| 为什么南极比北极冷| 双鱼座的幸运色是什么| 昀是什么意思| 外阴长什么样| 陈赫为什么离婚| 血常规挂什么科| 拉肚子吃什么饭| 栗棕色是什么颜色| 血压高吃什么药比较好| 做梦梦见别人怀孕是什么意思| 什么酒最贵| 肠胃不好吃什么水果比较好| 毛主席什么时候死的| 14岁属什么| 脖子上有肿块挂什么科| 百度

浙江省爱国主义教育基地检查组对花鸟灯塔进行考察

百度 (《百年富厚》)想那大漠孤烟之外,刀剑与战马是左宗棠的威风和胆识,而至今犹在的那些杨柳、那些绿洲,何尝又不是这个湖湘之子的柔情与大爱?(《胆识才气》)黄兴因无为而成就至大的我,因笃实而显示了至大的智慧。

Programming languages are used for controlling the behavior of a machine (often a computer). Like natural languages, programming languages follow rules for syntax and semantics.

There are thousands of programming languages[1] and new ones are created every year. Few languages ever become sufficiently popular that they are used by more than a few people, but professional programmers may use dozens of languages in a career.

Most programming languages are not standardized by an international (or national) standard, even widely used ones, such as Perl or Standard ML (despite the name). Notable standardized programming languages include ALGOL, C, C++, JavaScript (under the name ECMAScript), Smalltalk, Prolog, Common Lisp, Scheme (IEEE standard), ISLISP, Ada, Fortran, COBOL, SQL, and XQuery.

General comparison

edit

The following table compares general and technical information for a selection of commonly used programming languages. See the individual languages' articles for further information.

Type systems

edit

Failsafe I/O and system calls

edit

Most programming languages will print an error message or throw an exception if an input/output operation or other system call (e.g., chmod, kill) fails, unless the programmer has explicitly arranged for different handling of these events. Thus, these languages fail safely in this regard.

Some (mostly older) languages require that programmers explicitly add checks for these kinds of errors. Psychologically, different cognitive biases (e.g., optimism bias) may affect novices and experts alike and lead them to skip these checks. This can lead to erroneous behavior.

Failsafe I/O is a feature of 1C:Enterprise, Ada (exceptions), ALGOL (exceptions or return value depending on function), Ballerina, C#, Common Lisp ("conditions and restarts" system), Curry, D (throwing on failure),[48] Erlang, Fortran, Go (unless result explicitly ignored), Gosu, Harbour, Haskell, ISLISP, Java, Julia, Kotlin, LabVIEW, Mathematica, Objective-C (exceptions), OCaml (exceptions), OpenLisp, PHP, Python, Raku, Rebol, Rexx (with optional signal on... trap handling), Ring, Ruby, Rust (unless result explicitly ignored), Scala,[49] Smalltalk, Standard ML [citation needed], Swift ≥ 2.0 (exceptions), Tcl, Visual Basic, Visual Basic .NET, Visual Prolog, Wolfram Language, Xojo, XPath/XQuery (exceptions), and Zeek.

No Failsafe I/O: AutoHotkey (global ErrorLevel must be explicitly checked), C,[50] COBOL, Eiffel (it actually depends on the library and it is not defined by the language), GLBasic (will generally cause program to crash), RPG, Lua (some functions do not warn or throw exceptions), and Perl.[51]

Some I/O checking is built in C++ (STL iostreams throw on failure but C APIs like stdio or POSIX do not)[50] and Object Pascal, in Bash[52] it is optional.

Expressiveness

edit
Language Statements ratio[53] Lines ratio[54]
C 1 1
C++ 2.5 1
Fortran 2 0.8
Java 2.5 1.5
Perl 6 6
Smalltalk 6 6.25
Python 6 6.5

The literature on programming languages contains an abundance of informal claims about their relative expressive power, but there is no framework for formalizing such statements nor for deriving interesting consequences.[55] This table provides two measures of expressiveness from two different sources. An additional measure of expressiveness, in GZip bytes, can be found on the Computer Language Benchmarks Game.[56]

Benchmarks

edit
 
Barplot of log-time to produce a 16002 Mandelbrot[57] as reported in The Benchmarks Game[58]

Benchmarks are designed to mimic a particular type of workload on a component or system. The computer programs used for compiling some of the benchmark data in this section may not have been fully optimized, and the relevance of the data is disputed. The most accurate benchmarks are those that are customized to your particular situation. Other people's benchmark data may have some value to others, but proper interpretation brings many challenges. The Computer Language Benchmarks Game site warns against over-generalizing from benchmark data, but contains a large number of micro-benchmarks of reader-contributed code snippets, with an interface that generates various charts and tables comparing specific programming languages and types of tests.[59]

Timeline of specific language comparisons

edit
  • 1974 – Comparative Notes on Algol 68 and PL/I[60] – S. H. Valentine – November 1974
  • 1976 – Evaluation of ALGOL 68, JOVIAL J3B, Pascal, Simula 67, and TACPOL Versus TINMAN – Requirements for a Common High Order Programming Language.
  • 1977 – A comparison of PASCAL and ALGOL 68[61]Andrew S. Tanenbaum – June 1977.
  • 1993 – Five Little Languages and How They Grew – BLISS, Pascal, ALGOL 68, BCPL & CDennis M. Ritchie – April 1993.
  • 2009 – On Go – oh, go on – How well will Google's Go stand up against Brand X programming language? – David Given – November 2009

See also

edit
To display all pages, subcategories and images click on the "?":

References

edit
  1. ^ As of May 2006 Diarmuid Pigott's Encyclopedia of Computer Languages Archived 2025-08-06 at the Wayback Machine hosted at Murdoch University, Australia lists 8512 computer languages.
  2. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, 3.9 Tagged Types and Type Extensions
  3. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, Section 6: Subprograms
  4. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, Section 12: Generic Units
  5. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, Section 9: Tasks and Synchronization
  6. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3 Annex E: Distributed Systems
  7. ^ "Vak.ru" (PDF). Archived from the original (PDF) on 2025-08-06. Retrieved 2025-08-06.
  8. ^ ISO 1538:1984
  9. ^ "Vak.ru" (PDF). Archived from the original (PDF) on 2025-08-06. Retrieved 2025-08-06.
  10. ^ IEEE 694-1985
  11. ^ Objects - Definition & Usage
  12. ^ "Ballerina Language Specification" (PDF). WSO2. 2025-08-06. Archived from the original (PDF) on 2025-08-06. Retrieved 2025-08-06.
  13. ^ a b c POSIX.2, Shell and Utilities, Command Interpreter (IEEE Std 1003.2-1992.)
  14. ^ JSR 274
  15. ^ bell-labs.com
  16. ^ ANSI C89, ISO/IEC 9899:1990, 1999, 2011, 2018
  17. ^ ISO/IEC 14882:1998, 2003, 2011, 2014, 2017, 2020
  18. ^ Codeproject.com: Functional Programming in C# 3.0 using Lambda Expression
  19. ^ ECMA-334; ISO/IEC 23270:2006
  20. ^ Softvelocity.com
  21. ^ "Crystal". GitHub. 2 November 2021.
  22. ^ "Crystal Generics". crystal-lang.org. 13 April 2024.
  23. ^ "Concurrency - Crystal". crystal-lang.org. Retrieved 2025-08-06.
  24. ^ Basic Eiffel language mechanisms
  25. ^ Closure (computer programming)
  26. ^ ECMA-367; ISO/IEC 25436:2006
  27. ^ The Go Programming Language (FAQ)
  28. ^ "Codewalk: First-Class Functions in Go". Go supports first class functions, higher-order functions, user-defined function types, function literals, closures, and multiple return values. This rich feature set supports a functional programming style in a strongly typed language.
  29. ^ JSR 241
  30. ^ "The Haskell 2010 Language Report". Retrieved 2025-08-06. Most Haskell implementations extend the Haskell 2010 standard.
  31. ^ "Object-Oriented programming in julia". in Julia, Oriented programming is not the primary focus, instead it emphasizes multiple dispatches, a more general concept. Despite this, OOP can still be achieved in Julia through the use of composite types and methods.
  32. ^ "Julia Object Oriented Programming". Julia does only partially support object oriented programming (OOP)
  33. ^ "Julia 1.11 Documentation".
  34. ^ "M8 is out!". 2 July 2014. As a first peek into the future reflective capabilities of Kotlin, you can now access properties as first-class objects in Kotlin
  35. ^ Halcyon (Inworldz) and Open Sims propose compatible implementations with additional functions.
  36. ^ Lua does not have explicit "object" type (more general type of "table" is used for object definition), but does have explicit syntax for object method calling
  37. ^ Version releases are accompanied with a definitive Lua Reference Manual showing full syntax and semantics; a reference implementation, and a test suite. These are used to generate other Lua VM implementations and compilers such as Kahlua and LLVM-Lua.
  38. ^ ISO/IEC 10514-1:1996
  39. ^ ISO 7185
  40. ^ PHP Manual, Chapter 19. Classes and Objects (PHP 5),
  41. ^ PHP Manual, Chapter 17. Functions
  42. ^ "PostScript Language Reference Manual" (PDF). Archived from the original (PDF) on 2025-08-06. Retrieved 2025-08-06.
  43. ^ Is Rust an Object-Oriented Programming Language?
  44. ^ Klabnik, Steve; Nichols, Carol. "Macros". The Rust Programming Language.
  45. ^ R3RS, R4RS, R5RS, R6RS, R7RS Small Edition
  46. ^ R0RS, R1RS, R2RS
  47. ^ SMLNJ.org
  48. ^ "STD.stdio - D Programming Language".
  49. ^ Scala runs on the Java Virtual Machine from which it inherits the runtime exception handling.
  50. ^ a b gcc can warn on unchecked errno. Newer versions of Visual Studio usually throw exceptions on failed I/O when using stdio.
  51. ^ Considerable error checking can be enabled optionally, but by default Perl is not failsafe.
  52. ^ set -e enables termination if any unchecked exit status is nonzero.
  53. ^ Data from McConnell, Steve (30 November 2009). Code Complete. Microsoft Press. p. 100. ISBN 9780735636972. The Statements ratio column "shows typical ratios of source statements in several high-level languages to the equivalent code in C. A higher ratio means that each line of code in the language listed accomplishes more than does each line of code in C.
  54. ^ The ratio of line count tests won by each language to the number won by C when using the Compare to feature at McLoone, Jon (November 14, 2012). "Code Length Measured in 14 Languages". Archived from the original on 2025-08-06. C gcc was used for C, C++ g++ was used for C++, FORTRAN G95 was used for FORTRAN, Java JDK Server was used for Java, and Smalltalk GST was used for Smalltalk.
  55. ^ Felleisen, Matthias. On the Expressive Power of Programming Languages. ESOP '90 3rd European Symposium on Programming. CiteSeerX 10.1.1.51.4656.
  56. ^ "How programs are measured". Computer Language Benchmarks Game. Retrieved 2025-08-06.
  57. ^ Mandelbrot, Benoit B. (1982). The fractal geometry of nature (Revised ed.). San Francisco. ISBN 0-7167-1186-9. OCLC 7876824.{{cite book}}: CS1 maint: location missing publisher (link)
  58. ^ "Mandelbrot". Computer Language Benchmarks Game. Retrieved 2025-08-06.
  59. ^ "The Ultimate Benchmark". The Computer Language Benchmarks Game. Retrieved 2025-08-06.
  60. ^ Valentine, S. H. (November 1974). "Comparative Notes on Algol 68 and PL/I". The Computer Journal. 17 (4): 325–331. doi:10.1093/comjnl/17.4.325.
  61. ^ "Vrije Universiteit Amsterdam" (PDF).

Further reading

edit
怎么知道自己什么血型 特应性皮炎是什么意思 女性睾酮低说明什么 何许人也是什么意思 什么是卵泡期
pth是什么 陈醋和香醋有什么区别 甲功异常有什么症状 鬼针草能治什么病 西施长什么样
缺铁吃什么好 11月什么星座 葡萄什么时候种植 晚上十一点多是什么时辰 鸡肉配什么菜好吃
鱼丸是什么做的 mra检查是什么意思 丙肝是什么病严重吗 尖牙什么时候换 师团长是什么级别
高密度脂蛋白胆固醇低是什么意思hcv8jop0ns1r.cn 封神榜讲的是什么故事hcv7jop5ns1r.cn 咆哮是什么意思hcv8jop8ns5r.cn 鱼水之欢是什么意思hcv8jop3ns0r.cn 牛肉和什么菜炒好吃hcv9jop4ns9r.cn
借刀杀人是什么生肖hkuteam.com 什么是耳石症hcv8jop1ns2r.cn 与狼共舞男装什么档次hcv8jop3ns9r.cn 曹操属什么hcv8jop3ns9r.cn 做背有什么好处及作用hcv7jop7ns3r.cn
轻断食是什么意思hcv7jop5ns0r.cn 泻盐是什么东西hcv9jop5ns7r.cn 黄埔军校现在是什么学校hcv8jop9ns2r.cn 苯磺酸氨氯地平片是什么药hcv9jop5ns9r.cn 失眠去医院挂什么科hcv7jop9ns6r.cn
乙肝核心抗体阳性说明什么hcv8jop5ns1r.cn 什么样的孕妇容易翻盘hcv9jop5ns6r.cn 众什么意思beikeqingting.com 任性妄为是什么意思hcv9jop0ns0r.cn 什么的快乐hcv7jop7ns1r.cn
百度