Beginner

article

Variant of Producer Consumer SCOOP example

With some help from several people and ISE support I got a producer cosnumer exampe passing STRINGs working.

When logging information in a multi threaded system I wanted one thread to handle all writing to a file. The difference from the Producer Consumer example is mainly that I pass a STRING in a queue instead of an INTEGER.

It seems to be some problems with the fiel attachemnts.

article

Eiffel Configuration Tools

Introduction

Lately I have had time to improve the tool support for Eiffel configuration files written in the Pyxis format, by the introduction of syntax highlighting in the gedit text editor and tools for converting XML to Pyxis. For those that are not familiar, Pyxis is an alternative syntax for XML files inspired by the Python programming language.

article

Introducing Pyxis, the readable alternative to XML for Eiffel configuration files

Introduction

Although XML was designed to be a human readable data description language it does not compare well to other data description languages in terms of clarity and readability.

article

Agents versus Adapters

This really applies to all incarnations in all languages of higher order functions in Object Oriented languages.

article

Why doesn't it work?

I start using I/O in eiffel, and my first program doesn't work.


	make
	local
      input : PLAIN_TEXT_FILE
      output : PLAIN_TEXT_FILE
      internal : ARRAY[CHARACTER]
      i, j : INTEGER
    do
      io.putstring ("Welcome to file-io land!

article

Passback variable performance comparison

These tests test the allocation performance of 3 passback variable options and the subsequent access time when retrieving the value back from the calling function.

The difficulty in a general solution arises with void safety.

article

Trouble with array of linked_list elements

I represent an adjacency list of graph G(V,E).

article

The rescue clause does not work

I've tested the system by an example of exception handling in Eiffel

 <eiffel>
feature {NONE} -- Initialization
	i:INTEGER
	x:REAL
	y:ARRAY[REAL]
	make
			-- Run application.
		do
			create y.make(1,2)
			io.put_string ("The item at position: ")
			io.read_integer
			i:=io.last_integer
			find
			io.put_string (" is: ")
			io.put_real (x)
			io.put_string ("%NReturn to make i

article

Attachment in creation features with exceptions

This is a short template of what one can do when dealing with the perfect storm of complication using attached variables. This issue can arise when you need to attempt to release a resource, e.g.

article

How to get the output of a command using EiffelProcess

This is a quite basic but essential operation: Launch a command, and get its output in a string.

There are various solutions.

  • One is to redirect the output to a temporary file, and then read its content. But this is not convenient, since it require disk access, and you can not always hide the process.
Syndicate content