Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Erjang and R14B
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rvirding  
View profile  
 More options Jun 20 2011, 11:57 am
From: rvirding <rvird...@gmail.com>
Date: Mon, 20 Jun 2011 08:57:18 -0700 (PDT)
Local: Mon, Jun 20 2011 11:57 am
Subject: Erjang and R14B
Any idea when we will be able to run erjang on R14B? All I can do is
confirm that it doesn't work, it can't get the bootfile.

Robert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kresten Krab Thorup  
View profile  
 More options Jun 20 2011, 2:40 pm
From: Kresten Krab Thorup <k...@trifork.com>
Date: Mon, 20 Jun 2011 20:40:57 +0200
Local: Mon, Jun 20 2011 2:40 pm
Subject: Re: [erjang] Erjang and R14B
Hi Robert,

I won't have time to work on it soon, but perhaps you can try to run R14 with an R13 copy of prim_file and see how for you get.  Problem is that the interface to the efile driver changed AFAIK.

It may not be so difficult to do ... Anyone want to take a grab at it feel free; you should start by looking at a diff of prim_file from R13 to R14.

Kresten

On Jun 20, 2011, at 5:57 PM, rvirding wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jetztgradnet  
View profile  
 More options Jun 21 2011, 7:53 am
From: Jetztgradnet <jetztgrad...@googlemail.com>
Date: Tue, 21 Jun 2011 04:53:30 -0700 (PDT)
Local: Tues, Jun 21 2011 7:53 am
Subject: Re: Erjang and R14B
The reason might be the addition of file:advise/4 and file:datasync/1,
which require changes in the file driver:
in Erlang: erts/emulator/drivers/common/efile_drv.c,
in Erjang: src/main/java/erjang/driver/efile/EFile.java (class
erjang.driver.efile.EFile)

The correpsonding commits in Erlang/OTP probably are the following:

https://github.com/erlang/otp/commit/3f53a96a8bd0cd4a18f819b6857e6a76...
https://github.com/erlang/otp/commit/21a67b797e40df930b83bd407ffc165b...

The commits show changes to the C driver implementation as well as to
modules pri_file and file. Others like ram file have been modified as
well.

Regards,

Wolfgang

On Jun 20, 8:40 pm, Kresten Krab Thorup <k...@trifork.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Virding  
View profile  
 More options Jun 21 2011, 9:54 am
From: Robert Virding <rvird...@gmail.com>
Date: Tue, 21 Jun 2011 15:54:59 +0200
Local: Tues, Jun 21 2011 9:54 am
Subject: Re: [erjang] Re: Erjang and R14B
It also needs a corresponding function to the one in
erts/emulator/drivers/unix/unix_efile.c. The code in the BEAM files is
almost exactly same as for the fsync() call, FILE_FSYNC, so depending
on how this is done Java the changes which need to be made may be very
small.

Robert

On 21 June 2011 13:53, Jetztgradnet <jetztgrad...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jetztgradnet  
View profile  
 More options Jun 21 2011, 10:01 am
From: Jetztgradnet <jetztgrad...@googlemail.com>
Date: Tue, 21 Jun 2011 07:01:19 -0700 (PDT)
Local: Tues, Jun 21 2011 10:01 am
Subject: Re: Erjang and R14B

On Jun 21, 1:53 pm, Jetztgradnet <jetztgrad...@googlemail.com> wrote:

> The reason might be the addition of file:advise/4 and file:datasync/1,
> which require changes in the file driver:

fdatasync() is the same as fsync, when not supported by the runtime
platform (e.g. under Windows), so it might suffice to implement the
command FILE_FDATASYNC similar to FILE_FSYNC.

fadvice() seems to be optional, in that it is ignored, when not
supported by the runtime platform (e.g. under Windows), so it might
suffice to implement the command FILE_FADVISE (and RAM_FILE_ADVISE in
src/main/java/erjang/driver/ram_file/RamFile.java) to simply return
error code 0.

Regards,

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kresten Krab Thorup  
View profile  
 More options Jun 22 2011, 5:40 pm
From: Kresten Krab Thorup <k...@trifork.com>
Date: Wed, 22 Jun 2011 23:40:04 +0200
Local: Wed, Jun 22 2011 5:40 pm
Subject: Re: [erjang] Re: Erjang and R14B
The issue described here is also related to the R14 problem

https://github.com/trifork/erjang/issues/45

Especially notice @eriksoe's last comment.

<https://github.com/trifork/erjang/issues/45>Kresten

On Jun 21, 2011, at 4:01 PM, Jetztgradnet wrote:

On Jun 21, 1:53 pm, Jetztgradnet <jetztgrad...@googlemail.com> wrote:
The reason might be the addition of file:advise/4 and file:datasync/1,
which require changes in the file driver:

fdatasync() is the same as fsync, when not supported by the runtime
platform (e.g. under Windows), so it might suffice to implement the
command FILE_FDATASYNC similar to FILE_FSYNC.

fadvice() seems to be optional, in that it is ignored, when not
supported by the runtime platform (e.g. under Windows), so it might
suffice to implement the command FILE_FADVISE (and RAM_FILE_ADVISE in
src/main/java/erjang/driver/ram_file/RamFile.java) to simply return
error code 0.

Regards,

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Virding  
View profile  
 More options Jun 22 2011, 6:13 pm
From: Robert Virding <rvird...@gmail.com>
Date: Thu, 23 Jun 2011 00:13:41 +0200
Local: Wed, Jun 22 2011 6:13 pm
Subject: Re: [erjang] Re: Erjang and R14B
On 21 June 2011 16:01, Jetztgradnet <jetztgrad...@googlemail.com> wrote:

> On Jun 21, 1:53 pm, Jetztgradnet <jetztgrad...@googlemail.com> wrote:
>> The reason might be the addition of file:advise/4 and file:datasync/1,
>> which require changes in the file driver:

> fdatasync() is the same as fsync, when not supported by the runtime
> platform (e.g. under Windows), so it might suffice to implement the
> command FILE_FDATASYNC similar to FILE_FSYNC.

> fadvice() seems to be optional, in that it is ignored, when not
> supported by the runtime platform (e.g. under Windows), so it might
> suffice to implement the command FILE_FADVISE (and RAM_FILE_ADVISE in
> src/main/java/erjang/driver/ram_file/RamFile.java) to simply return
> error code 0.

I tried some initial tests along these lines without luck so far using R14B03:

- Copied over the preloaded .beam and .erl files from R14B03 to
src/main/erl/preloaded/{ebin,src}. My hope being that using the new
preloaded files would help work out what is needed to be added to the
java files. There was no extra information which surprised me as there
is code Efile.java calling log.warning if no option matched. How do
you see the warnings?

- I tried adding code for FILE_DATASYNC in the same way and place as
for FILE_FSYNC, which is how the BEAM code does, but to no avail. I
still get the same error message from Erlang and nothing from erjang:

{"init terminating in do_boot",{'cannot get
bootfile','/usr/local/lib/erlang/bin/start.boot'}}
Jun 23, 2011 12:10:22 AM erjang.m.erlang.ErlProc halt
SEVERE: halting system: init terminating in do_boot ()

Now someone who knows what they are doing will have to take over, or
at least advise me.

Robert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kresten Krab Thorup  
View profile  
 More options Jun 22 2011, 7:08 pm
From: Kresten Krab Thorup <k...@trifork.com>
Date: Thu, 23 Jun 2011 01:08:44 +0200
Local: Wed, Jun 22 2011 7:08 pm
Subject: Re: [erjang] Re: Erjang and R14B

On Jun 23, 2011, at 12:13 AM, Robert Virding wrote:

> - Copied over the preloaded .beam and .erl files from R14B03 to
> src/main/erl/preloaded/{ebin,src}. My hope being that using the new
> preloaded files would help work out what is needed to be added to the
> java files.

I would try the other way around: copy R13 prim_efile to your R14 release, because that is what defines the API to the driver.

Kresten


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Virding  
View profile  
 More options Jun 23 2011, 5:48 am
From: Robert Virding <rvird...@gmail.com>
Date: Thu, 23 Jun 2011 11:48:51 +0200
Local: Thurs, Jun 23 2011 5:48 am
Subject: Re: [erjang] Re: Erjang and R14B
That seems so negative. :-) Also you might run into problems as the
old preloaded files might not contain functions which the newer
libraries expect.

Re issue #45, I might have been attacking the wrong functions in
trying to datasync to work, I will have a go later. I would still like
to get more info from java if there are things missing.

Robert

On 23 June 2011 01:08, Kresten Krab Thorup <k...@trifork.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wolfgang Schell  
View profile  
 More options Jul 10 2011, 7:40 pm
From: Wolfgang Schell <jetztgrad...@googlemail.com>
Date: Mon, 11 Jul 2011 01:40:24 +0200
Local: Sun, Jul 10 2011 7:40 pm
Subject: Re: [erjang] Re: Erjang and R14B
Hi all,

I got Erjang to work with R14B01. See pull request 56
(https://github.com/trifork/erjang/pull/56).

Regards,

Wolfgang

Am 23.06.11 11:48, schrieb Robert Virding:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »