Code Monkey home page Code Monkey logo

Comments (20)

hjmjohnson avatar hjmjohnson commented on May 18, 2024 1

My guess is : vxl/vxl@3cdc40c

from itk.

stale avatar stale commented on May 18, 2024 1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from itk.

hjmjohnson avatar hjmjohnson commented on May 18, 2024

@nslay vxl has moved to github several years ago. Would you please reference the code on the github vxl site?

https://github.com/vxl/vxl

from itk.

nslay avatar nslay commented on May 18, 2024

Thanks for the prompt response!

I'm quite surprised because the github VXL repository has the same discrepancy as ITK while the sourceforge one is thread-safe. Here is the offending non-threadsafe lbfgsb.c code:

https://github.com/vxl/vxl/blob/master/v3p/netlib/opt/lbfgsb.c

I've downloaded the sourceforge one and attached it.

lbfgsb.txt

Sorry, github doesn't support C files. I renamed it with a .txt extension.

I wonder what happened in the migration to github!

from itk.

nslay avatar nslay commented on May 18, 2024

The very first commit on github is threadsafe. I'll try to find where it changed.
https://github.com/vxl/vxl/blob/ae9c7b5a9253f4ac14f5b247a816b5a1a559d80a/v3p/netlib/opt/lbfgsb.c

from itk.

nslay avatar nslay commented on May 18, 2024

The massive amount of static variables got reintroduced here (to fix another bug):
vxl/vxl@3cdc40c#diff-b59cc8496f016fff270b123014286c74

from itk.

nslay avatar nslay commented on May 18, 2024

I'm glad VXL is still alive and kicking! It's my favorite numerics library. I thought it was abandoned or was just extremely mature when I saw that the last commit was in 2013 on sourceforge.

Google pointed me to VXL's sourceforge (first result). Github wasn't anywhere in the search results!

from itk.

dzenanz avatar dzenanz commented on May 18, 2024

If somebody has write access to vxl.sourceforge.net, they could add a link to GitHub and state that VXL has moved there.

from itk.

hjmjohnson avatar hjmjohnson commented on May 18, 2024

I think that would be @bradking

from itk.

nslay avatar nslay commented on May 18, 2024

What I don't understand is why f2c emits static variables for otherwise local variables in the original Fortran code. I'd expect this for, say, Fortran's common blocks (yuck!), but not these variables!

Does Fortran have some sort of guarantee about the states of local variables in functions called multiple times?

from itk.

bradking avatar bradking commented on May 18, 2024

I've opened vxl/vxl#555 to discuss the future of the vxl homepage.

from itk.

hjmjohnson avatar hjmjohnson commented on May 18, 2024

@dzenanz FYI: vxl/vxl#555 . VXL homepage moved to github.

from itk.

hjmjohnson avatar hjmjohnson commented on May 18, 2024

@nslay f2c probably does not emit static, but f2c often produces a draft of code that subsequently requires modification in order to meet coding standards/ performance/linkage constraints not supported in the original implementation.

It would be fabulous if you could provide a pull request for this codebase that fixes the problem you identified.

both f2c, and the developers that attempted to fix this file are imperfect.

Thanks,
Hans

from itk.

nslay avatar nslay commented on May 18, 2024

Hi Hans,
ITK/VXL developers are not perfect!? I am outraged!

OK. I will work on this problem. I also apparently need to tidy up ITKIOOpenSlide!

Nate

from itk.

hjmjohnson avatar hjmjohnson commented on May 18, 2024

@nslay 👍 It was almost certainly me who made those static. Just be careful not to blindly move the old code forward. It may fix thread safety at the expense of re-introducing other problems.

Thanks for looking into this.

from itk.

pieper avatar pieper commented on May 18, 2024

hey, shouldn't this be reopened? Sounds like it's not fixed and people have told me it's still and issue. @hjmjohnson @thewtex

from itk.

nslay avatar nslay commented on May 18, 2024

Yeah yeah, I intended to fix this. I will have another look this weekend.

from itk.

hjmjohnson avatar hjmjohnson commented on May 18, 2024

@nslay THANK YOU!!!

You may want to look at recent upstream changes to this code base L-BFGS-B-C for fixing this+potentially other bugs. If you find additional bugs, perhaps we should submit them upstream.

from itk.

pieper avatar pieper commented on May 18, 2024

@nslay, ditto on @hjmjohnson's THANK YOU!!!

We have some code that can be used to help test when you are ready.

from itk.

stale avatar stale commented on May 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

from itk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.