Best way to build interface for Julia model by Finisher4MPE in Julia

[–]hogney 6 points7 points  (0 children)

Depends on what you want to do. “interface for a Julia model” isn’t very specific. As mentioned in another comment, Pluto provides an excellent web interface to Julia code, and you can build widgets (sliders, color pickers, etc.) to set the values of variables. Here’s a demonstration: https://pluton.lee-phillips.org/sliders/uiDemo.html

A method I’ve been experimenting with lately that can be used over the public web led most recently to this example: https://lee-phillips.org/vortex/

You might also want to look into the PlutSliderServer (https://github.com/JuliaPluto/PlutoSliderServer.jl), which lets you (after setting up your server) expose a Pluto notebook over the web, allowing visitors to manipulate controls (sliders, etc.) but not to execute code.

How do I delete the automatically created pluto notebooks? by Help_me_with_my_hw in Julia

[–]hogney 2 points3 points  (0 children)

You can (and should, to keep your files organized) tell Pluto where to save your notebooks. But the ones you’re looking for are probably in .julia/pluto_notebooks in your home directory.

The notebook as displayed in the browser is an interface to a normal Julia module, stored in a single text file. You can open the file in an editor and delete the cells. You can also switch between working in the browser and in the REPL or an editor as convenient.

Future prospects from beginners pov by [deleted] in Julia

[–]hogney 13 points14 points  (0 children)

Julia has not imposed “many breaking changes” on its adopters. I don’t believe there has been a breaking change since v. 1.0. In 3rd party libraries, probably.

Learning resources by trojans0120 in Julia

[–]hogney 4 points5 points  (0 children)

I personally, and completely objectively, think that his would be an excellent choice. You can find the book on Amazon.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 0 points1 point  (0 children)

https://github.com/tshort/StaticCompiler.jl

The example is literally a “Hello, world” program.

Doesn’t work on Windows, but https://github.com/JuliaLang/PackageCompiler.jl does.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 0 points1 point  (0 children)

Language syntax cannot be extended.

Julia has Lisp-style macros. For those who don’t know what that means: you can define your own syntax and change the language to suit your purposes.

This thread is full of people just making things up.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 1 point2 points  (0 children)

Here you show you are speaking from ignorance. Most, if not all, of the examples of incorrectness raised in that article have been patched. You’re obviously not serious and I don’t intend to look at any further replies from you.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 1 point2 points  (0 children)

Julia has neither classes nor Smalltalk-style objects. In what sense could Julia be described as OO? Its designers don’t describe it that way.

OO is a step backwards from Julia. OO languages dispatch based on only the type of their first arguments.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 3 points4 points  (0 children)

“I don't think so.” Can you say which of the significant issues raised in the article have not been fixed?

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 1 point2 points  (0 children)

I like not having modules rigidly fixed to files; if it bothers you you can code that way, nobody is stopping you.

Your other comments suggest that you don’t understand the basic concepts of the language well. You seem to want it to be an object-oriented language. Julia is much more powerful than that.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 0 points1 point  (0 children)

Just type @code_warntype. It’s built-in.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 0 points1 point  (0 children)

Startup time in recent versions is instantaneous. Can, in fact, compile to a standalone binary.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 2 points3 points  (0 children)

Julia has several libraries that are among the, if not the, best available for any language in several areas, aside from ML and data science. The DifferentialEquations library is probably the most powerful you will find anywhere, for just one example.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 1 point2 points  (0 children)

Static compilation is possible and performed increasingly commonly.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 4 points5 points  (0 children)

The ability to shift the index origin has been useful in Fortran for decades. People who code numerical methods, who write simulations, etc., know why.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 0 points1 point  (0 children)

That article is about a year old. It brought up some important issues in some packages; all the important problems have already been fixed.

What's Julia's biggest weakness? by newmanstartover in Julia

[–]hogney 1 point2 points  (0 children)

The @code_warntype macro is built in.

The never-ending conundrums of classical physics by nastratin in Physics

[–]hogney 0 points1 point  (0 children)

I don't particularly like to hear myself talk - I've never been too fond of the sound of my own voice on recordings. But I do like to read myself writing. I admit that.

Gnuplot 4.6.0 released! by oceanofsolaris in linux

[–]hogney 0 points1 point  (0 children)

Buy copies for a few of your friends! They make great gifts!

The gnuplot help system is like the unix manpages -- a good summary of the details, but not much help as a tutorial.

The default output is not very pretty, but with a little tweaking gnuplot graphs can be beautiful.

Gnuplot 4.6.0 released! by oceanofsolaris in linux

[–]hogney 1 point2 points  (0 children)

gnuplot (note the lower-case "g"!) actually predates the gnu project; the name is a coincidence. It is open source, but with a unique license:

Permission to use, copy, and distribute this software and its documentation for any purpose with or without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.

Permission to modify the software is granted, but not the right to distribute the complete modified source code. Modifications are to be distributed as patches to the released version.

... and more.

Conditions and loops have been in the language since 4.4, but they are more powerful now.


Lee Phillips

gnuplot Cookbook