I've got two toylanguages of my own. I've done some of what you described. Another thing I did was try to print out the Fibonacci Sequence. One more thing you can do is write a program that checks to see if a number is prime.
Do you have a link to your language? I'd like to check it out!
Rather than more things to do in that toy language, I'd think hard about implementing a language that's somewhat more complete and useful. In particular, spend some time thinking about the things you dislike about other languages, and see if you can't improve them.
After you finish with writing a bunch of short applications it might be interesting to write a simple server. A lot of topics come up with servers that would help you identify if your language can address things like UDP/TCP, threading, queues, security, etc.
You could add support for arbitrary precision arithmetic by either writing it as a module for your language in your language or as a first class language construct.
How about canonical data structures and algorithms? Or semi-canonical? For intance, I always wanted to implement associative array based on radix trie. That looks fun.
发布评论
评论(12)
尝试 Project Euler 中的内容 - 这些谜题对于测试新语言总是有好处的。
Try things from Project Euler - these puzzles are always good for testing out new languages.
在语言本身中为您的语言实现一个编译器(针对您知道的任何语言)。
Implement a compiler (to any language you know) for your language, in the language itself.
尝试使用数组和指针来实现各种类型的排序和搜索。
排序算法
搜索算法
try implementing various types sorts and searches, using arrays and then pointers.
Sorting Algorithm
Search Algorithm
也许是递归的东西?
我有两个玩具 我自己的语言。我已经做了一些你所描述的事情。我做的另一件事是尝试打印斐波那契数列。您还可以做的另一件事是编写一个程序来检查数字是否为素数。
你有你的语言的链接吗?我想检查一下!
Something recursive perhaps?
I've got two toy languages of my own. I've done some of what you described. Another thing I did was try to print out the Fibonacci Sequence. One more thing you can do is write a program that checks to see if a number is prime.
Do you have a link to your language? I'd like to check it out!
我会认真考虑实现一种更完整、更有用的语言,而不是用这种玩具语言做更多的事情。特别是,花一些时间思考一下其他语言中你不喜欢的地方,看看是否无法改进它们。
Rather than more things to do in that toy language, I'd think hard about implementing a language that's somewhat more complete and useful. In particular, spend some time thinking about the things you dislike about other languages, and see if you can't improve them.
您可以考虑实施“Shootout” 的测试。
You could consider implementing the tests for the "Shootout".
这可能是您在 http://codekata 中找到的项目的一个很好的应用。 pragprog.com/2007/01/code_kata_backg.html#more
This could be a good application of the items you find at http://codekata.pragprog.com/2007/01/code_kata_backg.html#more
编写完一堆简短的应用程序后,编写一个简单的服务器可能会很有趣。许多主题都提出了服务器,可以帮助您确定您的语言是否可以解决 UDP/TCP、线程、队列、安全性等问题。
After you finish with writing a bunch of short applications it might be interesting to write a simple server. A lot of topics come up with servers that would help you identify if your language can address things like UDP/TCP, threading, queues, security, etc.
查看 RubyQuiz 网站。你可以做很多愚蠢的小事情来测试你的语言。
Check out the RubyQuiz site. Plenty of silly little things you could do to test out your language.
您可以通过将其编写为您语言的模块来添加对任意精度算术的支持用您的语言或作为一流的语言结构。
You could add support for arbitrary precision arithmetic by either writing it as a module for your language in your language or as a first class language construct.
尝试实施一些实际的东西。例如基于网络的邮件客户端。只是做抽象任务而已。
Try to implement something real. For example web based mail client. Do just abstract task is boaring.
规范的数据结构和算法怎么样?还是半规范的?例如,我一直想实现基于基数特里树的关联数组。看起来很有趣。
How about canonical data structures and algorithms? Or semi-canonical? For intance, I always wanted to implement associative array based on radix trie. That looks fun.