Catálogo de publicaciones - libros

Compartir en
redes sociales


Practical OCaml

Joshua B. Smith

Resumen/Descripción – provisto por la editorial

No disponible.

Palabras clave – provistas por la editorial

Software Engineering/Programming and Operating Systems

Disponibilidad
Institución detectada Año de publicación Navegá Descargá Solicitá
No detectada 2007 SpringerLink

Información

Tipo de recurso:

libros

ISBN impreso

978-1-59059-620-3

ISBN electrónico

978-1-4302-0244-8

Editor responsable

Springer Nature

País de edición

Reino Unido

Fecha de publicación

Información sobre derechos de publicación

© Apress 2007

Tabla de contenidos

Practical: Web Programming

Web programming is one of the best ways for a language to gain visibility. Ever since the web gained widespread popularity, developing for web targets has been important for a wide variety of programmers.

Palabras clave: Input Type; Native Code; Interprocess Communication; Query String; Common Gateway Interface.

Pp. 273-291

Practical: A Shoutcast Server

Shoutcast is a product from Nullsoft (which is also the creator of the WinAMP MP3 player for Windows) to enable audio broadcasting over a network. Nullsoft’s Shoutcast server enables clients to stream MP3 data from one client to a server, which is the server that clients connect to in order to listen to that data stream. It is, in effect, a multiplexer of audio streams. Shoutcast was one of the first applications of its kind to become popular. Although streaming network audio predates Shoutcast, it was Nullsoft’s product that had the power and flexibility that enabled it to take off.

Palabras clave: Streaming Server; Client Request; Audio Stream; Binary File; Event Loop.

Pp. 293-308

Using Threads

As you are reading this, you are performing multiple tasks simultaneously. You are thinking about the words on the page, moving your eyes, hearing sounds in your environment, interpreting these sounds, and more. This ability to perform concurrent actions makes things like walking, talking, and pretty much everything else a living being does possible. Most computer programs, however, do not have the capability to perform concurrent actions.

Pp. 309-327

Practical: A Concurrent Web Crawler

This chapter introduces a concurrent web crawler written in OCaml, which traverses a web server and finds all the local href links. It then outputs information about which pages link together. A web crawler is different from a web browser in that the web crawler is automated. Both are web (or HTTP) clients and are quite similar, but this automation versus interactivity is the important distinction.

Pp. 329-348

Interfacing with OCaml

No language is an island. There are situations in which a programmer wants to interface code with existing code, or system calls, or a new library that is not written in OCaml. Sometimes this can be accomplished using sockets or some other Remote Procedure Call (RPC) mechanism. Sometimes, though, she will need to interface her OCaml code with foreign functions.

Palabras clave: Allocation Function; Garbage Collector; Head File; Remote Procedure Call; Interface Definition Language.

Pp. 349-358

Practical: Time and Logging Libraries

The OCaml standard library is big, but it still could be more complete. Two areas in which it is lacking include time functions and logging. If you are used to a programming language (such as Java or Python) that has an absolutely huge standard library that includes everything you could ever want in the world, you might be disappointed by OCaml’s standard library.

Palabras clave: Time Function; Standard Library; Default Logger; Garbage Collector; Option Type.

Pp. 359-374

Processing Binary Files

All data is not text. Binary data is used in all kinds of applications. Often, accessing binary data is faster than text data, and it is space-efficient, too. Until now we have not talked about what you need to do differently to process binary data in OCaml.

Palabras clave: Binary Data; Graphic Module; Sample Output; Binary File; Signature File.

Pp. 375-399

OCaml Development Tools

Having a programming language is not the only thing you need to actually do development in that language. You also need tools that make the process of developing and debugging code easier.

Palabras clave: Type Information; Object File; Visual Studio; Source File; Standard Library.

Pp. 401-410

Camlp4

Camlp4, which provides a very interesting and powerful way to extend and change the OCaml language, enables the easy definition of domain-specific languages (DSLs) based on OCaml. The name Camlp4 refers to the fact that it is a preprocessor and pretty printer (four Ps) for OCaml.

Palabras clave: Input File; Configuration File; Source File; Abstract Syntax Tree; Stream Module.

Pp. 411-429

Conclusion

You have now arrived at the last chapter of this book. Although this book does not cover all aspects of OCaml programming, I have tried to present information that can help you become an OCaml programmer if you are not one yet—or a better OCaml programmer if you are.

Palabras clave: Mailing List; Business Consultant; Server Room; Functional Programming Language; Recursive Descent.

Pp. 431-443