The Erlang documentation contains the documentation of modules.
Where can I find the documentation of the Erlang shell? (Which is not a module, I suppose.)
This page in the documentation seems to be a starting point. Especially the link in it. Check also the first link in it, with the shell's manpage.
I'm using Getting Started with Erlang, chapter 1.2.1. It's about the shell and brings you up to speed on usage, etc..
I think Erlang shell is also a module.
Take a look at this: Erlang shell
This might also be helpful, as well as this.
Related
Using Python in command line you can write help(function) to see docstring.
Is there something similar in Fsharp for fsi?
Do you have any tips and tricks for working in fsi anyway?
What is even possible to find out without using IDE? Just from interactive session.
EDIT:
This question is actually addressed to Python guys who know Fsharp as well. I guess MS guys relying on their VS might find my question pretty strange :)
So far it seems that my question has simple answer: NO.
EXAMPLE:
Lets say you are logged to remote computer via console. I dont know whether this is typical or even possible scenario. For some reason I started fsi and now what? Am I lost or do I have some chances to get some help from fsi directly
DISCLAMER:
I know Scott Wlaschins fsharpforfunandprofit.com pretty well. But his example is dedicated to C# users. Pythonists have different workflow.
If you are used to interactive python, and you like the approach, you may have a look at this F# engine for iPython Notebook:
https://github.com/fsprojects/IfSharp
Yes.
Simple introspection can be done by typeof <_> or typedefof<_>.
For example:
typeof<System.Console>;;
In fsi you can use TAB completation, but apperantly just from command line. It is not working in my Xamarin.
Neat trick is to run:
fsi --use:yourfile.fsx
which run your file and let you test it interactively.
For more info you can use in command line fsi.exe --help.
Is it possible to call NIF functions from an Erlang program using Erlide if so is there any tutorial,article to help me run my first example
I'm not sure what you mean. An Erlang program running under erlide is no different than any Erlang program, so calling NIFs works as usual.
If you mean that you have a C project where you develop a NIF and you want to test it, then there is no direct support. I would believe that what might be missing is configuration so that the NIF .so is found, but I haven't been writing NIFs so I'm not sure.
If you mean something else, please give a little more details. What did you try and what didn't work?
I am configuring Ideaj to open an Erlang REPL by setting it up as and external tool, however the working directory param is ignored. Is there a way once the REPL is open to switch the working directory?
Within the shell use the command cd("some/path") and it will work pretty much the same way you would expect from an ordinary shell.
This means you can move around your project directories and run c(module_name) and be in the local loading path as well -- which can be pretty convenient when hand-tweaking/testing things.
As an aside... most folks don't use an IDE with Erlang, because the shell has so much stuff already built into it, and your OS itself already has whatever other tools you usually want. I've yet to see someone start with an IDE and stick with it in Erlang (usually wind up becoming either Emacs users or go the vim + coreutils route).
Also, pwd() and ls() work as you'd expect.
Regarding IDEs- I find the Erlang Intellij plugin (http://ignatov.github.io/intellij-erlang/) very usable, and when doing more than relatively short one-offs in vim (with Erlang plugin) the code completion and Find Usages kinds of IDE functionality to be useful.
Give it a shot - YMMV.
Is there a documentation for ocropus?
I am looking for an explanation for the functions like:
make_SegmentPageByRAST():
segment()
RegionExtractor():
setPageLines()
extract()
Thank you.
A requirement of Lua API for OCRopus has been filed in the bug-tracker list of the project.
They will soon be releasing this documentation in the next beta release(expected).
First, note that you can use the command line tools without actual Lua programming.
A good place to see how to use ocroscript is to look at the test cases in
ocroscript/tests and the command line driver scripts in ocroscript/scripts.
Note: The Lua bindings follow the C++ API very closely (the binding is mostly
automatic), so C++ and Lua documentation are pretty much the same problem.
How to make release using rebar without erts included in?
A release is a self packaged erlang runtime within your application, so i think you just can't.
But you can simply give your application directory with the ebin directory in it as a release.
rebar is a good thing for managing your Erlang prjects indeed. But there are always other options which comes for Erlanf/OTP in the box. Here you can read very good tutorial about other options: http://learnyousomeerlang.com/release-is-the-word
p.s. I think it is worth knowing how the same thing could be done in other way.
Relx is very good at packaging Erlang releases with lots of options, one being what you want: {include_erts, false}.
https://github.com/erlware/relx