Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OvermindDL1
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
31.
▲
by
OvermindDL1
7y ago
Honestly when I look to rewriting a python thing to be 'faster' either try using PyPy first, or rewrite it in OCaml instead. OCaml is extremely simple, similar to python in a lot of ways (GIL and all), but runs at native code spe
32.
▲
by
OvermindDL1
7y ago
> AFAIK, you're relegated to rather primitive "println debugging" with Elixir - has this been an issue for you in practice? Not at all. The traditional BEAM way of debugging is the tracing modules. For little things an `
33.
▲
by
OvermindDL1
7y ago
Wait, doesn't the certbot DNS challenge query the nameservers of the domain being checked, not your local DNS resolver, otherwise my fast DNS challenges should fail?
34.
▲
by
OvermindDL1
8y ago
Not in the United States it's not at least. Even just the recent net neutrality pubic votes don't match what was done in the slightest. The USA is an oligarchy through and through.
35.
▲
by
OvermindDL1
8y ago
Yep, the privacy and sending specific things to specific circles and all was spot-on in G+. Or even specific people, groups, even non-G+ emails.
36.
▲
by
OvermindDL1
8y ago
Elixir defines its parts as either 'Language Syntax', 'Special Forms', 'Kernel', 'Standard Library', and of course user code. Things like a function call is language syntax. You cannot replace langua
37.
▲
by
OvermindDL1
8y ago
This is precisely how I think as well, some declaration like `let` or `var` or so to say "This is a new binding"
38.
▲
by
OvermindDL1
8y ago
`|>` would replace the great majority of need for multi-staged named variables. In addition, naming variables like that in Erlang is a mis-design, the names should be more descriptive.
39.
▲
by
OvermindDL1
8y ago
Oh yes! Elchemy! How'd I forget about that one (I keep pushing it around!)! ^.^; It is based on Elm so it has a severely limited type system but it is the most complete on Elixir so far. :-)
40.
▲
by
OvermindDL1
8y ago
Eh, as far as I know I'm the only one doing that, and even then only as an experiment/playground, and I don't have the time to work on it lately (have to pay the bills after all). It's not compiling to elixir, but the `a
41.
▲
by
OvermindDL1
8y ago
It's unnecessary in the 'erlang' ecosystem because erlang doesn't have variable rebinding, Elixir 'does' have variable rebinding so it needs some way to distinguish between rebinding and matching, and it was de
42.
▲
by
OvermindDL1
8y ago
It still doesn't do the same thing as the erlang code as the elixir example is being run at the staged compile-time instead of run-time like elixir's would be though. And a superfluous `ok` atom is being returned from the erlang
43.
▲
by
OvermindDL1
8y ago
Entirely subjective yes! ^.^ However what you show is not focusing on syntax differences but rather function differences, even `|>` is an (macro) operator. By syntax I'm talking about things like the `do`/`end` and `fn`/
44.
▲
by
OvermindDL1
8y ago
Entirely agreed. Elixir's Macro's are awesome, and Erlang could definitely use an Elixir-Macro-Like Parse Transform library (could definitely exist), Erlang's syntax I find far more readable, consistent, and logical as well.
45.
▲
by
OvermindDL1
8y ago
Remote nodes have overhead, however if you can handle that overhead then you definitely should use a remote node or Port over a NIF. However, NIF's taking a long time to run is not so much of an issue anymore now that the dirty NIF sc
46.
▲
by
OvermindDL1
8y ago
They don't mean immutable as in language form, but immutable packaging system is the general form where you can add but not remove packages to it so as to not break things, which is the common form among most maven/cargo/hunt
47.
▲
by
OvermindDL1
8y ago
Javascript itself supports destructuing fine, here's some javascript straight from the firefox console: > let a = [1,2,3] undefined > [x,y,z] = a Array(3) [ 1, 2, 3 ] > x 1 > y 2 > z
48.
▲
by
OvermindDL1
9y ago
But Elixir 'does' have early returns, they are known as `Guards` as a language construct.
49.
▲
by
OvermindDL1
9y ago
Not really any 'build' way, but the 'patterns' of it are more similar in that being immutable, functional, and single-owner languages.
50.
▲
by
OvermindDL1
9y ago
Java and C# outclass performance in raw CPU work certainly. Phoenix does not do raw CPU work however, it is primarily a web dispatcher on top of cowboy and the BEAM will run circles around both Java and C# systems if they are programmed to
51.
▲
by
OvermindDL1
9y ago
I've been working with the BEAM (via Erlang) for over a decade, and with Elixir for almost 1.5 years, and I'd still give up, well, probably my current job if I could get a fully Hindley-Milner Typed Elixir...
52.
▲
by
OvermindDL1
9y ago
Bucklescript works fantastic in the Elixir system (I have a bucklescript-tea library that maps Elm code 'almost' verbatum to Bucklescript code too). There is an ElixirScript project in current dev, still early but usable, that com
53.
▲
by
OvermindDL1
9y ago
I use it for everything from bots to interacting with and controlling Java and Python programs and a lot more. The concurrency abilities of the BEAM have a lot of applications.
54.
▲
by
OvermindDL1
9y ago
> For single a web api server Elixir is going to be far behind, performance wise, against nodejs, the JVM and Go. To some Go web api frameworks perhaps. To the JVM, not really. The frameworks I used with it in the past (spring/play
55.
▲
by
OvermindDL1
9y ago
With the Rustler Rust library, almost blissfully easy. I highly recommend it.
56.
▲
by
OvermindDL1
9y ago
For note, luerl is more of a library for erlang/elixir/BEAM and not a full language, as it is basically just lua's interpreter rewritten in erlang with some modifications to make it fit the system a bit better than normal Lua
57.
▲
by
OvermindDL1
9y ago
Actually you'd be surprised at just how fast the BEAM passes messages, especially as it also includes linking, monitoring, cross-process, cross-system, among other features. When creating a multi-thread atomic messaging system in C++
58.
▲
by
OvermindDL1
10y ago
Elixir has a little bit of Erlang in the compiler but at this point it would be fairly trivial to replace it with pure elixir, and most of the compiler is elixir already. However, Elixir does compile down to the EVM/BEAM (Erlang Virtu
59.
▲
by
OvermindDL1
10y ago
Though, to be honest, most Erlang/Elixir devs would never think of using something like ZeroMQ as Erlang has more powerful and built in alternatives, or something like the Elixir Phoenix web framework that has built in much more powerf
60.
▲
by
OvermindDL1
10y ago
It seems most of his issues stem from the language and the FFI, not necessarily the TEA style 'library' (which he claims is 'great' at the start). There is a Haskell -> JS compiler and an OCaml -> JS compiler, as
More ›