Re: [julia-users] How to enter a file using gallium?

2016-11-21 Thread Isaiah Norton
If breakpoints aren't working, I would suggest to your push object(s) of interest into a global Vector{Any} and then debug with `@enter`. On Mon, Nov 21, 2016 at 11:00 AM, wrote: > Well, if A is a complicated object/structure, it'll be almost impossible > to first make up

Re: [julia-users] How to enter a file using gallium?

2016-11-21 Thread Isaiah Norton
> > Any other means without resorting to breakpoints?? Use `@enter function_to_debug( ... )` with the value of A that you are interested in. On Mon, Nov 21, 2016 at 6:30 AM, wrote: > Bump up for the following question: > > Suppose I have the following code where the

Re: [julia-users] Re: Hide and disable REPL

2016-11-03 Thread Isaiah Norton
Can you explain the setup further -- Where is the REPL running? How are you interacting with it? If I take "I want to temporarily switch the REPL off, i.e. it should visually disappear" literally then it seems like a strange thing to do, so I may be missing something If you *do* want to hide the

Re: [julia-users] Re: Sys.CPU_CORES

2016-11-02 Thread Isaiah Norton
Ref: https://github.com/JuliaLang/julia/issues/13901 On Wed, Nov 2, 2016 at 10:33 PM, Isaiah Norton <isaiah.nor...@gmail.com> wrote: > it returns the same concept in all OS? > > > As far as I can tell, yes. > > >> Is it physical number of cores? > > > N

Re: [julia-users] Re: Sys.CPU_CORES

2016-11-02 Thread Isaiah Norton
> > it returns the same concept in all OS? As far as I can tell, yes. > Is it physical number of cores? Number of logical processors. On Wed, Nov 2, 2016 at 9:42 PM, Júlio Hoffimann wrote: > My question is, it returns the same concept in all OS? Is it physical >

Re: [julia-users] Cannot PyPlot / Matplotlib broken (warnings about font cache?)

2016-11-02 Thread Isaiah Norton
> > Ok. So first of all, PyPlot is grabbing the system-wide installation of > Python. I don't know how to tell PyPlot to look at the one that was > installed with the Conda package. https://github.com/JuliaPy/PyCall.jl#specifying-the-python-version To force Julia to use its own Python

Re: [julia-users] building julia 0.5.0 on FreeBSD 11

2016-10-30 Thread Isaiah Norton
Just guessing here from some quick poking around: try adding `#include ` to that file (`OPENBLAS_SRC/driver/others/blas_server.c`). On Sat, Oct 29, 2016 at 4:50 PM, Kostas Oikonomou < kostas.oikonomo...@gmail.com> wrote: > Hi, I'm following the instructions in the README, trying to build 0.5.0 >

Re: [julia-users] Quote-friendly way to express keyword Expr?

2016-10-30 Thread Isaiah Norton
Not really clear what you are trying to do. These are inserted by the parser whenever keyword arguments are used in (function) call syntax. So: julia> quote f(x= 10) end |> dump Expr head: Symbol block args: Array{Any}((2,)) 1: Expr head: Symbol line args: Array{Any}((2,))

Re: [julia-users] Gallium: how to remove a breakpoint?

2016-10-29 Thread Isaiah Norton
`Gallium.remove(Gallium.breakpoints[1])` On Sat, Oct 29, 2016 at 9:09 AM, Florian Oswald wrote: > hi all, > > i have got a rather simple question but can't figure it out: > > https://github.com/Keno/Gallium.jl/issues/166 > > thanks >

Re: [julia-users] Re: so many plotting packages

2016-10-28 Thread Isaiah Norton
> > the julia community would benefit by collecting all these packages in one > place. > There are only 3 or 4 of those packages that should be recommended for general use. If someone wants to help users decide what package to use, write up a comparison page with examples. It could be linked from

Re: [julia-users] Parameteric Function of Types

2016-10-28 Thread Isaiah Norton
On Fri, Oct 28, 2016 at 12:07 PM, Derek Gaston wrote: > I can't quite seem to get the right syntax for creating methods that are > keyed off of subtypes (as a parameter). > > Say I have: > > abstract foo > abstract bar <: foo > > I want to create a function that is like so: >

Re: [julia-users] Re: MersenneTwister, srand

2016-10-28 Thread Isaiah Norton
> > So what is the difference between srand and merseentwister? Per doc link, srand uses MT by default. and also how do I get my random numbers rand() for floats less than 1 by default, or specify a set to choose from: help?> rand search: rand randn rand! randn! randexp randperm randjump

Re: [julia-users] Re: MersenneTwister, srand

2016-10-28 Thread Isaiah Norton
http://docs.julialang.org/en/latest/stdlib/numbers/?highlight=global_rng#random-numbers On Fri, Oct 28, 2016 at 1:23 PM, digxx wrote: > With number in my head I meant, that I expected to see random number > arrays of size 624 since as far as I know they are created >

Re: [julia-users] automatically moving from cmake 3.6.1 to cmakex.y.z

2016-10-27 Thread Isaiah Norton
aps three... set(number_problems 3 FORCE CACHE PARENT_SCOPE) I think I saw an issue about this some time https://github.com/JuliaLang/julia/pull/11754 On Thu, Oct 27, 2016 at 9:56 AM, Bart Janssens <b...@bartjanssens.org> wrote: > > On Thu, Oct 27, 2016 at 3:24 PM Isai

Re: [julia-users] automatically moving from cmake 3.6.1 to cmakex.y.z

2016-10-27 Thread Isaiah Norton
> > Thanks! is there a way of doing it automatically and recursively until it > finds the appropiate CMakeLists.txt file so I do not have to trawl for it? in > addition, as it seems pretty simple I am surprised this does not happen > ‘automagically’. The generated Makefiles have absolute,

Re: [julia-users] Re: CoinOptServices

2016-10-26 Thread Isaiah Norton
Other suggestion: try temporarily (re)moving that file (`%/liblapack.dll`). I wonder if Julia itself is opening the dll for some reason, before WinRPM tries to replace it. (check again with Process Explorer while Julia is still running?) On Wed, Oct 26, 2016 at 12:22 PM, Frank Kampas

Re: [julia-users] cscope like tool

2016-10-26 Thread Isaiah Norton
I don't think so, but Lint.jl might be of interest: https://github.com/ tonyhffong/Lint.jl On Wed, Oct 26, 2016 at 8:56 AM, Ajay Mendez wrote: > Looking for a tool to grok large projects, a la cscope. > methods(method_name) is good but insufficient. For those unfamiliar

Re: [julia-users] Re: CoinOptServices

2016-10-26 Thread Isaiah Norton
> > Process Explorer does not indicate that lapack is being run when the > problem occurs. Does Find -> Find a Handle or DLL -> "liblapack" Return any results? The goal is to look for any open handle to "liblapack.dll", which would lead to the "Can not delete" error indicated in the posted

Re: [julia-users] Re: CoinOptServices

2016-10-26 Thread Isaiah Norton
> > Something is preventing the lapack dll from being overwritten on your > system. Try Process Explorer ( https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx) "Find" menu -> "Find a Handle or DLL" search for "liblapack" and look at what process owns the handle. On Wed,

Re: [julia-users] computation on types in type definition

2016-10-26 Thread Isaiah Norton
> > However, if I want to compute types directly in the definition (see third > implementation), I end up with a TypeVar object I don't know how to deal > with (even though I read the "More about types" section in the manual, > sorry). Is this even possible? Not yet:

Re: [julia-users] Arrays with custom indices examples?

2016-10-24 Thread Isaiah Norton
> > mg = zeros(Int,(0:4,0:4)) This isn't related to indexing -- it doesn't work with `1:4` either. Use: zeros(Int, 4, 4) (See also the help entry: `?zeros`) That said, be aware of the warnings in the referenced document: this feature is still considered experimental, so if you hit other

Re: [julia-users] Named for loops?

2016-10-24 Thread Isaiah Norton
On Monday, October 24, 2016, Angel de Vicente < angel.vicente.garr...@gmail.com> wrote: > Hi, > > I don't see it in the documentation, but I'm wondering if there is a way > to have named nested loops, so that one can specify those names to break > and continue, in order to have more control. > >

Re: [julia-users] Re: Eval without JIT

2016-10-20 Thread Isaiah Norton
There is a startup option that controls this: `--compile=off` (internally corresponds to `jl_options.compile_enabled`). I don't think there is a function to modify the value at runtime. However, some types of statements are not currently supported by the interpreter, so this is not really feasible

Re: [julia-users] Embedding Julia in C++ - Determining returned array types

2016-10-19 Thread Isaiah Norton
e.g. http://half.sourceforge.net/ But if you aren't sure you need to support this, then just throw an error (Float16 is relatively new and AFAICT only useful in specialized applications because of the precision limit, which is why support is rare) If you are sure you (a) need it but (b) only

Re: [julia-users] Embedding Julia in C++ - Determining returned array types

2016-10-18 Thread Isaiah Norton
The issue here is that `jl_array_eltype` is already returning a type. `jl_typeis(v, t)` becomes `jl_typeof(v) == t`, so your checks become: jl_typeof(array_type) == jl_int64_type But jl_typeof(array_type) -> DataType Instead, either do the equality check directly: array_type ==

Re: [julia-users] Does julia -L work with plots?

2016-10-14 Thread Isaiah Norton
Call `show()` at the end of the script. See explanation here: https://github.com/JuliaPy/PyPlot.jl#non-interactive-plotting On Fri, Oct 14, 2016 at 1:17 PM, Stefan Rigger wrote: > > > Hello everyone, > > I'm using julia to numerically solve partial differential equations

Re: [julia-users] Embedding Julia in C++ - Determining returned array types

2016-10-14 Thread Isaiah Norton
On Fri, Oct 14, 2016 at 2:28 PM, Kyle Kotowick wrote: > > > After determining that an array was returned, how would you determine what > the inner type of the array is (i.e. the type of the objects it contains)? > `jl_array_eltype` > > And furthermore, if it returns an array

Re: [julia-users] Simple test functions generates different codegen

2016-10-04 Thread Isaiah Norton
These expressions are lowered differently because `test2` gets a temporary due to the conditional reassignment of `u`, whereas `test1` is just a straight line switch and jump (look at `code_lowered` and `code_typed`). For the same C code, the lowered IR from Clang looks similar, but it appears to

Re: [julia-users] jl_cstr_to_string() variant for wchar_t*

2016-10-03 Thread Isaiah Norton
The 'LegacyStrings' package has functions to convert utf16 (and utf32) strings. On Mon, Oct 3, 2016 at 4:03 AM, Ján Adamčák wrote: > Hi, > > Is there any version of > > jl_cstr_to_str() > > for use with wchar_t*? > > I try create a small wrapper processing windows wchar_t

Re: [julia-users] ANN: RawArray.jl

2016-09-26 Thread Isaiah Norton
Thanks for the response. 1. I don't think NRRD is as substantially used as you might think. I've > worked in imaging science for years on the data processing/file format end, > and I've never seen anyone use it, and I've never even heard of it. (Pity, > because it looks nice enough. :-\) I

Re: [julia-users] ANN: RawArray.jl

2016-09-25 Thread Isaiah Norton
Is there a reason to use this file format over NRRD [1]? To borrow a wise phrasing: I wonder if the world needs another lightweight raw data format ;) For what it's worth, NRRD is already supported by JuliaIO/Images.jl, and I believe addresses the use-cases identified in your readme, but with a

Re: [julia-users] Re: Dict get destroys global variable?

2016-09-22 Thread Isaiah Norton
Use `global a = ...` Please see: http://docs.julialang.org/en/latest/manual/variables-and-scoping/#hard-local-scope global variables are only inherited for reading but not for writing On Fri, Sep 23, 2016 at 12:00 AM, K leo wrote: > Sorry, this is not related to Dict at

Re: [julia-users] Implementing compilers or interpreters in Julia?

2016-09-22 Thread Isaiah Norton
Any answer if going to be fairly opinion-based. That said, here are some opinions :) some advantages: - interactive development - performance - Cxx.jl, if you want to target LLVM - multiple dispatch some disadvantages: - lack of ML-style pattern-matching -- though multiple dispatch on node type

Re: [julia-users] Re: dependent types in julia?

2016-09-14 Thread Isaiah Norton
See https://github.com/JuliaLang/julia/issues/18466#issuecomment-246713799 On Wed, Sep 14, 2016 at 6:13 PM, Dan wrote: > Maybe the following is the form you are looking for: > > julia> decomplexify{T}(::Type{Complex{T}}) = T > decomplexify (generic function with 1 method) > >

Re: [julia-users] How to use jl_call1 with a struct argument?

2016-09-09 Thread Isaiah Norton
(Disregard my suggestion about `Ptr{TestType}`, `jl_call1` only takes boxed arguments so that won't work) The problem is that the passed argument type does not match any available method (because it isn't actually passed a julia type at all) so `jl_call1` silently gives up. The `jl_call*` methods

Re: [julia-users] How to use jl_call1 with a struct argument?

2016-09-09 Thread Isaiah Norton
In c, 'struct TestType' is plain old data, not a Julia type (jl_value_t). Either change to an immutable on julia side, and change function signature to 'Ptr{TestType}'; or allocate a 'jl_value_t*' with the correct type tag, and set the fields. On Friday, September 9, 2016, K leo

Re: [julia-users] calling julia functions in C++

2016-09-08 Thread Isaiah Norton
As far as I can tell, everything in this thread is covered in the embedding section [http://docs.julialang.org/en/latest/manual/embedding/] except for the note about `jl_load` usage. Care to make a pull-request? ;) On Thu, Sep 8, 2016 at 12:09 AM, K leo wrote: > Thank you.

Re: [julia-users] Re: successfully built julia using windows subsystem for linux but getting '`: not enough memory (ENOMEM) when trying to use Compat

2016-08-24 Thread Isaiah Norton
Please see https://groups.google.com/d/msg/julia-users/K3AKvD6EYT8/vGcchWRlAgAJ On Wed, Aug 24, 2016 at 5:26 PM, mmh wrote: > > versioninfo() > Julia Version 0.6.0-dev.390 > Commit 3ab4d76 (2016-08-24 18:18 UTC) > Platform Info: > System: Linux (x86_64-linux-gnu) > CPU:

Re: [julia-users] Re: Windows subsystem for Linux

2016-08-03 Thread Isaiah Norton
Tony has been trying this too and has reported upstream. See https://github.com/Microsoft/BashOnWindows/issues/118#issuecomment-208249048 On Wed, Aug 3, 2016 at 12:29 PM, 'Bill Hart' via julia-users < julia-users@googlegroups.com> wrote: > In fact, both the old and new versions of libuv seem to

Re: [julia-users] Does a wrapper for gmtime exist

2016-07-27 Thread Isaiah Norton
IIUC, the Julia DateTime object represents UT (milli)seconds, and has converters to/from human-readable dates and local time. http://docs.julialang.org/en/release-0.4/manual/dates/ On Wed, Jul 27, 2016 at 9:32 AM, Andrew Gibb wrote: > Hi, > > I'm writing a module for

Re: [julia-users] Using Julia with Epsilon (EMACS)

2016-07-26 Thread Isaiah Norton
> > The same command in the command prompt works fine. > Has anyone seen this, or something like it, before? > https://github.com/JuliaLang/julia/issues/14776 looks similar. Worth another thumbs-up at least ... On Tue, Jul 26, 2016 at 12:31 PM, Gary Mallard wrote: > I

Re: [julia-users] Re: isdefined with local variables

2016-07-20 Thread Isaiah Norton
; > >> >> All compile-time undefined bindings become a runtime lookup from the >> >> enclosing (i.e. module) scope. The undefined error means that this >> lookup >> >> failed. >> > >> > If that is so, what is the function I can call to determ

Re: [julia-users] Re: isdefined with local variables

2016-07-19 Thread Isaiah Norton
Creating variables dynamically at local scope is not possible (if you are calling `eval` inside a function: it does not work like that!) Since the runtime can determine that the local variable is undefined as > evidenced by an appropriate error All compile-time undefined bindings become a

Re: [julia-users] What does Base.box mean in code_warntype?

2016-07-19 Thread Isaiah Norton
On Fri, Jul 15, 2016 at 5:02 PM, David Anthoff wrote: > > What do these mean? > http://stackoverflow.com/questions/13055/what-is-boxing-and-unboxing-and-what-are-the-trade-offs > And should I be worried, i.e. is this an indication that something slow > might be going on?

Re: [julia-users] Call C functions from file.cpp in a shared library from Julia

2016-07-13 Thread Isaiah Norton
If you use .cpp the compiler decides to compile it as C++ and so uses name-mangling (https://en.wikipedia.org/wiki/Name_mangling#C.2B.2B). If you want to compile as C++ but have ccall'able signatures, put an `extern "C" { ... }` around the C entrypoints. FYI: you can debug this kind of question

Re: [julia-users] Why two (qualified) macro invocation forms?

2016-07-10 Thread Isaiah Norton
; > > On Sun, Jul 10, 2016 at 12:46 AM, Isaiah Norton <isaiah.nor...@gmail.com > > > > wrote: > >> > >> I believe the second form may be vestigial at this point, and agree that > >> it is inconsistent. The usage is non-existent in base (except for

Re: [julia-users] Why two (qualified) macro invocation forms?

2016-07-09 Thread Isaiah Norton
(also a work-around for a symbol hygiene issue: https://github.com/JuliaLang/julia/issues/15085) On Sun, Jul 10, 2016 at 12:46 AM, Isaiah Norton <isaiah.nor...@gmail.com> wrote: > I believe the second form may be vestigial at this point, and agree that > it is inconsistent. The

Re: [julia-users] Why two (qualified) macro invocation forms?

2016-07-09 Thread Isaiah Norton
I believe the second form may be vestigial at this point, and agree that it is inconsistent. The usage is non-existent in base (except for one test), but there is at least one issue for which the current work-around requires the second form: https://github.com/JuliaLang/julia/issues/14208 On Fri,

Re: [julia-users] string interpolation for memory object name

2016-07-09 Thread Isaiah Norton
Technically you *can* do the following: @eval $(Symbol("logit_", outcomes[i], "_unadjusted")) = [... fix the RHS too] But IMHO programming like this is kind of discouraged. (for one thing, undisciplined use can lead to big speed traps). An alternative is to hold a string-addressable handle to

Re: [julia-users] Enter permanently on a REPL mode

2016-07-09 Thread Isaiah Norton
https://github.com/JuliaLang/julia/issues/14081 On Fri, Jul 8, 2016 at 10:07 AM, Iagoba Apellaniz < iagoba.apella...@gmail.com> wrote: > I would prefer to enter permanently on a REPL mode like `shell`. See > RCall.jl packages behavior. Once you are on R you have to hit `backspace` > to get back

Re: [julia-users] Could someone explain @static?

2016-07-09 Thread Isaiah Norton
This is mostly for precompilation and library use. When compiling a shared library we can't rely on a runtime check if the compiler is not available (and trying to compile both branches is inefficient and might be impossible for the reason in the help section). On Saturday, July 9, 2016, feza

Re: [julia-users] ccall doesnt work in embed.c example

2016-07-09 Thread Isaiah Norton
The symbol exists but is not exported (t vs T). Try adding DLLEXPORT in front of the function declaration. On 0.4 it appears to have had a Windows-only export declaration. On Saturday, July 9, 2016, Sourabh Chadha wrote: > I am new to Julia and have been trying to use

Re: [julia-users] Pkg "threadsafe" or interprocess mutex package

2016-07-08 Thread Isaiah Norton
lia-users@googlegroups.com [mailto:julia-users@googlegroups.com] > *On Behalf Of *Isaiah Norton > *Sent:* Thursday, July 7, 2016 5:34 PM > > *To:* julia-users@googlegroups.com > *Subject:* Re: [julia-users] Pkg "threadsafe" or interprocess mutex > package > > > > Does t

Re: [julia-users] Pkg "threadsafe" or interprocess mutex package

2016-07-07 Thread Isaiah Norton
.com/JuliaLang/julia/issues/17320 > > > > Cheers, > > David > > > > *From:* julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] > *On Behalf Of *Isaiah Norton > *Sent:* Thursday, July 7, 2016 6:52 AM > *To:* julia-users@googlegroups.com > *S

Re: [julia-users] How to profile a module?

2016-07-07 Thread Isaiah Norton
http://docs.julialang.org/en/latest/manual/profile/#accumulation-and-clearing If you want to save results from a single session, use `savedprof = copy(Profile.fetch())` and print with `Profile.print(savedprof)`. On Thu, Jul 7, 2016 at 11:07 AM, wrote: > Thanks. Can I do

Re: [julia-users] When Julia v1.0 will be released?

2016-07-07 Thread Isaiah Norton
> > I knew that. > The goal is 2017, if development community considers it to be ready. I don't mean to be too glib, but I fail to see how any answer is particularly actionable; it is certainly not binding. On Thursday, July 7, 2016 at 10:14:24 AM UTC-4, Isaiah wrote: >> >> When it is ready.

Re: [julia-users] When Julia v1.0 will be released?

2016-07-07 Thread Isaiah Norton
When it is ready. On Thu, Jul 7, 2016 at 10:07 AM, Hisham Assi wrote: > I really like Julia (I am using it for my publications & thesis), but I > noticed that the versions are not really backward compatible. I am still ok > with that, but many other people are waiting

Re: [julia-users] Pkg "threadsafe" or interprocess mutex package

2016-07-07 Thread Isaiah Norton
See https://github.com/JuliaLang/julia/issues/5622 and https://github.com/JuliaLang/julia/issues/7176 If you are on Windows, LockFileEx is reliable and you could ccall it yourself. Probably simpler to handle the problem at a higher level for now though (i.e. run one script that checks

Re: [julia-users] How to profile a module?

2016-07-07 Thread Isaiah Norton
Yes On Thu, Jul 7, 2016 at 9:31 AM, wrote: > Do you mean that in the test file I do something like this? > > import A, B > p = B.g() > @profile A.f(p) > > > > > On Thursday, July 7, 2016 at 1:22:24 PM UTC+1, Isaiah wrote: >> >> Profile the calls to B.g and A.f separately.

Re: [julia-users] list kw args

2016-07-07 Thread Isaiah Norton
t stable version? > > Many thanks again > > Leonardo > > > > Il 06/07/2016 15:32, Isaiah Norton ha scritto: > >> The implementation is not trivial to follow, but have a look at >> `kwarg_decl` in `base/methodshow.jl`. >> >> This might be a reaso

Re: [julia-users] How to profile a module?

2016-07-07 Thread Isaiah Norton
Profile the calls to B.g and A.f separately. On Thursday, July 7, 2016, wrote: > Bump up. >

Re: [julia-users] More on Macros

2016-07-06 Thread Isaiah Norton
No worries; if you are missing S-expressions too much, you might enjoy playing with https://github.com/swadey/LispSyntax.jl On Wed, Jul 6, 2016 at 12:41 AM, Rangarajan Krishnamoorthy < ranga@gmail.com> wrote: > That was very helpful. Thanks for your patience. > > -Rangarajan > > > On

Re: [julia-users] list kw args

2016-07-06 Thread Isaiah Norton
The implementation is not trivial to follow, but have a look at `kwarg_decl` in `base/methodshow.jl`. This might be a reasonable thing to have as a helper function, if you want to open a GitHub issue to discuss. (Be warned: you will pay a severe performance penalty if you try to use reflection

Re: [julia-users] More on Macros

2016-07-05 Thread Isaiah Norton
> > Is there a clear language spec for macros, or is it still evolving? I > understand that relying on implementation to learn a language feature can > be risky. > There is no formal spec that I am aware of. However, I don't remember any substantive changes except for this one in 0.5-dev:

Re: [julia-users] More on Macros

2016-07-05 Thread Isaiah Norton
Anonymous functions are a bit incomplete / not-fully-integrated in 0.4, and I think this falls out as a consequence. You can simulate the result you want with: julia> function returnMacro() eval(parse(""" macro myMacro(anexpr) parse(anexpr) end

Re: [julia-users] Question on Macros

2016-07-05 Thread Isaiah Norton
> > I am new to Julia, but have a background in Lisp and other languages. I > found it interesting that Julia supports Macros similar to Lisp. A few > questions: > Welcome. You may be interested in this recent talk: https://www.youtube.com/watch?v=dK3zRXhrFZY > 1) Julia uses "@" operator as a

Re: [julia-users] testing intrument Automation

2016-07-02 Thread Isaiah Norton
I haven't seen any libraries for GPIB or Visa. The NIDAQ library might be of interest (https://github.com/JaneliaSciComp/NIDAQ.jl). Depending on your latency requirements, you could potentially use PyVISA via PyCall.jl (https://github.com/stevengj/PyCall.jl). On Fri, Jul 1, 2016 at 10:08 AM,

Re: [julia-users] Re: Fixing JavaCall for 0.5: generating methods which call ccall

2016-06-30 Thread Isaiah Norton
https://github.com/JuliaLang/julia/issues/17219 On Thu, Jun 30, 2016 at 6:28 PM, Isaiah Norton <isaiah.nor...@gmail.com> wrote: > This is a lowering bug. I have a repro and a patch that fixes it (Pkg.test > JavaCall succeeds), but may have unforeseen side-effects. Will file an >

Re: [julia-users] Re: Fixing JavaCall for 0.5: generating methods which call ccall

2016-06-30 Thread Isaiah Norton
This is a lowering bug. I have a repro and a patch that fixes it (Pkg.test JavaCall succeeds), but may have unforeseen side-effects. Will file an issue or a PR soon once I do a bit more testing. (there's also a work-around: use a different variable name for the ccall ptr argument) On Wed, Jun

Re: [julia-users] errors using packages in parallel

2016-06-03 Thread Isaiah Norton
Try `@everywhere using Dierckx` On Thu, Jun 2, 2016 at 3:49 PM, Ethan Anderes wrote: > I’m looking for help setting up a parallel job spread across different > servers. I would like to use my laptop as the master node. I’m getting > errors when using packages and I’m not

Re: [julia-users] Is the master algorithm on the roadmap?

2016-06-02 Thread Isaiah Norton
This is not a forum for wildly off-topic, speculative discussion. Take this to Reddit, Hacker News, etc. On Thu, Jun 2, 2016 at 10:01 PM, Kevin Liu wrote: > I am wondering how Julia fits in with the unified tribes > >

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Isaiah Norton
I'm going to assume that there is a terminology barrier here... My interpretation of the question is: can we directly translate programs from other languages? This is called source to source translation or compilation ( https://en.m.wikipedia.org/wiki/Source-to-source_compiler), and the answer

Re: [julia-users] Reading from a TCP socket with quasi-continuous data transfer

2016-06-01 Thread Isaiah Norton
On Wednesday, June 1, 2016, Joshua Jones < highly.creative.pseudo...@gmail.com> wrote: > >>>1. I've read (here and elsewhere) that Julia does an implicit block >>>while waiting for data. Is there a workaround? >>> >>> Do the blocking read asynchronously in a task. For network I/O (but not

Re: [julia-users] hankelh1(1,z) bug?

2016-05-26 Thread Isaiah Norton
This looks like an issue in the underlying AMOS library from netlib. Both SciPy and SciLab give the same answer as Julia and also use AMOS. mpmath and Wolfram Alpha give the correct answer. Possibly a documentation issue about tolerances in the AMOS implementation, I'm not quite sure. Issue:

Re: [julia-users] Reading from a TCP socket with quasi-continuous data transfer

2016-05-26 Thread Isaiah Norton
On Tue, May 24, 2016 at 4:43 PM, Joshua Jones < highly.creative.pseudo...@gmail.com> wrote: > Hi, > > First post to the group, but I've been coding in Julia for about a year > now. > Welcome! *Questions*: > >1. If I try to read from the TCP buffer, it blocks; CTRL-C seemingly >can't

Re: Soukromá zpráva ohledně: [julia-users] Re: getindex vs @getindex

2016-05-25 Thread Isaiah Norton
Because a QuoteNode is not the same thing as a symbol: julia> :x == :(:x) false julia> dump(:(:x)) QuoteNode value: Symbol x (please read the metaprogramming documentation to see what tools are available to help with macro development...) On Wed, May 25, 2016 at 10:10 AM, Ford Ox

Re: [julia-users] I feel that on the syntax level, Julia sacrificed too much elegancy trying to be compatible with textbook math notations

2016-05-24 Thread Isaiah Norton
This has been a point of (extremely) lengthy discussion. See the following issues for recent improvements and plans, some of which will be in the next release: https://github.com/JuliaLang/julia/pull/15032 https://github.com/JuliaLang/julia/issues/16285 On Tue, May 24, 2016 at 5:23 PM, Siyi Deng

Re: [julia-users] Handling large xml-files

2016-05-24 Thread Isaiah Norton
One example to start from is the parser in OpenStreetMap.jl, which uses LibExpat's streaming functionality: https://github.com/tedsteiner/OpenStreetMap.jl/blob/master/src/parseMap.jl On Tue, May 24, 2016 at 11:18 AM, Johann Spies wrote: > > > > *In Python I can use

Re: [julia-users] julia equivalent of python [] (aka list)

2016-05-24 Thread Isaiah Norton
`Any[]` constructs a list instance. The proper type signature is `::Array{Any,1}` (or if you don't absolutely need it, you can leave the member signature out of the type declaration) On Tue, May 24, 2016 at 1:16 PM, Andreas Lobinger wrote: > I tend to agree with you,

Re: [julia-users] Lack of an explicit return in Julia, heartache or happiness?

2016-05-24 Thread Isaiah Norton
This is common in more functionally-oriented languages, and facilitates a similar style in Julia. I would probably ban it in an organization-level linting standard, but I do use it myself ;) On Tue, May 24, 2016 at 12:48 PM, David Parks wrote: > The last line of a

Re: [julia-users] Julia implementation

2016-05-24 Thread Isaiah Norton
I would suggest to read src/README.md and the Devdocs ( http://docs.julialang.org/en/latest/devdocs/julia/) for an overview of the organization of the codebase. > What is not implemented in julia? > What language is it implemented in? (I think that arrays come from c, > right?) - frontend

Re: [julia-users] methods list

2016-05-23 Thread Isaiah Norton
julia> methodswith(Foo) On Mon, May 23, 2016 at 2:03 PM, Ford Ox wrote: > Is there any function that will print out all methods available for > concrete type? > > type Foo end > method1(f::Foo) = ... > method2(x::Int, f::Foo) = ... > methods(Foo) > > Foo has three methods:

Re: [julia-users] Keyword chaining

2016-05-23 Thread Isaiah Norton
Also, the given example is already valid syntax... (simply missing a final `end`) On Mon, May 23, 2016 at 1:51 PM, Stefan Karpinski wrote: > What is "keyword chaining"? Can you provide examples of languages that do > something like this? > > On Mon, May 23, 2016 at 1:43

Re: [julia-users] Re: Async file IO?

2016-05-19 Thread Isaiah Norton
y. Operations on `LibuvStream` (and its subtypes) use Libuv. On Thu, May 19, 2016 at 6:36 PM, Isaiah Norton <isaiah.nor...@gmail.com> wrote: > I don't think this happens for normal file IO. > > > Right, good point. The stuff in the thread linked by Andrei applies to > Lib

Re: [julia-users] Re: Async file IO?

2016-05-19 Thread Isaiah Norton
> > I don't think this happens for normal file IO. Right, good point. The stuff in the thread linked by Andrei applies to Libuv streams only. I think that Julia IO is built on libuv > Julia IO is mostly built on libuv, but file IO uses the internal ios library that is part of flisp. On Thu,

Re: [julia-users] Ubuntu bug? Executing .jl files via shebang does nothing on Ubuntu 16.04 x64

2016-05-19 Thread Isaiah Norton
What is `versioninfo()` for both cases? If your versions are different, this might be a bug that has been fixed... On Thu, May 19, 2016 at 1:48 PM, Adrian Salceanu wrote: > Hi, > > There seems to be a problem with executing .jl scripts on Ubuntu 16.04 x64 > > Take

Re: [julia-users] Re: static compilation

2016-05-19 Thread Isaiah Norton
It looks like there might be a parser ambiguity when the arguments are given as a tuple (the whole thing is parsed as keyword argument to the macro call). Either of the following will work right now: @Base.ccallable Int64 foo(x::Int64) = x+1 @Base.ccallable(Int64, function foo(x::Int64)

Re: [julia-users] Using @spawnat to define var on particular process

2016-05-19 Thread Isaiah Norton
On Mon, May 16, 2016 at 7:48 PM, Alex Williams wrote: The basic question is why this doesn't define `x` on worker #2: > > *@spawnat 2 x=1* > Because it is wrapped in a closure; so `x` is local to the closure when the code is executed on the other process. To see the

Re: [julia-users] tensor flow question

2016-05-18 Thread Isaiah Norton
Several things seem to be happening here: - TensorFlow.jl does not export `tanh` (but does export `tanh_`, note underscore) - There is ambiguity among several `sigmoid` method signatures, which may cause the import to fail (try calling `TF.API.sigmoid` directly to see the warning). - Julia does

Re: [julia-users] Plagiarism detection for Julia?

2016-05-18 Thread Isaiah Norton
> > Otherwise, I might develop an extension for JPlag > > In case you are not aware, there is a pure-Julia version (as opposed to scheme) of the parser, that is easier to use for tooling purposes: https://github.com/JuliaLang/JuliaParser.jl On Wed, May 18,

Re: [julia-users] Re: select/poll on TCPSocket in Julia?

2016-05-18 Thread Isaiah Norton
> > And just of curiosity, when current task calls `read()` and there's no > data available, does Julia switch to another task or lets operating system > to switch thread? Switches to another task. The reading task on the Julia side calls libuv to initiate reading, then waits on a condition

Re: [julia-users] uv-unix.h not found on windows

2016-05-13 Thread Isaiah Norton
How did you install Julia? The issue is that the compiler is incorrectly identifying as unix, so libuv looks for headers which are not available. You could try compiling with `gcc ... -mwin32`. But most likely you will need to get a supported toolchain. See the windows build instructions:

Re: [julia-users] old objects and new code

2016-05-13 Thread Isaiah Norton
> > It seems to me that when I execute one of the module functions on x the > original version of the function, not the revised version, gets called. First, is my understanding of what's going on correct? Yes, if you are holding an alias to the "old" module, it doesn't get updated. Second, any

Re: [julia-users] How to check whether a macro is defined

2016-05-13 Thread Isaiah Norton
julia> isdefined(symbol("@inline")) true On Fri, May 13, 2016 at 6:11 AM, wrote: > to suppress some annoying method overwritten warnings, I found a useful > @nowarn macro. > However, I need to check whether this macro is defined and include the > definition if not. > >

Re: [julia-users] Process medium-sized files in JuliaBox (or alternative)

2016-05-13 Thread Isaiah Norton
You could try uploading files to your own AWS bucket and access them using AWS.jl. (I don't know what the transfer speed / latency would be like). SageMathCloud supports Julia (or did in the past; not sure about current version), and they have a generous free account (3 GB). Their subscription is

Re: [julia-users] cannot make codespeed

2016-05-11 Thread Isaiah Norton
I believe it's just a metadata field for the web display, probably `julia` or sometimes `julia-debug`. On Sun, May 8, 2016 at 3:41 AM, Didier Verna wrote: > > Hello, > > I cloned Julia yesterday and could make it, except that I cannot 'make > codespeed' in test/perf.

Re: [julia-users] loop-else

2016-05-11 Thread Isaiah Norton
That issue is marked as a 1.0 milestone, which should be interpreted as "decision before 1.0" in this case. But clearly a low priority. On Wed, May 11, 2016 at 5:26 AM, Ford Ox wrote: > Will loop-else python like syntax be implemented in future? I have read > this

Re: [julia-users] Re: Is there a function/macro that shows the line number where it is called?

2016-05-10 Thread Isaiah Norton
Use `@__LINE__` and `@__FILE__`. (note, however, `@__LINE__` does not work when used within another macro, see https://github.com/JuliaLang/julia/issues/9577) On Tue, May 10, 2016 at 6:25 AM, FANG Colin wrote: > Currently I am using > > macro markup(line_number) >

Re: [julia-users] @edit could not determine location of method definition

2016-04-27 Thread Isaiah Norton
What version of Julia? Possibly this issue: https://github.com/JuliaLang/julia/issues/14346 If your code is publicly available, please add the example (and link to code) as a comment there, plus output of `versioninfo()`. On Wed, Apr 27, 2016 at 6:01 AM, wrote: > Most of

Re: [julia-users] Cloning private package with 0.5

2016-04-23 Thread Isaiah Norton
> > I would hope that this is a release blocker issue, given that private > package repos have been supported forever. > So right now there seems no way to use them on 0.5 from Windows... https:// should be supported, although I haven't tried it on Windows. See [1,2] for configuration details

  1   2   3   4   5   6   7   8   >