Project

General

Profile

Activity

From 02/03/2015 to 03/04/2015

03/04/2015

11:04 PM Feature #2565: Implement async operations for Face.processEvents
+1. Any thoughts on priority relative to other issues? Jeff Burke
10:33 PM Feature #2578: Callback classes should not be under net.named_data.jndn, but at some higher level
Makes sense to consider this. How much of a priority do you think it is? Jeff Burke

02/27/2015

03:59 PM Task #2545 (Closed): Blob should support hashCode()
The change for Blob.hashCode to use ByteBuffer.hashCode is merged into the master branch. Anonymous

02/26/2015

10:51 AM Task #2545: Blob should support hashCode()
No worries, I understand the concerns. Andrew Brown
10:50 AM Task #2545: Blob should support hashCode()
Oh. ok, I'm got mislead by the question and like this approach. Please ignore my notes 28, 29. Alex Afanasyev
10:45 AM Task #2545: Blob should support hashCode()
Look down to the answer to that question: the OP was not filling the buffer, therefore the hash was always the same. Andrew Brown
10:36 AM Task #2545: Blob should support hashCode()
Andrew Brown wrote:
> I don't understand: in #28 you say ByteBuffer.hashCode() is not a real hash but it actually ...
Alex Afanasyev
10:30 AM Task #2545: Blob should support hashCode()
I don't understand: in #28 you say ByteBuffer.hashCode() is not a real hash but it actually is (see #25, just not a c... Andrew Brown
10:04 AM Task #2545: Blob should support hashCode()
Just forgot to add that we would still need to implement real (as it note-25) hashCode() for name and name components... Alex Afanasyev
09:53 AM Task #2545: Blob should support hashCode()
ByteBuffer.hashCode() doesn't do any real hashing (value depends on the number of remaining bytes). I don't mind usi... Alex Afanasyev
09:23 AM Task #2545: Blob should support hashCode()
Nice, I like it. Alex? Andrew Brown
09:04 AM Task #2545: Blob should support hashCode()
The ByteBuffer position and limit will not change, nor will its contents. I hadn't noticed that ByteBuffer implement... Anonymous
08:49 AM Task #2545: Blob should support hashCode()
I understand and that makes sense, just note from previous comments that I was advocating using the same hash as Stri... Andrew Brown

02/25/2015

06:00 PM Task #2545: Blob should support hashCode()
Not sure about java-way, I'm kind of against reimplementing the wheel. Implementing hashing of the data buffer ourse... Alex Afanasyev
04:51 PM Task #2545: Blob should support hashCode()
I still think hashCode() should be implemented in Blob (especially since it doesn't hurt to have it there) but... I d... Andrew Brown
04:12 PM Task #2545: Blob should support hashCode()
I read the definitions and still think that it should not be generally defined for Blob (the use of Blob in hash tabl... Alex Afanasyev
03:21 PM Task #2545: Blob should support hashCode()
It's more a Java-ism than anything else; see discussion above about why but basically the equals() contract assumes t... Andrew Brown
03:14 PM Task #2545 (In Progress): Blob should support hashCode()
Re-open to address Alex's questions. Anonymous
03:13 PM Task #2545 (Closed): Blob should support hashCode()
Anonymous
03:08 PM Task #2545: Blob should support hashCode()
Why "Blob" abstract needs to be hashed? I can understand that name and name component should be hashable as they cou... Alex Afanasyev
03:08 PM Task #2545: Blob should support hashCode()
I vote yes. Andrew Brown
02:54 PM Task #2545: Blob should support hashCode()
Hi Andrew, I added basic unit tests.
https://github.com/named-data/jndn/commit/1ae2cb96380295c93dd91f8e375ae79177d07...
Anonymous
02:28 PM Task #2545: Blob should support hashCode()
+1 Andrew Brown
02:17 PM Task #2545: Blob should support hashCode()
OK, I reverted Blob.equals to not use hashCode().
Let me know what you think of Name.hashCode() here:<br>
https:/...
Anonymous
12:46 PM Task #2545: Blob should support hashCode()
#11, got it. #12, yes, that is more complete; I would still say leave it out because we can't guess how Blob will be ... Andrew Brown
12:05 PM Task #2545: Blob should support hashCode()
In your argument to remove hashCode() from equals(), you say "If the Blobs are unequal, we will have to scan the enti... Anonymous
12:02 PM Task #2545: Blob should support hashCode()
> Why do we have a type-specific equals?
To avoid an unnecessary call to instanceof if possible. Also, the CCL AP...
Anonymous
11:52 AM Task #2545: Blob should support hashCode()
Jeff Thompson wrote:
>
> Do you mean equals(Object) which is used by HashMap, etc.? It will return false for !(...
Andrew Brown
11:35 AM Task #2545: Blob should support hashCode()
> 1. When we add tests, can we add a test for equals(null); I "think" the implementation would return false but I'm n... Anonymous
11:12 AM Task #2545: Blob should support hashCode()
This is good stuff. A few comments:
1. When we add tests, can we add a test for equals(null); I "think" the implem...
Andrew Brown
10:13 AM Task #2545: Blob should support hashCode()
I made a branch issue/2545-Blob-hashCode. Please see the hashCode() method here:<br>
https://github.com/named-data/j...
Anonymous
09:11 AM Task #2545: Blob should support hashCode()
Well, I'm not using it for equals() and it's a minor optimization, but I want to use a HashMap<Name, ...> to avoid lo... Andrew Brown
08:09 AM Task #2545: Blob should support hashCode()
Sure we can. But I'm curious where do you use Name.equals in your application that a hash code can provide a signific... Anonymous
05:52 PM Feature #2578 (New): Callback classes should not be under net.named_data.jndn, but at some higher level
Callbacks such as OnData, OnInterest, ... and many others should not be exposed directly under net.named_data.jndn na... Alex Afanasyev
05:13 PM Feature #2565 (Closed): Implement async operations for Face.processEvents
Right now, one is required to have an infinite loop with with polling of processEvents.
I believe, this can be don...
Alex Afanasyev
12:07 PM Bug #2560: mvn integration-test doesn't seem to run the tests
Can you jump in with adding Failsafe to the global POM? Anonymous
11:57 AM Bug #2560: mvn integration-test doesn't seem to run the tests
Sounds good; why don't you add the failsafe XML to the global POM (let me know if you want me to jump in on that) and... Andrew Brown
11:40 AM Bug #2560: mvn integration-test doesn't seem to run the tests
I think we should use the Failsafe plugin so that "mvn verify" at the top level runs all the integration tests. We c... Anonymous
11:30 AM Bug #2560: mvn integration-test doesn't seem to run the tests
In PR https://github.com/named-data/jndn/pull/6, I did add a sub-POM that closely mirrors the one in /examples; basic... Andrew Brown
11:22 AM Bug #2560: mvn integration-test doesn't seem to run the tests
Good call. I thought we put integration-test stuff in there... but I'm looking now and... nope. I will look into this... Andrew Brown
11:18 AM Bug #2560 (Closed): mvn integration-test doesn't seem to run the tests
When I run "mvn integration-test" it doesn't seem to run the tests. I can even delete the integration-tests folder an... Anonymous

02/24/2015

03:59 PM Task #2545: Blob should support hashCode()
Are we also considering adding hashCode() to Name? That would be helpful. Andrew Brown
11:03 AM Task #2545: Blob should support hashCode()
I agree that it doesn't have to be a cryptographic hash. From what I've seen, hashCode() is only meant for hash maps... Anonymous
10:43 AM Task #2545: Blob should support hashCode()
From what I can tell, the simplest and quickest hashCode() is the Java String version:
for (int i = 0; i < val...
Andrew Brown
01:15 PM Bug #2546 (Closed): Incorrect SCM url in pom.xml
As requested, changed scm:git:git@github.com to the public scm:git:https://github.com according to http://maven.apach... Anonymous
10:56 AM Feature #2558 (Closed): Allow MemoryIdentityStorage to set/get defaults
Your use of SecurityExceptions looks OK to me. I merged the pull request. Anonymous
09:41 AM Feature #2558: Allow MemoryIdentityStorage to set/get defaults
(Alex, still no jndn project in Gerrit or I would have posted this there.) Here is a PR (https://github.com/named-dat... Andrew Brown
09:35 AM Feature #2558 (Closed): Allow MemoryIdentityStorage to set/get defaults
I like to test with MemoryIdentityStorage and MemoryPrivateKeyStorage so that I don't break the (I haven't identified... Andrew Brown

02/21/2015

06:27 AM Task #2365 (Closed): Implement the KeyChain default constructor
Anonymous

02/20/2015

05:03 PM Task #2365: Implement the KeyChain default constructor
Yes, I just used it today and it worked as expected. I think we should close this for jndn. Andrew Brown

02/19/2015

02:52 PM Bug #2546: Incorrect SCM url in pom.xml
You can change it to the https:// version according to http://maven.apache.org/scm/git.html but I also have no idea "... Andrew Brown
01:30 PM Bug #2546 (Closed): Incorrect SCM url in pom.xml
pom.xml currently defines scm block as
<scm>
<connection>scm:git:git@github.com:named-data/jndn.git</connectio...
Alex Afanasyev
11:51 AM Task #2545: Blob should support hashCode()
We should use an efficient hash function like City/Farm Hash, but one that the Java library natively supports. What ... Anonymous
11:51 AM Task #2545 (Closed): Blob should support hashCode()
The Blob class should support hashCode() with an efficient hash function of the content. This way, equals can use it. Anonymous
08:47 AM Task #2374 (Closed): Add Maven Support
Version 0.3 is tagged in GitHub and is deployed to the Maven Central Repository. Anonymous

02/18/2015

12:45 PM Task #2374: Add Maven Support
Hi Andrew. I think I fixed it. I added the protobuf dependency section to the ossrh profile. Is that right? https://... Anonymous
11:56 AM Task #2374: Add Maven Support
... I should ask you to first pull the latest from the main jndn branch so that it is the same pom.xml with the chang... Anonymous
11:55 AM Task #2374: Add Maven Support
That pom.xml for building examples works great. I merged the changes into the main branch so that I could tag releas... Anonymous
09:33 AM Task #2374: Add Maven Support
It makes some assumptions that they are all in the same package, etc., but that simplifies the POM a bit. Andrew Brown
09:32 AM Task #2374: Add Maven Support
Yes, I think so. See this attachment; I dispensed with the profiles all together and just went with a command-line pr... Andrew Brown
09:13 AM Task #2374 (In Progress): Add Maven Support
Anonymous
09:12 AM Task #2374: Add Maven Support
When I removed version, Maven complained. So I simply set the version to 'test'. Also, to avoid confusion I changed ... Anonymous
08:55 AM Task #2374: Add Maven Support
I think you can remove it because it should inherit from the parent POM (according to http://maven.apache.org/pom.htm... Andrew Brown
08:49 AM Task #2374: Add Maven Support
Great! The pom.xml in examples works now. Since we only need to run examples and not deploy, can we remove the 'vers... Anonymous

02/17/2015

04:11 PM Task #2374: Add Maven Support
Thanks for the quick feedback. Sounds like a good solution. Can you attach a revised pom.xml? Anonymous
04:07 PM Task #2374: Add Maven Support
Makes sense; I wouldn't want to install it either. The problem is that the OSSRH deployment requirements use the GPG ... Andrew Brown
02:54 PM Task #2374: Add Maven Support
Hi Andrew. Thanks for the pom.xml but I couldn't get it to work on OS X. 'mvn install' failed because gpg was not ins... Anonymous
10:12 AM Task #2374: Add Maven Support
Jeff, I attached one. I put this pom.xml in /examples and I ran it with 'mvn test -P encode-decode-fib'. As long as I... Andrew Brown

02/13/2015

08:27 AM Task #2374: Add Maven Support
Thanks for the feedback. Do you have time to give me an example profile to run TestEncodeDecodeFibEntry? I ask becaus... Anonymous

02/12/2015

06:00 PM Task #2374: Add Maven Support
Yeah, Maven does so much it's almost impossible to know what's going on under the hood. Once you are ready to deploy ... Andrew Brown
04:09 PM Task #2374: Add Maven Support
Next question: How do we get Maven to compile the files in 'examples' so that it can be run be something like the fol... Anonymous
04:06 PM Task #2374: Add Maven Support
Good tip. JAVA_HOME was not set. I searched my hard drive and I found an installation of Java 6 at /System/Library/Fr... Anonymous
02:56 PM Task #2374: Add Maven Support
Weird... Can you check your JAVA_HOME or run with 'mvn -X' to see what JDK Maven is using? Maybe it decided to use an... Andrew Brown
02:34 PM Task #2374: Add Maven Support
I'm getting the problem even in the default profile which doesn't have its own source and target. Nonetheless I remov... Anonymous
02:30 PM Task #2374: Add Maven Support
(BTW, I already moved the integration-tests in my branch, so you don't have to do it. https://github.com/named-data/j... Anonymous
01:50 PM Task #2374: Add Maven Support
From what I understand, the values under properties/maven.compiler.source and properties/maven.compiler.target get pa... Andrew Brown
01:20 PM Task #2374: Add Maven Support
I'm getting this problem on OS X 10.9 with package maven3 from MacPorts. If you're on Linux or Windows then maybe yo... Anonymous
01:12 PM Task #2374: Add Maven Support
I've been trying to replicate what you're seeing but can't; when I 'mvn deploy' I have to have maven.compiler.source ... Andrew Brown
12:27 PM Task #2374: Add Maven Support
> are we at a point where we could pull out the tests that require external dependencies (e.g. file system, NFD)
Y...
Anonymous
10:50 AM Task #2374: Add Maven Support
... I should say that I have javac 1.8. Even the main profile fails. Can you update pom.xml to support Java 1.8 too... Anonymous
10:48 AM Task #2374: Add Maven Support
Thanks for the update. Please see my question above for trouble with ``mvn -Pwithout-protobuf compile``. I still hav... Anonymous
10:00 AM Task #2374: Add Maven Support
Here's the Maven Central Repository link: http://search.maven.org/#search%7Cga%7C1%7Cnet.named-data Andrew Brown
09:59 AM Task #2374: Add Maven Support
Jeff, works great! All tests pass in about 59 seconds on an NFD-running machine; are we at a point where we could pul... Andrew Brown
09:53 AM Task #2374: Add Maven Support
Hi again Andrew,
I had trouble running ``mvn -Pwithout-protobuf compile``. Then in the without-protobuf section I ...
Anonymous

02/11/2015

04:07 PM Task #2374: Add Maven Support
Hi Andrew,
I made some bug fixes in a branch. Can you check if "mvn test" works for you now? Pull the latest from...
Anonymous
01:31 PM Bug #2511 (Abandoned): Java 8 compiler errors
The compiler errors were not from Java 8 but from "mvn compile". Errors are being fixed for the Maven issue #2374. Anonymous
12:00 PM Bug #2511 (Abandoned): Java 8 compiler errors
Java 8 is more strict about implicit type conversions and generates errors when compiling jNDN. Should update the co... Anonymous

02/10/2015

02:02 PM Task #2374: Add Maven Support
Here's a copy of what I sent you earlier for the record (the ticket I submitted to get jndn synced with the central r... Andrew Brown
 

Also available in: Atom