[julia-users] Re: Julia and the Tower of Babel
Maybe an "easy" first step would be to have a page (a github repo) containing domain specific naming conventions (atol/abstol) that package developers can look up. Even though existing packages might not adopt them, at least newly created ones would have a chance to be more consistent. You could even do a small tool that parse your files and warn you about improper naming.
[julia-users] Re: Correct way to use squeeze function
Squeeze will remove s dimension of size one, so you can transform an array of size 5x1x4 into 5x4 by squeezing the dimension 2. In 0.4 the last dimension is automatically squeezed, and it seems that in 0.5 they all are.
Re: [julia-users] How to Manipulate each character in of a string using a for loop in Julia ?
Note also that using a range to loop through a string is not a good idea if it might contain unicode characters. s = "a°sd2β2" for i=1:length(s) print(s[i]) end LoadError: UnicodeError: invalid character index Last time I checked there was still some functions in Base like findlast that had such issue. The correct way to do it is to use start/done/next. That said it can become a bit tedious, when you have to reverse the string order first or so. I found that using a vector of characters is sometimes an easy solution.
[julia-users] Calling workspace on remote workers
Seems to break things. After calling workspace *isdefined* tells me my function is still defined, but calling it gives a "function not defined". Am I doing something wrong here, or is this a bug ? https://gist.github.com/jonathanBieler/b14cf743185917442d3bde7f4b85aec2 test.jl just contains the definition of test. v0.4.5
Re: [julia-users] Differential Equations Package
Your package is about computing numerical solutions of differential equations. Differential equations are something a bit more general, for example a package for bifurcation analysis could also want to call itself "DifferentialEquations". I don't really have a better name... NSolveDiffEqus ? That said I don't think you really need to rename it.
[julia-users] Re: how to use drawnow in Julia
You can try: drawnow() = sleep(0.001) It works with Gadfly at least.
[julia-users] Re: GtkIDE.jl, a semi-functional editor for Julia
Hum, I guess you need to add it before you can check it out : Pkg.add("Gtk"). I'll update the readme.
[julia-users] GtkIDE.jl, a semi-functional editor for Julia
GtkIDE.jl is a IDE for Julia 0.4 written in Julia, aiming at providing something similar to the Matlab editor (with a console, plots, tools, and the possibility to make customs GUIs). I've been working on this for a while and although the code is still messy, and there's a lot of issues, I find it relatively usable compared to other solutions. Features include multiple consoles (one per worker), interactive plots using Immerse, a tabbed editor with autocompletion, search, panels, etc. You can try it here: https://github.com/jonathanBieler/GtkIDE.jl Report issues on Github if you have an account.
[julia-users] Re: I am trying to figure out how to pass DataTypes for a dataframe to @ListStore in Gtk.jl
There's an example in the tests: https://github.com/JuliaLang/Gtk.jl/blob/master/test/gui.jl#L476 So it seems like you need to declare your ListStore with the proper types, and the iterate over your dataframe and push the data in.
Re: [julia-users] state of Winston
Gadfly is probably the best solution for a native implementation, but is has serious performance issues, specially if you want interactivity (which you can get with https://github.com/JuliaGraphics/Immerse.jl).
Re: [julia-users] Re: Status of Plots.jl?
GR seems pretty good, can it uses Gtk to display plots ?
Re: [julia-users] Is there a way to replace f(object, args...) with object.f(args...)?
I think the auto-completion is a bit of an issue, it makes Julia functions not easily discoverable. In other language when you have a string you can just type dot and tab and see all the methods that you can apply to your string, so you almost never need to go to the doc. Something similar should be possible to implement in Julia with methodswith but I'm not sure any IDE support that yet. methodswith might also be too slow for that purpose.
[julia-users] Re: Zeroing already allocated array
Just use a for loop.
[julia-users] Re: Troubles with library build
Seems my version as a problem yes that the working version doesn't, it's looking for DLLMain in libgdk_pixbuf: http://i.imgur.com/YKFat0W.png Is this something that can be easily be fixed ? otherwise I'll just use the precompiled version.
[julia-users] Troubles with library build
I'm trying to build up-to-date binaries for GtkSourceView using MSYS2/MinGW-w64 but I don't manage to get them working with Julia. When I try to ccall a function it gives me a: ERROR: LoadError: could not load library "libgtksourceview-3.0-1.dll" The specified procedure could not be found. In the meanwhile I found an build that works online, so I don't really need this, but I'd still be curious to understand what the issue is. The two files have the same size on disk, and they look almost identical in other aspects: $ file libgtksourceview-3.0-1.dll libgtksourceview-3.0-1.dll: PE32+ executable (DLL) (console) x86-64 (stripped to external PDB), for MS Windows $ file libgtksourceview-3.0-1-works.dll libgtksourceview-3.0-1-works.dll: PE32+ executable (DLL) (console) x86-64, for MS Windows Looking at the exported functions, they are the same. I also tried to remove the strip option, but that doesn't make a difference.
Re: [julia-users] Number of loops not known at compile time
If I understand correctly, the trick is to encode the dimension into the type of the arguments (using parametric types), then the @generated macro allows you to "write" a function just when the type of the arguments is known, so you can create the right numbers of loops on the fly. http://julia.readthedocs.org/en/latest/manual/metaprogramming/#generated-functions Maybe this is a good example: https://github.com/JuliaLang/julia/blob/master/base/multidimensional.jl#L738
Re: [julia-users] Re: IDE for Julia
Here's the current state of my Gtk-based IDE prototype. It's very buggy but there's some basic things work. https://gfycat.com/YawningLeftCaterpillar It seems doable to make a decent IDE this way, although it's a lot of work and there's a few challenges. Currently I can't set fonts, there's also some problems with getting print commands and errors into the console, and I'm not sure how to implement auto-complete in the editor. GtkSourceView has a system but the documentation is a bit obscure, and I'm not sure it's flexible enough.
Re: [julia-users] Re: IDE for Julia
Gtk, the code isn't published but it's very similar to Julietta: https://github.com/tknopp/Julietta.jl
Re: [julia-users] Re: IDE for Julia
GtkSourceView seems nice but I never managed to get it work on windows. The wrapper might be a bit outdated too. On Monday, September 14, 2015 at 5:14:53 PM UTC+2, Daniel Carrera wrote: > > Ooops, stupid question. I see that the screenshot actually shows the > source code. You are using Gtk (yay!). > > There is a project called GtkSourceView that extends Gtk+ with a source > editor with support for syntax highlighting, line numbers, and so on: > > https://wiki.gnome.org/Projects/GtkSourceView >
Re: [julia-users] Re: IDE for Julia
Instead of complaining like I usually do I've been making a rough prototype of IDE for Julia in Julia, and it seems to me that in the long term it's the right idea. Using existing editors allow to quickly take advantage of their features, but past that it's really hard to integrate more advanced tools tailored specifically for the language. I also find the idea of having a Julia IDE written in Julia very attractive, besides the other advantages like ease of modification and the few dependencies needed. http://i.imgur.com/GHA37Ds.png