Re: [julia-users] What is Julia bad for - currently? Practically (or theoretically) - any other language more powerful?

2014-12-04 Thread Páll Haraldsson
On Thursday, December 4, 2014 7:21:21 PM UTC, Isaiah wrote: Please: consider the advice given on the issue tracker and try to ask a small number of specific questions. Also, please search the issue tracker and mailing list (e.g., the question about assembly language has been discussed

Re: [julia-users] Re: What is Julia bad for - currently? Practically (or theoretically) - any other language more powerful?

2014-12-05 Thread Páll Haraldsson
On Friday, December 5, 2014 1:11:12 AM UTC, ivo welch wrote: there are no good web development language environments (server, browser) IMHO, and julia will not fit this bill, either. You are forgetting PHP :) All joking aside, you got me intrigued. If there is no good language, then

Re: [julia-users] What is Julia bad for - currently? Practically (or theoretically) - any other language more powerful?

2014-12-05 Thread Páll Haraldsson
On Friday, December 5, 2014 11:34:46 AM UTC, Tamas Papp wrote: On Fri, Dec 05 2014, Páll Haraldsson pall.ha...@gmail.com javascript: wrote: On Friday, December 5, 2014 8:54:26 AM UTC, Tamas Papp wrote: I find your aversion to femtolisp difficult to understand, probably because

Re: [julia-users] What is Julia bad for - currently? Practically (or theoretically) - any other language more powerful?

2014-12-05 Thread Páll Haraldsson
, December 05, 2014 06:00:31 AM Páll Haraldsson wrote: On Friday, December 5, 2014 11:34:46 AM UTC, Tamas Papp wrote: On Fri, Dec 05 2014, Páll Haraldsson pall.ha...@gmail.com javascript: wrote: On Friday, December 5, 2014 8:54:26 AM UTC, Tamas Papp wrote: I find your aversion

Re: [julia-users] What is Julia bad for - currently? Practically (or theoretically) - any other language more powerful?

2014-12-05 Thread Páll Haraldsson
On Friday, December 5, 2014 4:58:44 PM UTC, Mike Innes wrote: I suspect Tim's idea was to help out by closing issues, not by opening them. I guess :) I took a look and there were pages of issues (including the PhD one.. :) You seem to have succeeded in making an awesome language. I'm

[julia-users] Re: How should one think about cost of multiple dispatch?

2014-12-05 Thread Páll Haraldsson
On Friday, December 5, 2014 5:25:18 PM UTC, Steven G. Johnson wrote: There is no runtime overhead in cases where the types are known at compile time. Be aware of one thing, say you define: f(x, y) = 1 + 2p(x)y; p(x) = 2x^2 + 1; You will get the same code even as if you defined p first.

Re: [julia-users] Re: Can Julia be the next web scripting language?

2014-12-18 Thread Páll Haraldsson
On Thursday, December 18, 2014 10:59:53 AM UTC, Jerzy Głowacki wrote: I suppose Julia would be the successor to JavaScript if it was converted by Emscripten and run by asm.js. But for now there seems to be an Enscripten bug which invalidates Julia IR code. Hi, Curious, what bug is that?

Re: [julia-users] Julia modifies variable outside of function when operating on different variable inside of function

2014-12-26 Thread Páll Haraldsson
I wander if the convention should have been made the other way as not all will know it at first.. If you do not want your arguments touched then you can trivially make a non-mutating wrapper using the similar function. It seems that could have been automated.. Maybe you can with a macro?

[julia-users] Julia for large scale software development

2014-12-26 Thread Páll Haraldsson
I mentioned Julia as a good alternative to Ceylon language in their forum (for linear algebra). First of all, I assume you could call Ceylon (in theory at least, or vice versa, I don't know to much about Ceylon). And second, I'm not sure I agree with the responses I got. It seems they (or I?)

Re: [julia-users] Julia for large scale software development

2014-12-26 Thread Páll Haraldsson
on the ceylon list about some of the factual claims about Julia. On Fri, Dec 26, 2014 at 4:41 PM, Páll Haraldsson pall.ha...@gmail.com javascript: wrote: I mentioned Julia as a good alternative to Ceylon language in their forum (for linear algebra). First of all, I assume you could call Ceylon

[julia-users] Using Julia with other (GC) languages

2014-12-26 Thread Páll Haraldsson
I know you can call C from Julia and therefore most other (non-GC) languages. And with embedding, vice versa. Of course you always can call other languages, say with RPC etc. but wander what the limitations are to call directly. It seems to me you can call C because it is not a

Re: [julia-users] Julia for large scale software development

2014-12-26 Thread Páll Haraldsson
-5, Páll Haraldsson wrote: Maybe I should just put my blinders on, just not look at other languages more. I'm pretty convinced all the others I know are obsolete (for new code).. I just might be missing something with the newer languages. Julia is wonderful and in my top 3 favorite

[julia-users] Re: Decimal data type and information hiding

2014-12-29 Thread Páll Haraldsson
On Thursday, December 25, 2014 12:20:48 PM UTC, Páll Haraldsson wrote: Hi, This is my first useful Julia code so far. I should have probably started with wrapping C-code for Decimal floating point. I'm a little conflicted, I see that SymPi.jl doesn't wrap all of the Python code and I

[julia-users] Re: Sort performance depends on Array type in a strange way

2015-01-09 Thread Páll Haraldsson
Hi, This is my first answer here, I'm not an expert on Julia.. Seems tuple is slow. It's more general, On my machine this beats Python: function sort_Pair() gc(); @time temp = rand(500_000) gc(); @time temp2 = [Pair(temp[i],i) for i=1:length(temp)] gc(); @time sort!(temp2);

[julia-users] BootToJulia: Julia as a unikernel and/or porting Julia to other OSes

2015-01-13 Thread Páll Haraldsson
Hi, A. Looking into unikernels: http://www.techrepublic.com/article/unikernels-offer-a-stripped-down-alternative-to-linux/ Unikernels run on hypervisors. OpenMirage, HaLVM, and LING unikernels are combined with Xen virtual machines (VMs) [..] OCaml https://ocaml.org, Haskell

[julia-users] Re: Running octave scrips from julia

2015-02-10 Thread Páll Haraldsson
Since it should be possible to call any Python module, I'm not sure there is much benefit to be able to call Octave directly. Except maybe: There is a way to call MATLAB directly (and back) that doesn't involve Python (I think). I haven't looked too much into it as I do not have to do this

Re: [julia-users] Int and Float

2015-02-10 Thread Páll Haraldsson
On Monday, February 9, 2015 at 10:22:52 PM UTC, Jiahao Chen wrote: It would be somewhat overkill to define foo(maxiter::Integer) as Julia will generate not only the method foo(::Int), but also foo(::Int8), foo(::BigInt) and so on for each subtype of Integer. Is this for sure true? I

[julia-users] Is Julia a safe language? Including exception handling?

2015-01-04 Thread Páll Haraldsson
Hi, First, for the intended users of Julia (and lots more), it seems to me exception handling is the way to go. You would much rather have your program stop with unhandled exception than the alternative, unchecked return code (as in C), and get wrong answers. I've been thinking about how you

[julia-users] Improved help system

2015-01-07 Thread Páll Haraldsson
Hi, 1. If I do: help? String that works (except see below) and: but: help? @simd Symbol not found. Falling back on apropos search ... No help information found. I know this is defined (including in 0.3). I'm thinking sometimes I see in code say, @inbounds, or something and I wander what it

Re: [julia-users] Is Julia a safe language? Including exception handling?

2015-01-07 Thread Páll Haraldsson
are disabled. Anything else you can think of? For me, BLAS, Fortran calling etc. being out could potentially be ok.. -- Palli. On Sunday, January 4, 2015 2:59:38 PM UTC, Tamas Papp wrote: On Sun, Jan 04 2015, Páll Haraldsson pall.ha...@gmail.com javascript: wrote: Another issue I saw

[julia-users] Re: How do you change the default location for package installation in Windows?

2015-01-07 Thread Páll Haraldsson
On Thursday, November 7, 2013 12:20:54 AM UTC, Dave Ramsey wrote: Hi, Newbie question here. I am using Julia v0.2-rc2 on a 32 bit Windows 7 machine. I wish to change the default location of my installed packages (i.e. the location of my .julia folder). There doesn't appear to be

Re: [julia-users] Re: Decimal data type and information hiding

2015-01-08 Thread Páll Haraldsson
for implementing a basic numeric type, you might want to peruse the FixedPointNumbers.jl source code (https://github.com/JeffBezanson/FixedPointNumbers.jl) and work from that. On Mon Dec 29 2014 at 8:57:46 AM Páll Haraldsson pall.ha...@gmail.com javascript: wrote: On Thursday, December 25, 2014 12:20

[julia-users] FUI: Go and GXUI cross platform GUI

2015-03-23 Thread Páll Haraldsson
Just out of curiosity, could Julia support GXUI? That is, can Julia (already) call Go that it is written in? https://news.ycombinator.com/item?id=9228099 Since GXUI is from Google, I assume they support Android. And since cross platform at least Windows. Would be great if this helped somehow

[julia-users] Re: Getting people to switch to Julia - tales of no(?) success

2015-03-04 Thread Páll Haraldsson
On Wednesday, March 4, 2015 at 2:20:38 PM UTC, Iain Dunning wrote: I guess I (or rather, we) have had disproportional success recruiting new Julia users. You may have one more user.. [your competion] either proprietary or slow I forget the name of the package our professor used but yes, it

Re: [julia-users] Re: Getting people to switch to Julia - tales of no(?) success

2015-03-05 Thread Páll Haraldsson
On Wednesday, March 4, 2015 at 4:52:43 PM UTC, Tamas Papp wrote: Even outside stats, Julia is a moving target, with nontrivial changes in syntax and semantics in the core language, and large changes in library code. I'm getting some mixed signals on this.. [regarding the core language].

[julia-users] Re: Getting people to switch to Julia - tales of no(?) success

2015-03-05 Thread Páll Haraldsson
On Thursday, March 5, 2015 at 2:52:06 PM UTC, Daniel Carrera wrote: On Wednesday, 4 March 2015 14:19:39 UTC+1, Páll Haraldsson wrote: 2. A friend, [..] Says MATLAB is standard in the scientific world, what you use when publishing articles.. Also isn't really too unsatisfied

[julia-users] Getting people to switch to Julia - tales of no(?) success

2015-03-04 Thread Páll Haraldsson
Hi, Have you guys tried to influence others to use Julia, and failed, for research or teaching and/or production? What has been your best argument(s) (or the most difficult counter-argument)? Do people just have to discover Julia at their own pace? Note, I have convinced myself, *I* would

[julia-users] Re: Online Database + IDE for Julia

2015-03-27 Thread Páll Haraldsson
[I just want to say good luck with your system and it seems it would be useful. Still, I do not think Julia's success depends on it. It would only help it to be that much more powerful than other languages. Maybe it would also work with other languages?] What you say is also my feeling (and

[julia-users] Out-of-memory errors

2015-04-30 Thread Páll Haraldsson
In 0.3.5. julia @time sum(rand(1)) ERROR: MemoryError() in rand at random.jl:123 julia gc() julia @time sum(rand(1)) elapsed time: 4.127246913 seconds (80168 bytes allocated, 0.83% gc time) 4.999858681707974e7 julia gc() julia @time sum(rand(10)) # ten time more,

[julia-users] Re: .jl to .exe

2015-04-30 Thread Páll Haraldsson
[People answered literally.] As answered, cross-compile no, but is it really a problem? You would just install Julia on Windows (and Mac OS X, etc.) and compile from there. I assume it's possible in this indirect way to cross-compile in any direction. I assume the script works on all platforms

[julia-users] Performance variability - can we expect Julia to be the fastest (best) language?

2015-04-30 Thread Páll Haraldsson
Hi, [As a best language is subjective, I'll put that aside for a moment.] Part I. The goal, as I understand, for Julia is at least within a factor of two of C and already matching it mostly and long term beating that (and C++). [What other goals are there? How about 0.4 now or even 1.0..?]

Re: [julia-users] Re: Performance variability - can we expect Julia to be the fastest (best) language?

2015-05-02 Thread Páll Haraldsson
2015-05-01 16:42 GMT+00:00 Steven G. Johnson stevenj@gmail.com: In Julia, Ruby, Java, Go, and many other languages, concatenation allocates a new string and hence building a string by repeated concatenation is O(n^2). That doesn't mean that those other languages lose on string

Re: [julia-users] Re: Performance variability - can we expect Julia to be the fastest (best) language?

2015-04-30 Thread Páll Haraldsson
as I know, Python interpret does some mysterious optimizations. For example `(x**2)**2` is 100x faster than `x**4`. On Thursday, April 30, 2015 at 9:58:35 PM UTC+2, Páll Haraldsson wrote: Hi, [As a best language is subjective, I'll put that aside for a moment.] Part I. The goal, as I

Re: [julia-users] Re: Performance variability - can we expect Julia to be the fastest (best) language?

2015-04-30 Thread Páll Haraldsson
also like to know why poorly written Julia code sometimes performs worse than similar python code, especially when tuples are involved. Did you say it was fixed? On Thursday, April 30, 2015 at 9:58:35 PM UTC+2, Páll Haraldsson wrote: Hi, [As a best language is subjective, I'll put that aside

[julia-users] Re: [ANN] DecFP.jl - decimal floating-point math

2015-04-30 Thread Páll Haraldsson
[Thanks for this addition..! I've been putting this off as I didn't really need this personally. Just Wrapped PyDecimal as an exercise..] As far as I know, numbers in JSON are defined to be binary floating point.. (as that is what JavaScript only has) but allowed to be taken otherwise or

[julia-users] Re: [ANN] DecFP.jl - decimal floating-point math

2015-04-30 Thread Páll Haraldsson
In general, you should be able to use the DecFP types in any context where you would have used binary floating-point types: arrays, complex arithmetic, and linear algebra should all work, for the most part. Way better than what I was going for - I thought only +, -, *, / was needed and maybe

[julia-users] Re: [ANN] DecFP.jl - decimal floating-point math

2015-04-30 Thread Páll Haraldsson
On Thursday, April 30, 2015 at 11:56:28 PM UTC, Páll Haraldsson wrote: In general, you should be able to use the DecFP types in any context where you would have used binary floating-point types: arrays, complex arithmetic, and linear algebra should all work, for the most part. Way better

[julia-users] Re: .jl to .exe

2015-04-30 Thread Páll Haraldsson
A Windows license - I assume you could use Wine. I wasn't clear for those who do not know Wine. It's a way to not have to have a Windows license. It helps you run Windows software on Linux (and Mac OS X I think). It can't handle all software. I think it should handle Julia (didn't check).

[julia-users] Re: [ANN] DecFP.jl - decimal floating-point math

2015-04-30 Thread Páll Haraldsson
, April 30, 2015 at 11:56:28 PM UTC, Páll Haraldsson wrote: In general, you should be able to use the DecFP types in any context where you would have used binary floating-point types: arrays, complex arithmetic, and linear algebra should all work, for the most part. Way better than what I

Re: [julia-users] Re: Performance variability - can we expect Julia to be the fastest (best) language?

2015-04-30 Thread Páll Haraldsson
... Python will win on string processing... esp. with Python 3... I quickly ran into things that were 800x faster in Python... (I hope to help change that though!) Scott On Thursday, April 30, 2015 at 6:01:45 PM UTC-4, Páll Haraldsson wrote: I wouldn't expect a difference in Julia for code like

Re: [julia-users] Re: Julia and Microsoft Visual Studio

2015-05-09 Thread Páll Haraldsson
On Monday, December 1, 2014 at 7:39:20 PM UTC, David Anthoff wrote: The Python Tools for Visual Studio are developed by MS, but are completely open source, so I guess one might be able to get all the info on how to develop a new language plugin for VS from that code. I'm NOT saying we

Re: [julia-users] Re: Performance variability - can we expect Julia to be the fastest (best) language?

2015-05-09 Thread Páll Haraldsson
On Friday, May 1, 2015 at 5:23:40 PM UTC, Steven G. Johnson wrote: On Friday, May 1, 2015 at 1:12:00 PM UTC-4, Steven Sagaert wrote: That wasn't what I was saying. I like the philosophy behind julia. But in practice (as of now) even in julia you still have to code in a certain style if

[julia-users] Why does language X beat Julia?

2015-05-15 Thread Páll Haraldsson
Do I need to be worried? My guess is 0.4 might be faster and maybe already be faster in all the cases below (do you know?): From: http://julialang.org/ mandel: Julia 0.87 Lua 0.71 Java 0.68 [Interesting that all beat C (I guess C *could* match all languages..).] fib (doubly recursive) Julia

Re: [julia-users] Biggest Julia program so far?

2015-05-15 Thread Páll Haraldsson
On Thursday, May 14, 2015 at 2:35:09 PM UTC, Stefan Karpinski wrote: I've seen a few proprietary code bases that are 2-3x that big, which is not huge, but pretty substantial. I suspect that not many Julia code bases have had time to grow much larger than that. I think that this is large

[julia-users] What would be a good complementary language to Julia?

2015-05-15 Thread Páll Haraldsson
To answer my own question, I think Rust might be it (for manual memory management/secure): http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html The final Rust 1.0 release is scheduled for May 15th - today. There probably will not be any official complementary language. I'm aware of PyCall

[julia-users] Documentation to 0.4 missing and more

2015-05-15 Thread Páll Haraldsson
I was going to look up pipe. In 0.3 it can't be found (I guess | can). I used to be able to go to 0.4 (a thingy in the down-left corner, that is now missing). I'm not saying pipe, etc. should be in 0.3 docs (or maybe 0.4 things clearly marked?), but shouldn't Compat.jl be there:

Re: [julia-users] Julia will always be open source

2015-05-13 Thread Páll Haraldsson
On Tuesday, May 12, 2015 at 9:03:37 AM UTC, Viral Shah wrote: I think this is a great idea. We will add our commitment to open source Julia to the website. I for one am not worried. I can at least see both sides, it's good that there is a company/consulting to point to. Playing devil's

Re: [julia-users] Suspending Garbage Collection for Performance...good idea or bad idea?

2015-05-13 Thread Páll Haraldsson
On Monday, May 11, 2015 at 10:03:20 PM UTC, Michael Louwrens wrote: I am starting to read Region-Based Memory Management for a Dynamically-Typed Language http://link.springer.com/content/pdf/10.1007/b102225.pdf#page=240 it proposes a second inference system, region inference.

Re: [julia-users] Access Windows registry from Julia?

2015-05-13 Thread Páll Haraldsson
Note it may be an optional package. It's a question what version of Windows you/Julia wants to support.. Not optional in all but Windows Server 2008 and EOLed XP (pre-SP2) that you still may want to support (or just document)? Just checked on Wikipedia: PowerShell 1.0 was released in 2006

Re: [julia-users] Biggest Julia program so far?

2015-05-13 Thread Páll Haraldsson
On Wednesday, May 13, 2015 at 4:32:01 PM UTC, Tim Holy wrote: No clue how this fares, but my lab has a code base of approximately 35k lines if you include tests. This does not include documentation, nor does it include any packages. Thanks, Anyone want to raise? :) Now, that is

[julia-users] Re: Julia Summer of Code

2015-05-17 Thread Páll Haraldsson
I saw an interesting project: https://github.com/JuliaLang/julialang.github.com/blob/master/gsoc/2015/index.md#project-simple-persistent-distributed-storage This project proposes to implement a very simple persistent storage mechanism for Julia variables so that data can be saved to and loaded

[julia-users] Re: Why does language X beat Julia?

2015-05-15 Thread Páll Haraldsson
On Friday, May 15, 2015 at 4:39:33 PM UTC, Kuba Roth wrote: Awesome answer! You answer is awesome too. I too agree bringing up these numbers have little sense, at least form the perspective of solving real world problems. Julia has much more to offer then raw speed. So if i were

[julia-users] Re: Julia Summer of Code

2015-05-19 Thread Páll Haraldsson
On Sunday, May 17, 2015 at 3:30:49 PM UTC, Páll Haraldsson wrote: I saw an interesting project: https://github.com/JuliaLang/julialang.github.com/blob/master/gsoc/2015/index.md#project-simple-persistent-distributed-storage This project proposes to implement a very simple persistent storage

[julia-users] Julia #111th most popular

2015-05-19 Thread Páll Haraldsson
[Sadly, the popularity number is not in binary.] I'm not sure I should be quoting a private e-mail in public (but doesn't seems sensitive). It basically says, going by last months jump, should hit top 100 after two months. I didn't think they where tracking Julia since it hasn't hit top 100,

Re: [julia-users] Julia #111th most popular

2015-05-19 Thread Páll Haraldsson
On Tuesday, May 19, 2015 at 4:55:22 PM UTC, Stefan Karpinski wrote: It's unclear what ranking you're referring to here. Certainly not, by most interesting language. :) The guys who rank language never do. I just want Julia to get the recognition it deserves. When it hits this list more

[julia-users] [Specification of Julia]'s GC - pointers into middle of arrays ok?

2015-06-06 Thread Páll Haraldsson
Hi, [General issue on specification [promise] in B.] A. [Are all allocations in Julia cache-line aligned (or at least 32-byte aligned, that is the common size)? I'm not asking for a specification of 32-byte aligned or whatever the size of cache-line is, but a big/ger, appropriate for speed,

[julia-users] Re: [Specification of Julia]'s GC - pointers into middle of arrays ok?

2015-06-06 Thread Páll Haraldsson
On Saturday, June 6, 2015 at 3:42:11 PM UTC, Matt Bauman wrote: You questions seem to be predominantly focused on arrays. The array layout is very nicely specified (with lots of comments) here:

[julia-users] Re: Announcement: Escher.jl - a toolkit for beautiful Web UIs in pure Julia

2015-06-09 Thread Páll Haraldsson
On Monday, June 8, 2015 at 4:23:21 PM UTC, Shashi Gowda wrote: My aim is to converge at a UI toolkit that any Julia programmer can use to create rich interactive GUIs and deploy them over the web, *within minutes*. I see, world domination for Julia is getting a lot closer.. :) A. While

[julia-users] Re: Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2015-05-29 Thread Páll Haraldsson
..): http://www.androidcentral.com/you-can-now-buy-googles-project-tango-developer-tablet-without-invite-512 Am Donnerstag, 28. Mai 2015 16:17:08 UTC+2 schrieb Páll Haraldsson: I've noticed: I guess we can announce alpha support for arm in 0.4 as well. (and the other thread on Julia on ARM

[julia-users] Re: Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2015-05-29 Thread Páll Haraldsson
for a terrific, high performance, GUI/Visualization library, which runs everywhere LLVM can spit out assembly for. Am Donnerstag, 28. Mai 2015 16:17:08 UTC+2 schrieb Páll Haraldsson: I've noticed: I guess we can announce alpha support for arm in 0.4 as well. (and the other thread

[julia-users] Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2015-05-28 Thread Páll Haraldsson
I've noticed: I guess we can announce alpha support for arm in 0.4 as well. (and the other thread on Julia on ARM). Now, Android runs on x86 (already covered, then if you have that kind of device, no need to wait for ARM support), ARM, and MIPS (actually do not know of a single device that

[julia-users] Re: Does union() imply worse performance?

2015-05-29 Thread Páll Haraldsson
I'm pretty sure yes. And it seems like a little strange thing to do.. You can use the code_native function to see the code and I did something wrong so I'm not sure I confirmed, but you could try out with and without bool (and Union). If you get lots of code then the length (longer) should be

Re: [julia-users] Re: A cheat page for Julia

2015-08-23 Thread Páll Haraldsson
Is Juno only an editor (I should try, but I haven't..) as you say. They say, environment. Should you say IDE? If/when Julia adoption doubles, wee never know - maybe the cheat sheet helped a lot..:) To me Julia is good enough (an understatement) and people just have to know about it and have the

[julia-users] Re: A cheat page for Julia

2015-08-20 Thread Páll Haraldsson
This is great! I've seen something similar, but not in a cheat sheet form this nice that I would print myself and hang on the wall (missing then hovering over or clicking that is nice) or recommend to do. Everything I can point to, book, free or not, especially for beginners or non-math people

[julia-users] Integer overflows

2015-08-12 Thread Páll Haraldsson
I've seen Julia's non-checking of integer overflows questioned (and I know the answer/performance section (and BigInt alternative, that is just slow/overkill), and recall a discussion in the forums). Just now I noticed: https://github.com/JuliaLang/julia/issues/855 [for 1.0 milestone -

[julia-users] Julia and databases abstraction (ORM/Independence mismatch)

2015-08-12 Thread Páll Haraldsson
Hi, [As a database guy, that uses SQL (PostgreSQL); and not really object relational mapping (ORM) or recommending it.. or NoSQL. Or haven't used LINQ in C# (just vaguely familiar), I wander what the best way would be in Julia to access databases.] I know about the driver situation (most

[julia-users] Re: Julia as first programming language

2015-08-12 Thread Páll Haraldsson
On Wednesday, August 5, 2015 at 5:33:59 PM UTC, David Gold wrote: I've been learning Julia as my first programming language, if I don't count the VB I learned in high school tech and the small amount of R I learned to pass STAT 201. For me, Julia has been an excellent first first

Re: [julia-users] Re: How to interrupt a loop with a keyboard keystroke

2015-11-10 Thread Páll Haraldsson
On þri 10.nóv 2015 12:03, Páll Haraldsson wrote: The only game library I know available to Julia is kind of an overkill..: https://github.com/zyedidia/SFML.jl But this is something (a wrapper for a C++ game library) they have to deal with (and much more..) and you could even let a joystick

[julia-users] Re: How to interrupt a loop with a keyboard keystroke

2015-11-10 Thread Páll Haraldsson
On Tuesday, November 10, 2015 at 10:07:17 AM UTC, Felipe Jiménez wrote: >while true > # do stuff # > if (keyboard was pressed) && (key was 'p') # for "pause" > > > Any ideas? > Hopefully I'm not complicating, something like this seems not be enough (as you could be

Re: [julia-users] help with a macro to stringize high precision floating point values

2015-11-03 Thread Páll Haraldsson
On Tuesday, November 3, 2015 at 11:14:16 AM UTC, Jeffrey Sarnoff wrote: > > where I copy/paste into julia to use her parsing algs > [I'm not sure this is against the community standards (as has been discussed).. To me this seems innocent enough, but I've been training to say "[..] Julia and its

[julia-users] Re: Challenge..: Distributing cross-platform [Julia] programs using a polyglot [not quote off-topic..]

2015-11-03 Thread Páll Haraldsson
On Friday, October 30, 2015 at 1:11:09 PM UTC, Páll Haraldsson wrote: > > > A. Now, you have either that or binaries (I haven't really checked out > that option), but wander if you could get both at the same time with a > polyglot that works with (I guess) Powershell > It

[julia-users] Re: Distribute a Julia application without exposing the cose

2015-11-03 Thread Páll Haraldsson
On Sunday, November 1, 2015 at 2:49:35 PM UTC, Lee Bates wrote: > > I'm trying to distribute an application written in Julia without exposing > the code. I've tried using build_executable, however when using a Pkg > interfacing with code written in another language (Tk, Cbc) the process > seems

[julia-users] Challenge..: Distributing cross-platform [Julia] programs using a polyglot [not quote off-topic..]

2015-10-30 Thread Páll Haraldsson
"Builds an executable that doesn't require any julia source code": [great that this is possible..] https://github.com/JuliaLang/julia/blob/master/contrib/build_executable.jl I see from: " is an LLVM cpu target to build the system image against" that, as expected, your executable will no

[julia-users] Julia license/patents possibly use "Universal Permissive License"?

2015-11-02 Thread Páll Haraldsson
First a question in the current [main] license: A. Is there some reason the MIT [Expat] license was used (other than maybe just the default for MIT people)? B. If it is just to be short and uncomplicated, the Universal Permissive License, I've just become aware of, also seems to fit the

[julia-users] Re: Does Julia really solve the two-language problem?

2015-10-18 Thread Páll Haraldsson
On Sunday, October 18, 2015 at 12:51:21 PM UTC, Sisyphuss wrote: > > The two-language problem refers to prototyping with one slow dynamic > language and rewrite it with a fast static language for the final product. > Yes, but there is one other two (or more..) language "thing" (I wouldn't call

[julia-users] Re: Julia and Object-Oriented Programming

2015-10-18 Thread Páll Haraldsson
On Sunday, October 18, 2015 at 1:15:50 PM UTC, Simon Danisch wrote: > > Besides the current flaws, > As already argued ("fully OOP", just not in the traditional way/syntax), not a flaw, just different ("composition-over-inheritance"). Don't you agree with "no flaw"? You seem, by what you

[julia-users] Re: Are (+), (*) the only ops that can use n-ary definitions?

2015-10-18 Thread Páll Haraldsson
On Tuesday, September 1, 2015 at 1:08:38 PM UTC, Jeffrey Sarnoff wrote: > > import Base:(+),(*),(-) > > julia> 2+3+4 > 9 > julia> (+){T<:Integer}(a::T,b::T,c::T) = ((a+b)+c)+1 > julia> 2+3+4 > 10 > > julia> 2-3-4 > -5 > julia> (+){T<:Integer}(a::T,b::T,c::T) = ((a-b)-c)-1 > julia> 2-3-4 > -5 > >

Re: [julia-users] Translating Julia to Javascript via LLVM and Emscripten

2015-10-08 Thread Páll Haraldsson
On Monday, September 2, 2013 at 6:54:17 PM UTC, Stefan Karpinski wrote: > > This won't work at this point for the same reasons that we can't yet > generate binaries – we use the LLVM JIT incrementally rather than compiling > a large, complete chunk of LLVM code. If it is/were possible to use

[julia-users] Re: Shared Array on remote machines?

2015-10-20 Thread Páll Haraldsson
"Shared Array on remote machines" just seemed like an oxymoron.. I didn't read though the code, if you have your machine and another remote one you can't have shared memory between (then you would need something else, non-shared/message passing). I hope that is not what you are trying to do. I

[julia-users] Re: Installing package (Cpp). Could not spawn 'make'.

2015-10-20 Thread Páll Haraldsson
On Saturday, October 17, 2015 at 3:29:32 AM UTC, Tony Kelman wrote: > > Why many packages don't support Windows? It's par for the course in > open-source development, unfortunately. I gave a talk on this at JuliaCon > in June where I discussed some of the challenges in making things work on >

[julia-users] Re: Julia vs Dylan

2015-10-11 Thread Páll Haraldsson
On Sunday, October 11, 2015 at 4:00:40 PM UTC, kesa...@gmail.com wrote: > People looking at dylan today (may be because it is mentioned whenever > multiple dispatch is discussed) may be inclined to evaluate it for > numerical programming applications and compare it with other languages in >

[julia-users] Re: FDTD 2D acoustic

2015-10-12 Thread Páll Haraldsson
On Sunday, October 11, 2015 at 10:07:30 PM UTC, Kristoffer Carlsson wrote: > > The reason for the improvements when you fixed the truncations is that > indexing with a float is deprecated > Good to know.. But I would think indexing with a float per se is slow (even in 0.3.11).. One of the

[julia-users] Re: When are @generated functions useful?

2015-10-06 Thread Páll Haraldsson
On Monday, October 5, 2015 at 7:34:43 PM UTC, Matt wrote: > > Most of the time I read Julia code with generated functions, the goal is loop > unrolling (included the > main example in the documentation >

Re: [julia-users] Function similar creates an array with NaN

2015-10-06 Thread Páll Haraldsson
On Thursday, October 1, 2015 at 2:19:39 PM UTC, Milan Bouchet-Valat wrote: > > Le jeudi 01 octobre 2015 à 07:13 -0700, Matt a écrit : > I think it depends on where the memory comes from. If it comes from a > different process, the OS will fill it with zeros for security reasons. > But

[julia-users] Re: ANN: Julia v0.4.0 released!

2015-10-09 Thread Páll Haraldsson
On Friday, October 9, 2015 at 12:20:03 PM UTC, Job van der Zwan wrote: > > Congratulations! That's a lot of changes. > Great news. > >>- A major focus of 0.5 will be further* (breaking)* improvements to >>core array functionality, as detailed in this issue >>

[julia-users] Trivia question: Quaternions (ℍ), Octonions (핆), Sedenions (핊) etc. numbers are not supported, but are the in libraries or needed? And complex, vs. in others, say MATLAB..

2015-08-28 Thread Páll Haraldsson
Mostly about math (that I do not know to well, this advanced, above complex numbers), just seems relevant to generic programming..: In e.g.: https://en.wikipedia.org/wiki/Complex_number in the template at the bottom: Real numbers and extensions: Real numbers (ℝ) Complex numbers (ℂ)

[julia-users] Re: Trivia question: Quaternions (ℍ), Octonions (핆), Sedenions (핊) etc. numbers are not supported, but are the in libraries or needed? And complex, vs. in others, say MATLAB..

2015-08-28 Thread Páll Haraldsson
the actual question is. Usually, a short, to the point, example followed with the question makes it easier to get good answers. On Friday, August 28, 2015 at 11:50:45 AM UTC+2, Páll Haraldsson wrote: Mostly about math (that I do not know to well, this advanced, above complex numbers), just seems

[julia-users] Re: Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2015-08-27 Thread Páll Haraldsson
, to collect milestones and issues that need to get resolved in order to get Julia to Android IOS ( Windows Phone). Am Donnerstag, 28. Mai 2015 16:17:08 UTC+2 schrieb Páll Haraldsson: I've noticed: I guess we can announce alpha support for arm in 0.4 as well. (and the other thread on Julia on ARM

[julia-users] Re: Protect Julia Code against reverse engineering / copying

2015-08-27 Thread Páll Haraldsson
Strictly speaking, according to Stallman himself compilers do not affect the license of binary produced by a compiler. However, the the C library, that you usually incorporate, that is GPL, it would make the whole binary GPL, if it were not for the GPL exception used. I wander what would be

[julia-users] Re: Protect Julia Code against reverse engineering / copying

2015-08-27 Thread Páll Haraldsson
I would also like to know an answer to this (that is, is my answer complete.. this would be an issue for many proprietary makers.. (and I hate for people to have excuses to not use Julia) say making games.. might be more of a deal-breaker to most, not whether Julia could actually work for

[julia-users] Re: Julia as scripting language for larger project

2015-08-27 Thread Páll Haraldsson
On Wednesday, August 26, 2015 at 4:23:29 PM UTC, Fengyang Wang wrote: Hi, I learned Julia recently, and I must say it has been incredible for scientific work. I am in love with the clean, modern syntax. Props to the developers for their tireless efforts to improve this language even

Re: [julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Páll Haraldsson
iah Norton wrote: The executable produced by that script still links against libjulia, libLLVM, etc. (possibly statically on some platforms, but they are still required). On Wed, Sep 2, 2015 at 10:41 AM, Páll Haraldsson <pall.haralds...@gmail.com <mailto:pall.haralds...@gmail.com>> wrot

Re: [julia-users] Compressing .jld files

2015-09-08 Thread Páll Haraldsson
On Thursday, November 13, 2014 at 4:25:30 AM UTC, Steven G. Johnson wrote: > > Blosc compression of HDF5 files in Julia is implemented at > https://github.com/timholy/HDF5.jl/issues/174 > > Strangely clicking this link gave me issue #173 (and I

[julia-users] Re: Trivia question: Quaternions (ℍ), Octonions (핆), Sedenions (핊) etc. numbers are not supported, but are the in libraries or needed? And complex, vs. in others, say MATLAB..

2015-09-06 Thread Páll Haraldsson
On Friday, August 28, 2015 at 10:28:39 AM UTC, Andreas Lobinger wrote: > > >> that is the right thing. I wander what MATLAB does, since all numbers(?) >> are stored as complex. 0im special cased? >> > > yes. Only real part is compared, if you need abs(a) > abs(b) or similar. > I wander, since

Re: [julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Páll Haraldsson
I didn't check. Is this from the Wikipedia page then wrong (to you not get on package with the runtime and LLVM included?): In version 0.4,[24] a standalone "executable that

[julia-users] [Concurrency] Julia with/vs. Python 3.5, Go, Erlang/Elixir

2015-09-14 Thread Páll Haraldsson
[First Julia claims good support with Python by using PyCall). As Python 3.5 was just released I wander if that still holds or needs fixing: https://www.python.org/dev/peps/pep-0492/ for concurrency (or otherwise). I know I could just check out.. but] in general I wander how appropriate Julia

[julia-users] Re: [Concurrency] Julia with/vs. Python 3.5, Go, Erlang/Elixir

2015-09-15 Thread Páll Haraldsson
es in PyCall. > On Monday, September 14, 2015 at 2:58:52 PM UTC+3, Páll Haraldsson wrote: >> >> >> [First Julia claims good support with Python by using PyCall). As Python >> 3.5 was just released I wander if that still holds or needs fixing: >> >&g

[julia-users] Re: Memory leak in function

2015-09-15 Thread Páll Haraldsson
On Friday, September 4, 2015 at 2:22:58 PM UTC, Arch Call wrote: > > Sorry, I meant allocation not leak. > Am I missing something, why is it important? The garbage collection (GC) will take care of the allocations, and if you are worried about, not the allocation, but the indirect time it takes

[julia-users] Re: What's the reason of the Success of Python?

2015-09-29 Thread Páll Haraldsson
On Tuesday, September 29, 2015 at 10:20:18 AM UTC, Tomas Lycken wrote: > > One thing Python does well, which Julia doesn't (yet) succeed in, is make > it easy to start coding from zero experience and get something that > executes "well enough" > I think, this may be a little unfair to Julia.

[julia-users] Re: UTF16String or UTF8String?

2015-09-27 Thread Páll Haraldsson
UTF-16 was earlier (strictly speaking UCS-2) and Windows adopted it (and also used elsewhere..). UTF-8 is almost in all cases better (except in East-Asian languages, but not even there, if you use, something HTML (or I guess XML..), that has has lots of ASCII for tags etc.):

  1   2   3   >