Re: [julia-users] Re: Uniform syntax

2016-06-05 Thread Yuri Vishnevsky
I might be wrong here, but you could imagine "unifying" macros and functions, allowing people to call any function as a macro by prepending a @, or calling any macro as a function by omitting it. I don't know whether this would be useful, but it's how I read Ford's question. On Sunday, June

[julia-users] Applying an image filter

2015-05-02 Thread Yuri Vishnevsky
Hi all, I am playing around with image inpainting (http://en.wikipedia.org/wiki/Inpainting) using the very simple approach outlined here: http://www.cs.columbia.edu/~bmbowen/papers/inpainting.pdf The entire algorithm, in pseudocode, is initialize Ω; // A mask signifying the area of the image

Re: [julia-users] Applying an image filter

2015-05-02 Thread Yuri Vishnevsky
, but it's not easy to do so efficiently on julia 0.3. --Tim On Saturday, May 02, 2015 04:37:10 PM Yuri Vishnevsky wrote: Hi all, I am playing around with image inpainting (http://en.wikipedia.org/wiki/Inpainting) using the very simple approach outlined here: http

Re: [julia-users] Best way to flatten an 2D array of Array{T, 2} into a single 2D array

2014-09-10 Thread Yuri Vishnevsky
Thanks for the recommendation. -- Yuri On Wednesday, September 10, 2014 4:30:13 AM UTC-4, Tim Holy wrote: Your approach is fine, but maybe easier is to use ImageView's canvas grid, and then you can use write_to_png(cg, filename). --Tim On Tuesday, September 09, 2014 07:16:04 PM Yuri

[julia-users] Best way to flatten an 2D array of Array{T, 2} into a single 2D array

2014-09-09 Thread Yuri Vishnevsky
Hi all, I'm writing code to take a bunch of images and concatenate them into one big image (you can see the attached picture for an example of what this can look like). The code I wrote to generate the above picture is fairly hideous; I arrived at it after trying a number of approaches that

[julia-users] Displaying an array of images in an IJulia notebook

2014-05-26 Thread Yuri Vishnevsky
Hi all, I'm playing around with some image-related stuff in Julia and am using the method recommended herehttp://nbviewer.ipython.org/url/jdj.mit.edu/~stevenj/IJulia%20Preview.ipynb to get image data to render as an actual image inside of an IJulia notebook. I'd like to extend Julia's

[julia-users] Re: Displaying an array of images in an IJulia notebook

2014-05-26 Thread Yuri Vishnevsky
Woohoo. Thanks! On Monday, May 26, 2014 5:03:25 PM UTC-4, Steven G. Johnson wrote: The text/plain hack you implemented is definitely wrong, and will cause problems if the writemime function is used in any other context. You need to decide what MIME type the vector of images will be. The

Re: [julia-users] Optimizing a Treap implementation

2014-05-12 Thread Yuri Vishnevsky
UTC-4, Yuri Vishnevsky wrote: I don't know if I'm interpreting the output correctly, but if you look at at the output from the following it seems that both t and index are interpreted to be of type Any. t = MinTreap{Int}(); add!(t, 50) @code_typed t.root[1] On Sunday, May 11, 2014 8:27

Re: [julia-users] Optimizing a Treap implementation

2014-05-12 Thread Yuri Vishnevsky
, that is like 30 bytes per op so its probably not actually allocating memory in the malloc() sense. And the memory usage when you are growing it seems proportional too. How does code_llvm look? On Monday, May 12, 2014 10:12:47 AM UTC-4, Yuri Vishnevsky wrote: So I just implemented a version

[julia-users] Optimizing a Treap implementation

2014-05-11 Thread Yuri Vishnevsky
I'm working on a Julia implementation of a Treap, a data structure that maintains a sorted collection of elements and allows insertion, deletion, and random access in O(log n) time (http://en.wikipedia.org/wiki/Treap). So far I've implemented the basic functions, but performance is far slower

Re: [julia-users] Optimizing a Treap implementation

2014-05-11 Thread Yuri Vishnevsky
. — John On May 11, 2014, at 4:32 PM, Yuri Vishnevsky yuri...@gmail.comjavascript: wrote: I'm working on a Julia implementation of a Treap, a data structure that maintains a sorted collection of elements and allows insertion, deletion, and random access in O(log n) time (http

Re: [julia-users] Optimizing a Treap implementation

2014-05-11 Thread Yuri Vishnevsky
it is allocating any memory... On Sunday, May 11, 2014 7:59:42 PM UTC-4, Yuri Vishnevsky wrote: Oddly, that makes it *slower*... julia benchmark(100) Timing 100 insert operations. elapsed time: 11.637004929 seconds (1324768744 bytes allocated) Timing 100 random access operations

Re: [julia-users] Optimizing a Treap implementation

2014-05-11 Thread Yuri Vishnevsky
Done: https://github.com/JuliaLang/julia/issues/6813 On Sunday, May 11, 2014 8:52:09 PM UTC-4, Iain Dunning wrote: Wow, yeah! It sure looks like that. Can you file an issue with this information? On Sunday, May 11, 2014 8:38:37 PM UTC-4, Yuri Vishnevsky wrote: I don't know if I'm