Jump to content

Talk:Julia (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Checked overflow support on all integer operations, allowed now. Reworked some more of this text that I deleted earlier.

[edit]

In Julia all data types are supported in a completely general way (not needing manifest typing, that is optional); even those commonly implemented in processors, such as integers (signed and unsigned) from 8-bit to 64-bit, defaulting to signed 32-bit or 64-bit depending on CPU architecture (and additionally 128-bit and arbitrary-precision arithmetic "BigInt", which are slower as not supported in hardware by CPUs); all common/fast floating-point types up to 64-bit/"double" (and a package bigger using the double-double arithmetic trick[1]), even decimal floating-point type (not supported in hardware by x86/ARM CPUs etc. requiring software emulation) in a package Decimals.jl. In general, all types, whether built-in or not, are treated the same, with "no abstraction penalty" (while software emulation, would necessarily slow down, when CPUs support a type if Julia wouldn't). While CPU registers bigger than 64 bits are available in CPUs, such as in x86, they are SIMD-style vector registers of many 32-bit values (or smaller), also supported in Julia at high speed (might in some cases need the @simd macro).

Complex numbers are supported by the language.

Julia uses efficient "machine integers" (e.g. modular numbers), not checking overflows (does for floating point), by default, while separate functions allow that.[2] "integer arithmetic overflow" is discussed for addition by version 1.0[3] and at JuliaCon 2014,[4] but may or may not end up being the default. The performance section of Julia's manual justifies non-checked machine integer use (that is faster), compared to saturated (that e.g. MATLAB uses), or exceptions on overflow.[5] Julia however has "checked integer conversions" in 0.4.0-rc3.[6] comp.arch (talk) 09:07, 9 December 2015‎ (UTC)[reply]

References

Criticism

[edit]

Currently the article says nothing bad about Julia. Its tone is pretty dignified --- not quite cheerleading/advocacy --- but it still reads as if Julia solves all problems with no drawbacks. Some balance would improve the article. For example, this user survey suggests some room for improvement (although a secondary source would be better). Mgnbar (talk) 19:46, 8 February 2020 (UTC)[reply]

The drawbacks of Julia are pretty obvious, they are mostly inherited from drawbacks of its paradigms and design choices. For example, there is a compile time attached to pretty much everything you do in Julia for the first time, because it's a compiled language. So the fact that we refer to ahead-of-time compilation is a big hint towards that. We could create a section and populate it with these drawbacks, however. For reference, Python doesn't have a section like that either, nor is the text particularly hinting at its disadvantages. Bruno H Vieira (talk) 14:50, 5 April 2020 (UTC)[reply]
As you say Python has no drawback section, and its pros and cons are somewhat opposite to Julia. Julia however also has an interpreter, a non-default and undocumented... --compile=min option to enable it so you can get roughly Python behavior, avoiding that "compile" overhead. Language (by default) can have only either or, and both have pros and cons. There is a third hybrid option "tiered compilation"[1] (also with pros and cons, while trying to get most of the pros minimizing the cons) in C#, not yet in Julia. comp.arch (talk)

Following up on this. The article seems to read as an advertisement right now, most egregiously/noticeably the Notable uses section. Would be great to have another editor check this. For starters, I would add a criticism section, note drawbacks in various sections, and "neutralize" the tone in several parts of the article. — Preceding unsigned comment added by 24.238.13.130 (talk) 21:22, 1 July 2020 (UTC)[reply]

Just to grab a few pieces which might be contributing to an overly positive message:
  • "While it is a general purpose language and can be used to write any application, many of its features are well-suited...", which is indeed sourced, but may still be too opinionated. Alternatives could be more in the vein of "is designed for". One of the sources here is "Out in the Open: Man Creates One Programming Language to Rule Them All", so it may be possible that finding a wider variety of sources could be beneficial here?
  • "Julia is in practice interoperable with many languages" (unsourced)
  • Lots of "also"s, or things which do not technically contribute but may cause a biased tone overall: "Julia 1.4 allowed better syntax for..." that could be replaced with a less opinionated or more specific wording.
Besides the notable users, The "Current and future platforms" section also feels a bit like an advertisement or maybe just confused. It compares Julia's JIT to other languages and even brings up the support tiers. It goes into a very high depth here, although I think we should expect more detail for a numerical language than most conventional languages. Yafwa (talk) 04:33, 5 July 2020 (UTC)[reply]
On "Julia is in practice interoperable with many languages", I believe I wrote it, and a lot of other, some you point out, so feel free to amend. Where do you draw the line with "many" (you can even use Julia from within Excel[2] but that's proprietary, and otherwise I only list no-cost solutions)? You can call to/from Python, R, C, C++, Rust, Zig, (Swift I guess), and of the top 20 language on July 2020 TIOBE index list, I only see Scratch as problematic. You can call C#[3] (while not much done), i.e. .NET and thus I believe Visual Basic .NET (wouldn't cover Classic, but I'm unsure if important or how easy to do differently). For some languages you can only (in practice, currently, as you can interoperate with any language theoretically both ways) call from Julia, e.g. now to MATLAB, Java (not back as far as I know, except with callbacks). You can call to JavaScript, meaning Node.js (could call from but that package is outdated), or use in a web browser or through WebAssembly. I've called Octave from Julia, but that was though Python. You can call all languages with a C API (i.e. without garbage collection), why I listed Zig without knowing anyone actually having done that.. You can call from Ruby[4] and more, so in some sense those are interoperable but I've not seen a package to call in the other direction. "we send an integer value from Julia to Go and back via a C shared library (written in Go)."[5] You could call to/from PHP and Perl [6] but that package to do it is outdated, only needs to be revived for Julia 1.0+, and you can still shell out and call those language, or from that way or differently (web services). comp.arch (talk) 13:47, 8 July 2020 (UTC)[reply]
Thanks for the response. I'll put the caveat that I'm relatively new to Wikipedia, so I might not be perfect on the standards. The main issue in my mind is one of sourcing/notability. There's no sourcing on that statement, and it's something of an opinionated, abstract statement on its own. So the answer to where we draw the line on "many" is that we should avoid making judgments like that outright. While it may even be true that there are quite a few languages, making that sort of judgment could be original research. I can say that I personally cannot determine from this that Julia has necessarily more than other languages; most languages have a C FFI, and in many cases bindings to other languages.
I'm thinking a wording more like the following would work: "Julia has a foreign function interface to C, with libraries available to interact with other languages[...refs]". That sentence would avoid trying to judge how practical or complete the interoperability is. And of course, if there are other reasons that might be notable, we can mention those. Is interop a priority for the Julia language, or something which makes it stand out amongst languages in the same class? If some sources have identified Julia as being particularly strong in interop, it would also be notable. Yafwa (talk) 06:31, 11 July 2020 (UTC)[reply]
I just thought "many" would be uncontroversial at the time, when I put it in. To clarify, if you can call another language at all, you can usually call C, and then indirectly to a lot of other. In theory, all (those that can be embedded). Also you can interact with a web service (or ZMQ), so that way in theory also all languages, but often not what's meant. Yes, I think it's fair to say that interop is a priority for Julia, why it has the ccall keyword (and now macro too), it is unusual (no boilerplate, for many other languages it's the opposite). At https://github.com/JuliaInterop/ you can e.g. find MathLink.jl to call proprietary Wolfram Mathematica™, and I just discovered OctCall.jl, but I was calling Octave before, through Python (not a big hoop to jump through, but without would be slightly easier). I did not know about DotNET.jl Julia [heart .NET] package. You can call Julia from D, but as I know the guy personally who made it work, I only list from people I'm not familiar with, non-Julia websites. From different people in that thread: "Julia has 0-copy numpy array interop through PyCall.jl if that's what you're asking."[7] "There are only 2 languages with really good Python interop [..]One of them is Julia! [..] The other is Swift [..]And here is the kicker: Packages is Julia are far more interoperable than in any other eco system I have seen. Than means 10 packages in Julia can quickly do more than 50 packages in other language."[8] "Julia's `ccall` is great in terms of overhead[0], so calling Rust shared libraries is not a problem."[9]. A tutorial I found on interop and a meetup. And:
“When you see such a tweet from a renowned author about Python and Julialang interoperability then you feel good about investing time learning in #JuliaLang ”
[tweet]
"This is 100% Julia code, If you replace the first 3 lines with [those importing tensorflow and keras)], you can run the exact same code in Python. Talk about excellent interoperability!".[10]
I clicked on the tweet author's name and saw "Author of the book Hands-On #MachineLearning with #ScikitLearn, #Keras and #TensorFlow. Former PM of #YouTube video classification. Founder of telco operator." comp.arch (talk) 18:44, 14 July 2020 (UTC)[reply]


Following up on this, I still think the article reads like an advertisement, so I will be adding a cleanup template. Very Fantastic Dude (talk) 21:49, 12 March 2022 (UTC)[reply]
Very Fantastic Dude can you point at one, two (or more) issues you have with the article? I can't cleanup otherwise, or choose to disagree. That said, I'm not sure the advert template applies even if you feel it promotional, since Julia isn't a "product", in the sense of being sold for money, and the template is explained as "When to use: Add this to articles [when in] whole or part they are advertisements masquerading as articles." with a link to "Articles considered advertisements include those that are solicitations for a business, product or service, or are public relations pieces designed to promote a company or individual." Until we figure out/agree if the template applies at all, you could also move it to one section (there's a variant for sections) if you had only one in mind and/or use a different template that might apply. comp.arch (talk) 22:18, 12 March 2022 (UTC)[reply]
@Very Fantastic Dude: @Comp.arch: What do you think? I think it is time to remove this template. It has been there for 3 months and the issue has as far as I know not been very active. The only thing that I could maybe think of is moving the history section down and starting with the Language Features, because this is the section where the archievements of the language are stated (in particular the section on Notable uses). Starting with the features may set the tone of the article differently. However other sites about programming languages (eg. Python (programming language) start with the history as well. I personaly am not under the impression that this article reads like and advertisement, nor do I think that this template fits, because it does not hit any of the points in WP:PROMOTION.
Because the discussion seems to be dormant, I will be removing this template (see point 7 of WP:WTRMT). If someone does not agree with this, please feel free to put it there again and write on the talk page.
Happy editing TheFibonacciEffect (talk) 23:03, 18 June 2022 (UTC)[reply]

Moving "Notable uses" subsection to a new "Adoption" section?

[edit]

I wanted to get some input on this before I actually did this since it would be a rather large edit. I noticed that the Notable uses section is rather large and may warrant its own section. Using Rust (programming language) as a guide, I think it would be best if this subsection were to be moved to a section talking about its adoption. Moreover, I think the History section should focus on the language's history and development, not the companies that use it.

Let me know your thoughts on this potential restructuring! :) Moon motif (talk) 09:08, 21 October 2022 (UTC)[reply]

Hey just a note that I decided to go with the change after no input over a week. I also removed some parts that either did not have good sources or I felt did not fit "large companies/governments adopting Julia for their work." Also to note: while I was restructuring, I noticed that many of the sources in this section may not be the most reliable? I kept them in for now but it might be best if the source for some of these claims is not a Julia package's Github README, for example. Especially when there could be better sources to back the information. That's all I wanted to say hope you have a wonderful weekend if you're reading this :) Moon motif (talk) 10:24, 30 October 2022 (UTC)[reply]

Excessive detail/difficult readability

[edit]

In my opinion, while the facts in this article are all fairly well-sourced, the article contains way too many esoteric details that are of little use to most people. These details are often in parentheses, sometimes nested parentheses, with "e.g." and "i.e.," and that in turn makes it hard to even follow the original text. This type of writing style is unlike most other articles I have encountered on this site. Take this paragraph in the introduction:

All that this paragraph really needs to say is that there is linting and debugging support in IDEs for the language. Mentions of VS Code, the flame graph, and whatever Rebugger.jl is doing are details which should be in a section further down or omitted altogether save their citations. I am of the opinion that the entire paragraph should be removed from the intro because it does not concern the language itself, but rather third-party tools.

As far as I understand, Julia's support for compilation to binary executables is still experimental, and not really a core feature of the language - does it really deserve a paragraph in the intro?

As another example, take the list in the history section with the version numbers 1.1, 1.2, etc. Given that the 1.X is a stable version of the language, this seems like a list that could be cleaned up by simply mentioning the most important features that have been added since the 1.0 release, such as the multithreading from 1.3. Those sentences about 1.7+ being time-based releases or 1.7.3 shouldn't be there at all - aren't all patch releases "fixing some issues?" And who cares about time-based vs. feature-based? There are also multiple sentences in this section mentioning the details regarding performance improvements or things done to reduce compiler latency when it could really be boiled down to one or two sentences about how the developers have been focusing on the problem more generally.

Here's a draft of how I would write the history section, starting after the Bezanson quote and up to the sponsors subsection:


Julia 1.0 was released on 8 August 2018 with the syntax stabilized. Since then, the language has added many new features, such as composable multithreading in version 1.3, syntax for generic array indexing in 1.4, and an improved random number generator in 1.7. The releases have also gradually improved compiler latency and package loading times, i.e. the "time-to-first-plot" performance.

Three of the Julia co-creators are the recipients of the 2019 James H. Wilkinson Prize for Numerical Software "for the creation of Julia, an innovative environment for the creation of high-performance tools that enable the analysis and solution of computational science problems." Alan Edelman received the 2019 IEEE Computer Society Sidney Fernbach Award "for outstanding breakthroughs in high-performance computing, linear algebra, and computational science and for contributions to the Julia programming language."

Since 2014, the Julia community has hosted an annual conference (JuliaCon) focused on developers and users. The conferences have taken place across a number of locations including MIT and the University of Maryland, Baltimore. JuliaCon was conducted virtually from 2020 to 2022 due to the COVID-19 pandemic. The event audience has grown from a few dozen people to over 43,000 unique attendees during JuliaCon 2021. The conferences have featured keynote addresses from notable individuals such as William Kahan (the primary architect of the IEEE 754 floating-point standard) and Soumith Chintala (co-creator of PyTorch).


It's much shorter, but it's also more readable and obviates the need for the reader to wade through the details of changes made to the language which could be easily accessed in their release notes. This would of course be a major edit, so let me know your thoughts. Eulalie880 (talk) 21:36, 12 November 2022 (UTC)[reply]

I'd be happy to see these edits merged! Closed Limelike Curves (talk) 03:00, 10 November 2023 (UTC)[reply]
I agree the article doesn't really adhere to Wikipedia standards: a) often lacking independent sources, b) including content that is of questionable relevance, partially because it has not been mentioned in any independent sources, c) overly long, d) potentially overly positive, it doesn't list disadvantages/challenges of Julia. I could hardly find anything critical in the article, while there's plenty on the internet (yes potentially not super reliable sources [I haven't checked] but most of this article is just what Julia org says about Julia lang. Example criticism: https://www.reddit.com/r/Julia/comments/11ucqtz/whats_julias_biggest_weakness/, https://yuri.is/not-julia/, https://jamesmccaffrey.wordpress.com/2021/06/15/why-im-not-a-fan-of-the-julia-programming-language/ AncientWalrus (talk) 17:51, 30 January 2024 (UTC)[reply]

Reads like advertising

[edit]

What it says. Sorry, but it does. 2601:1C0:5401:2040:5CCB:C27C:F135:5733 (talk) 04:12, 5 September 2023 (UTC)[reply]

Where it can run table (compatability)

[edit]

It would be good to know on what platforms and version Julia can run on in a table, eg Windows, macOS, linux, iOS, Android, ... The table would probably need an explanation of any specific tools needed (frameworks, compilers). Also whether packaged packaged apps can be built that can be distributed (eg app store) to users without users requiring anything else to be installed.

An explanation of how features unique to each platform can be accessed would be useful. FreeFlow99 (talk) 16:55, 6 March 2024 (UTC)[reply]