马尔科姆的新书 [英] Malcolm's new book

查看:59
本文介绍了马尔科姆的新书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的新书的网页现已启动并运行。


这本书,Basic Algorithms,描述了许多基本算法

实际使用编程,偏向于图形。它包括从基础开始的
数学例程,包括浮点数b $ b算术,压缩技术,包括GIF和JPEG文件格式,

哈希,红黑树,3D和3D图形,色彩空间,机器

学习神经网络,隐马尔可夫模型和模糊逻辑,

聚类,快速内存分配器,以及表达式解析。


(点击链接)


-

免费游戏和编程好东西。 /> http://www.personal.leeds.ac.uk/~ bgy1mm

The webpages for my new book are now up and running.

The book, Basic Algorithms, describes many of the fundamental algorithms
used in practical programming, with a bias towards graphics. It includes
mathematical routines from the basics up, including floating point
arithmetic, compression techniques, including the GIF and JPEG file formats,
hashing, red black trees, 3D and 3D graphics, colour spaces, machine
learning with neural networks, hidden Markov models, and fuzzy logic,
clustering, fast memory allocators, and expression parsing.

(Follow the links)

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

推荐答案

Malcolm McLean在07/24/07 16:18写道:
Malcolm McLean wrote On 07/24/07 16:18,:

我的新书的网页现已启动并运行。


基本算法一书描述了许多基本算法

用于实际编程,带偏置牵引ards图形。它包括从基础开始的
数学例程,包括浮点数b $ b算术,压缩技术,包括GIF和JPEG文件格式,

哈希,红黑树,3D和3D图形,色彩空间,机器

学习神经网络,隐马尔可夫模型和模糊逻辑,

聚类,快速内存分配器,以及表达式解析。
The webpages for my new book are now up and running.

The book, Basic Algorithms, describes many of the fundamental algorithms
used in practical programming, with a bias towards graphics. It includes
mathematical routines from the basics up, including floating point
arithmetic, compression techniques, including the GIF and JPEG file formats,
hashing, red black trees, 3D and 3D graphics, colour spaces, machine
learning with neural networks, hidden Markov models, and fuzzy logic,
clustering, fast memory allocators, and expression parsing.



我只读取两个sqrt()替换。第一个

是坏的,但至少文本说的很多。第二,

据称是优质版本至少以三种方式打破:首先,它不会编译。其次,当明显的

错误得到修复时,它仍然不会在C99下编译,并且在C90下不会是
链接。当* * bug被修复时,第三个
错误将变得明显。马虎的做工。


-
Er ***** ****@sun.com


Eric Sosman< Er ********* @ sun.comwrites:
Eric Sosman <Er*********@sun.comwrites:

Malcolm McLean在07/24/07 16:18写道:
Malcolm McLean wrote On 07/24/07 16:18,:

>我新书的网页现在已经开始运行了。

这本书,Basic Algorithms,描述了实际编程中使用的许多基本算法,偏向于图形。它包括基础知识的数学例程,包括浮点运算,压缩技术,包括GIF和JPEG文件格式,散列,红黑树,3D和3D图形,色彩空间,机器学习与神经网络,隐马尔可夫模型,模糊逻辑,聚类,快速内存分配器和表达式解析。
>The webpages for my new book are now up and running.

The book, Basic Algorithms, describes many of the fundamental
algorithms used in practical programming, with a bias towards
graphics. It includes mathematical routines from the basics up,
including floating point arithmetic, compression techniques,
including the GIF and JPEG file formats, hashing, red black trees,
3D and 3D graphics, colour spaces, machine learning with neural
networks, hidden Markov models, and fuzzy logic, clustering, fast
memory allocators, and expression parsing.



我只读取两个sqrt()替换。第一个

是坏的,但至少文本说的很多。第二,

据称是优质版本至少以三种方式打破:首先,它不会编译。其次,当明显的

错误得到修复时,它仍然不会在C99下编译,并且在C90下不会是
链接。当* * bug被修复时,第三个
错误将变得明显。邋work做工。


I read only the two sqrt() replacements. The first
is bad, but at least the text says as much. The second,
supposedly superior version is broken in at least three
ways: First, it won''t compile. Second, when the obvious
bug is fixed it still won''t compile under C99 and won''t
link under C90. And when *that* bug is fixed, a third
bug will become apparent. Sloppy workmanship.



更多评论。网页上的布局使代码

几乎无法读取。并尝试squareroot(1.0e6)。


-

Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *< http:// users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

A couple more comments. The layout on the web page makes the code
nearly unreadable. And try squareroot(1.0e6).

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


Keith Thompson写道,On 24/07/07 22:27:
Keith Thompson wrote, On 24/07/07 22:27:

Eric Sosman< Er ********* @ sun.comwrites:
Eric Sosman <Er*********@sun.comwrites:

> Malcolm McLean在07/24/07 16:18写道:
>Malcolm McLean wrote On 07/24/07 16:18,:

>>我的网页新书现已开始运行。

这本书,Basic Algorithms,描述了许多基本的
>>The webpages for my new book are now up and running.

The book, Basic Algorithms, describes many of the fundamental



< snip>

<snip>


还有几条评论。网页上的布局使代码

几乎无法读取。并尝试squareroot(1.0e6)。
A couple more comments. The layout on the web page makes the code
nearly unreadable. And try squareroot(1.0e6).



本书还通过讨论关于malloc能够返回零的
来混淆整数和指针的概念。事实上,malloc不能返回
零,因为它是一个数字,它可以返回的是一个空指针。


它继续假设int是至少32位。


使用非便携方法查找二进制文件的大小

暗示该方法唯一的问题是长度可能是

太长而无法表示为long,而实际上它是不可移植的

其他更基本的原因(参见comp.lang.c常见问题解答) 。


使用宏的小写名称。我承认标准确实没有要求大写,但它是一个众所周知的惯例。


似乎建议不要将库函数保存在单独的源代码中

文件和标题。引用:

|我们准备好了。但是,如果您打算通过代码,通常需要

|关于,包含stdsup.h不是一个好主意。剪切并粘贴

|将函数转换为源代码并将其声明为静态。


它至少意味着所有内容都使用了

IEEE格式,当它说:

| ...在小型嵌入式系统或较旧的计算机中,它们通常是

|用软件完成。无论选择硬件还是软件操作,

|记忆格式是一样的。

哦,不要忘了英国人应该参考英国

标准或ISO标准而不是美国人标准。

-

Flash Gordon

The book also confuses the concepts of integers and pointer by talking
about malloc being able to return zero. In fact, malloc cannot return
zero because that is a number, what it can return is a null pointer.

It goes on to assume that int is at least 32 bits.

Uses a non-portable method of finding out the size of a binary file
implying the only problem with the method is whether the length might be
too long to represent as a long, when in fact it is non-portable for
other more basic reasons (see the comp.lang.c FAQ).

Uses lower case names for macros. I will admit that the standard does
not mandate upper case, but it is a well known convention.

Seems to recommend against keeping library functions in separate source
files and headers. To quote:
| And we are ready to go. However often if you intend code to be passed
| about, it is not a good idea to include stdsup.h. Cut and paste the
| function into your source instead and declare it static.

It at the very least implies that everything does and always has used
IEEE format when it says:
| ... In small embedded systems, or older computers, they were often
| done in software. Whether hardware or software operations are chosen,
| the memory format is the same.
Oh, and don''t forget that a UK person should reference either the UK
standard or the ISO standard in preference to the American standard.
--
Flash Gordon


这篇关于马尔科姆的新书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆