<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/bnotes/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/bnotes/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/bnotes/feature-requests/</id><updated>2007-10-08T12:12:35Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Support for Multiple-line comments</title><link href="https://sourceforge.net/p/bnotes/feature-requests/8/" rel="alternate"/><published>2007-10-08T12:12:35Z</published><updated>2007-10-08T12:12:35Z</updated><author><name>Olivier</name><uri>https://sourceforge.net/u/poto/</uri></author><id>https://sourceforge.netc9d906325b5705da65937cacdb8d81332772c131</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ASN.1 2002 introduced Multiple-line comments using "/*" "*/" pairs. BN1.5.1 doesn't support this notation.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Prepared reflection data supports for Enum</title><link href="https://sourceforge.net/p/bnotes/feature-requests/7/" rel="alternate"/><published>2007-09-11T19:57:33Z</published><updated>2007-09-11T19:57:33Z</updated><author><name>Abdulla(h) Abdurakhmanov</name><uri>https://sourceforge.net/u/userid-1513714/</uri></author><id>https://sourceforge.net57264440ec849f8ad51cb73a782852bbde2e4c23</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The enumeration encoding/decoding is not supported prepared data feature and had a performance troubles.&lt;br /&gt;
This is must be fixed in 1.5.2.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ObjectIdentifier datatype support</title><link href="https://sourceforge.net/p/bnotes/feature-requests/6/" rel="alternate"/><published>2007-07-12T18:43:42Z</published><updated>2007-07-12T18:43:42Z</updated><author><name>Abdulla(h) Abdurakhmanov</name><uri>https://sourceforge.net/u/userid-1513714/</uri></author><id>https://sourceforge.net9a413afd1e0953d724d5560bb5bd4227965463e2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We are need to the OID support for version 1.5 for Java/.NET.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Grammar cannot handle parameterization</title><link href="https://sourceforge.net/p/bnotes/feature-requests/5/" rel="alternate"/><published>2007-06-13T07:20:48Z</published><updated>2007-06-13T07:20:48Z</updated><author><name>Tomas Carlfalk</name><uri>https://sourceforge.net/u/tompa/</uri></author><id>https://sourceforge.net948d0d08d6dbf0dcddcb6a842cc5308f4ea7800f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;MyString{INTEGER:maxSize} ::= CHOICE {&lt;br /&gt;
utf8 UTF8String(SIZE(0..maxSize)),&lt;br /&gt;
bmp  BMPString(SIZE(0..maxSize))&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;compiler gives:&lt;/p&gt;
&lt;p&gt;line 104:1: unexpected token: MyString&lt;br /&gt;
line 104:25: unexpected token: }&lt;br /&gt;
line 104:31: unexpected token: CHOICE&lt;br /&gt;
java.lang.NullPointerException&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Grammar cannot handle ellipsis (extension marker "...")</title><link href="https://sourceforge.net/p/bnotes/feature-requests/4/" rel="alternate"/><published>2007-06-13T07:14:33Z</published><updated>2007-06-13T07:14:33Z</updated><author><name>Tomas Carlfalk</name><uri>https://sourceforge.net/u/tompa/</uri></author><id>https://sourceforge.net007aba99dd62054a714a3c2a136ae5e3607343ee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ASN.1 syntax allows to design SEQUENCE:s and CHOICE:s for extendability by using the extension marker "...".&lt;/p&gt;
&lt;p&gt;This is not supported in BNotes. Example:&lt;/p&gt;
&lt;p&gt;ExtendableSeq ::= SEQUENCE {&lt;br /&gt;
a INTEGER (0..31),&lt;br /&gt;
b INTEGER (0..15),&lt;br /&gt;
...&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Comiler gives:&lt;/p&gt;
&lt;p&gt;line 107:3: unexpected token: ...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug in BitString.getLength()?</title><link href="https://sourceforge.net/p/bnotes/feature-requests/3/" rel="alternate"/><published>2007-03-01T21:09:17Z</published><updated>2007-03-01T21:09:17Z</updated><author><name>John Finley</name><uri>https://sourceforge.net/u/jcfinley/</uri></author><id>https://sourceforge.net09318dec6166eb7f77e1c7ee5a19240be887125a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Abdulla,&lt;/p&gt;
&lt;p&gt;I think there's a bug in BitString.getLength().&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;public int getLength() {&lt;br /&gt;
return bitStrValue.length;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Shouldn't this be:&lt;/p&gt;
&lt;p&gt;public int getLength() {&lt;br /&gt;
return bitStrValue.length * 8 - trailBitsCnt;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Or am I confused?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
John&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Additional C# type support</title><link href="https://sourceforge.net/p/bnotes/feature-requests/2/" rel="alternate"/><published>2007-01-24T20:40:20Z</published><updated>2007-01-24T20:40:20Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net13e148efb70f687a87f7197a37d1e68da4e9efb5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to add byte and enum properties to my class.&lt;/p&gt;
&lt;p&gt;I didn't realize that there was an ASN1Enum attribute, I figured that this would be implicit CS element, but it is not.&lt;/p&gt;
&lt;p&gt;Also, I would like byte to be a valid type, currently only int and long are supported.&lt;/p&gt;
&lt;p&gt;I added the following code to make this work:&lt;/p&gt;
&lt;p&gt;Encoder.cs, encodeCSElement method&lt;/p&gt;
&lt;p&gt;if (obj.GetType().IsEnum)&lt;br /&gt;
{&lt;br /&gt;
System.Type declaringType = System.Enum.GetUnderlyingType(obj.GetType());&lt;br /&gt;
if (declaringType == typeof(long))&lt;br /&gt;
{&lt;br /&gt;
return encodeInteger((long) obj, stream, info);&lt;br /&gt;
}&lt;br /&gt;
else if (declaringType == typeof(int))&lt;br /&gt;
{&lt;br /&gt;
return encodeInteger((int) obj, stream, info);&lt;br /&gt;
}&lt;br /&gt;
else if (declaringType == typeof(byte))&lt;br /&gt;
{&lt;br /&gt;
return encodeInteger((byte) obj, stream, info);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Similar code is required for decoding.&lt;/p&gt;
&lt;p&gt;-Chris Peterson&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Encoding/decoding performance issues.</title><link href="https://sourceforge.net/p/bnotes/feature-requests/1/" rel="alternate"/><published>2006-12-07T21:42:37Z</published><updated>2006-12-07T21:42:37Z</updated><author><name>John Finley</name><uri>https://sourceforge.net/u/jcfinley/</uri></author><id>https://sourceforge.net003b6686dc5418e265fded5b6189df377098b8f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Abdullah,&lt;/p&gt;
&lt;p&gt;I've run into some performance bottlenecks with the encoders and decoders.  The problem seems to be that they rely heavily on java reflection, particularly reflection on annotations, and this is really slow!  I've attached an example that generates java hprof output to demonstrate this.&lt;/p&gt;
&lt;p&gt;I've also prototyped some workarounds that demonstrate a noticable improvement when reflection is minimized.&lt;/p&gt;
&lt;p&gt;I believe the performance of the encoders and decoders could be orders of magnitude faster if the reliance on annotations was removed, although I recognize that this is no small undertaking.&lt;/p&gt;
&lt;p&gt;Would it be possible to replace the class and field annotations with static class members?  These could&lt;br /&gt;
be accessed by the coders with almost no overhead.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
John&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>