Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shalabhc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
241.
▲
by
shalabhc
9y ago
'Use static code analysis tools' is missing a mention of mypy and pytype.
242.
▲
by
shalabhc
9y ago
http://howl.io A lightweight, native, extensible text editor.
243.
▲
by
shalabhc
9y ago
This is public domain, which is very generous, but apparently problematic. E.g. see comments here https://www.red-gate.com/simple-talk/opinion/geek-of-the-wee... : "If I had known as much about copyright in 20
244.
▲
by
shalabhc
9y ago
I too have done a similar search and generally failed. I found Leo too when looking for a new editor - it's great but somewhat tied to the outliner model IIRC?
245.
▲
Fuchsia's distributed storage system that is transparently synchronized
(fuchsia.googlesource.com)
4 points
by
shalabhc
9y ago
|
0 comments
246.
▲
by
shalabhc
9y ago
New release has support for Rust, Dart and Cython, among other things.
247.
▲
by
shalabhc
9y ago
Another thing, this example wouldn't type check unless it is verifiably a list of non blank strings: print [s for s in lst if s.head != '_'] The section about dependent typing says `lst.head` would be a compile time
248.
▲
by
shalabhc
9y ago
Examples on the home page have broken indentation, or just a multi-level indentation that is confusing? class Point: x y z :: Int origin = Point 0 0 0 Point x y _ = origin print 'Origin XY coords ar
249.
▲
by
shalabhc
9y ago
1 also belongs to 'all integers from 1 through 10'. Is this also a category? (I assume yes). How is this category expressed in Luna?
250.
▲
by
shalabhc
9y ago
But without giving access, how can you expect passion? :-) Let everyone check it out, the passionate ones will engage more through any channels you have (mailing lists, chat, twitter) and be easy to find, IMO.
251.
▲
by
shalabhc
9y ago
Ah - great to hear you're open sourcing it because I was a bit put off by 'sign up to be selected' form, even though the product is fascinating.
252.
▲
by
shalabhc
9y ago
pytype might work better in some cases, because it can do inference. But yes, it needs more docs.
253.
▲
by
shalabhc
9y ago
Does actordb subsume the functionality of rqlite? As in, can I tell actordb 'replicate this actor to all nodes' and then will it basically be the same as rqlite, but with page level replication?
254.
▲
by
shalabhc
9y ago
It does both. I can do some inference but definitely does type checking. Here's a Pycon talk from last year about pytype: https://youtu.be/IDm_YIQihhs
255.
▲
by
shalabhc
9y ago
There is also Google's pytype: https://github.com/google/pytype
256.
▲
by
shalabhc
9y ago
See https://youtu.be/7ZbwZgrXnwY for a talk from the mypy team. Description: https://us.pycon.org/2017/schedule/presentation/678/
257.
▲
Faster CPython – ideas and projects to speed up Python
(faster-cpython.readthedocs.io)
2 points
by
shalabhc
9y ago
|
0 comments
258.
▲
by
shalabhc
9y ago
> function f(a, b, c, d) a = a or 1 b = b or 2 c = c or 3 d = d or 4 end Compare with: f = (a=1, b=2, c=3, d=4) -> ... Also note the latter is correct when you call it as f(false).
259.
▲
by
shalabhc
9y ago
There are no potential performance hits. In particular the code generated for list comprehensions would be faster than your example because there is no extra function call per item.
260.
▲
by
shalabhc
9y ago
Thank you for Moonscript! > The biggest open source project is a web framework for Open Resty: https://github.com/leafo/lapis Looks like lapis is ~15K lines. The Howl editor has ~58K lines (including bindings and te
261.
▲
by
shalabhc
9y ago
There are a lot of features that make Moonscript much more convenient than plain Lua. Examples (try the first three in Lua): - default values for function parameters - list comprehensions [x * 2 for x in *{1, 2, 3}] - easier iterat
262.
▲
by
shalabhc
9y ago
Moonscript uses local by default (compiles to Lua). Here is your code in Moonscript: foo = { x: {1, 2, 3}, y: (a, b, c) -> sum = a + b + c sum * sum }
263.
▲
by
shalabhc
9y ago
Another Moonscript project is https://howl.io - an editor written almost entirely in Moonscript that runs on LuaJIT.
264.
▲
Human and machine aspects of typing latency (“typing lag”)
(pavelfatin.com)
1 points
by
shalabhc
9y ago
|
0 comments
265.
▲
by
shalabhc
9y ago
Good point. It's hard to highlight certain differences because it's a very different editor. In general I think Howl offers a better API and a more keyboard centric UI compared to Textadept. Most commands are operated via the comm
266.
▲
by
shalabhc
9y ago
Thank you. I believe the tests are converted to HTML by a custom Ruby script: https://github.com/howl-editor/howl/blob/master/site/bin/spe... The manual and API docs are hand written in markdow
267.
▲
by
shalabhc
9y ago
Well, LuaJIT will also JIT compile Lua code operating on C structures - so speed could be another big argument.
268.
▲
by
shalabhc
9y ago
For an editor built from the ground up using LuaJIT see https://howl.io [/plug]
269.
▲
by
shalabhc
10y ago
OMeta can also be used to define tree transformers, and may be of interest too. http://www.tinlizzie.org/ometa/
270.
▲
by
shalabhc
10y ago
Yes it's great. Interfacing with new libraries is easy with LuaJIT's FFI and implementing low level stuff works well too (e.g. something like reverse find on a string basically gets JITted to C speed).
More ›