User talk:Dmitry-kazakov: Difference between revisions

 
(4 intermediate revisions by 3 users not shown)
Line 17:
:* EOF is? (ASCII LF, NUL, nothing)
:And well, PPM isn't our fault... (:-)) --[[User:Dmitry-kazakov|Dmitry-kazakov]] 12:17, 7 December 2008 (UTC)
:: Binary mode also makes sense a lot of the time on Windows, where for text files the end of line is a multibyte symbol and there is an end-of-file symbol (^Z, which happens to be the official [[ASCII]] EOF character). By comparison, (linear) binary files are just a sequence of bytes. Then there's record-oriented files, but they're seriously out of favor these days; people use proper transactional databases like [[sqlite]] instead. —[[User:Dkf|Donal Fellows]] 12:03, 17 August 2009 (UTC)
::: I agree that handling text files in binary mode is easier under Windows. But let's do not forget, that the reason for that is that Windows text files are broken. Nobody cares if the conventions of text files, because these are not enforced. And they are not enforced because you can open a text file in binary mode and converse. A properly designed file system would never allow this. Guess what would happen if somebody opened database files as texts? --[[User:Dmitry-kazakov|Dmitry-kazakov]] 08:53, 19 August 2009 (UTC)
 
== exception propagation in Ada. ==
Line 26 ⟶ 28:
end;
They look like they are masking/ignoring the ''Out_Of_Ink'' exception.
 
:Yes, this is on the server side. When an exception is propagated out of an entry point, that happens both on the server and the client sides. In our case the server just ignores it. The client ends. --[[User:Dmitry-kazakov|Dmitry-kazakov]] 08:32, 19 February 2009 (UTC)
 
Whereas program appears to propagate ''Out_Of_Ink'' back to ''Mother_Goose''. e.g.
requeue Backup.Print with abort;
Is that because of the ''with abort''?
 
:''with abort'' means that it is allowed for the client to cancel the rendezvous request while it waits in the queue of ''Backup''. If ''Mother_Goose'' have used a timed entry call:
<blockquote>
<lang ada>
select
Main.Print (...);
or delay 5.0;
Put_Line ("No response from the printer");
end select;
</lang>
</blockquote>
:then if the rendezvous to ''Backup'' would not engaged in 5 seconds (including the waiting time for ''Main'') then it would output "No response from the printer". --[[User:Dmitry-kazakov|Dmitry-kazakov]] 08:32, 19 February 2009 (UTC)
 
Also: when the task is requeued, does the ''Main'' printer suspend
Line 35 ⟶ 51:
back from ''Backup'' to ''Mother_Goose'' without passing through ''Main'')
 
:No, the server ''Main'' continues when the entry point body is left, the client (say ''Mother_Goose'') stay blocked and waits now for the new server ''Backup'' to service the rendezvous. --[[User:Dmitry-kazakov|Dmitry-kazakov]] 08:32, 19 February 2009 (UTC)
ThanX
 
Cheers.... a lot going on in that lil'ol bit of code especially the exception handling.
 
Many thanX for something to chew on.
 
[[User:NevilleDNZ|NevilleDNZ]] 11:24, 19 February 2009 (UTC)
 
== Possible reason for Dmitry's sparse activity lately ==
 
He is playing hockey in the NHL for the Detroit Red Wings under the name Pavel Datsyuk. Compare:
 
Dmitry: [http://www.dmitry-kazakov.de/cv/dmitry.gif]<br>
Datsyuk: [http://www.examiner.com/images/blog/wysiwyg/image/Datsyuk_head_shot_2008-09_medium.JPG]
 
--[[User:NevilleDNZMwn3d|NevilleDNZMwn3d]] 0603:3340, 1917 FebruaryMarch 20092011 (UTC)
Anonymous user