Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
emidln
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
631.
▲
by
emidln
11y ago
Why would you do that in a doc-string? If you just `declare` the types with `declare` instead of putting them in the docstring, the compiler can also take advantage of them. Then the system can automatically tell you that information back.
632.
▲
by
emidln
11y ago
I do this as well. This helps get the API right very easy on. When building services for my work, we've paired this with Swagger (using Compojure-API in Clojure) to get clickable API consoles. The end result is fast iteration on an api
633.
▲
by
emidln
11y ago
I'd prefer Android on my Chromebook Pixel (assuming for a second that I didn't just install Arch Linux on it) instead of having Chrome OS. I'd take a working Skype + Browser over just a Browser. There aren't any webapps
634.
▲
by
emidln
11y ago
It seems to work reasonably well in a terminal, but I found myself wanting to use some features that weren't supported in the terminal. The biggest reason for me to use tmux + vim was vim-slime for editing+repl environment, which basic
635.
▲
by
emidln
11y ago
It's probably not even that hard to embed the CPython interpreter into tmux and allow extensions written in python. If you just wanted to write python extension modules, embedding Python and then wrapping the tmux api with Python using
636.
▲
by
emidln
11y ago
Err, what? Maybe you mean that an arbitrary distinction between statements and expressions makes the language trickier to learn than it otherwise might be. But once you have that distinction, print being a function vs a statement isn't
637.
▲
by
emidln
11y ago
Maybe they don't, but maybe they do. How many of those jobs wouldn't exist with access to a more talented team? As an analogy, I don't require a phone to communicate with my mother, but if I didn't have the faster method
638.
▲
by
emidln
11y ago
You only need 2 people for backyard whiffle ball. I played 1 v 1 a lot because even if you joined several baseball teams, that could only get you 2-3 hours of baseball a day anytime except Saturday. 1v1 baseball generally required more work
639.
▲
by
emidln
11y ago
There is significantly less risk in selling the information than using the information.
640.
▲
by
emidln
11y ago
How is that any different than an employer forcing their laptops provided to employees through a VPN (where the user is subject to inspection/blacklist/whitelist/etc) all the time? In both situations you have a machine provid
641.
▲
by
emidln
11y ago
Services that don't require email for functionality shouldn't require email addresses at all. An excellent example of this is reddit.
642.
▲
ADTs in Typed Racket with macros
(lexi-lambda.github.io)
3 points
by
emidln
11y ago
|
0 comments
643.
▲
by
emidln
11y ago
What are macros if not custom compiler extensions? Sure, Shen is enough of a compiler extension to be its own language, but I can call Common Lisp code from Shen and call Shen code from Common Lisp. Doing either isn't very different fr
644.
▲
by
emidln
11y ago
Nobody told Dr. Tarver[1]. He built a series of lisps with tight integration with the underlying Common Lisp platform featuring a strong typing system rooted in the propositions of Sequent Calculus[2][3]. Type delcarations are only on top l
645.
▲
by
emidln
11y ago
Are we counting the code my macros produce? As far as git is concerned I might be down a couple hundred to a couple thousand in a good week, but if we count macroexpansion, I'm rolling in the LoC.
646.
▲
by
emidln
11y ago
evil is the best vim outside of vim.
647.
▲
by
emidln
11y ago
You can use it like korma if you want (it has a higher level dsl (but with functions that all return a map)) ala: (require '[honeysql.helpers :as sql]) (def query-map (-> (sql/select :*) (s
648.
▲
by
emidln
11y ago
I built a system on top of yesql* and eventually threw most of it away because it was a lot more trouble than composing queries with honeysql. I prefer honeysql to yesql for the same reason I prefer hiccup to enlive. It's just easier t
649.
▲
by
emidln
11y ago
I was poking at the non-standard portion. Lowering barrier to development of plugins, patches, etc is fine, but being standard doesn't help or hinder that. Popularity and ease of introduction help that. Javascript (that is, the dialect
650.
▲
by
emidln
11y ago
> It worked like HTML, but was nonstandard. Being nonstandard is completely irrelevant here. Firefox's UI doesn't need to be rendered by Internet Explorer or Google Chrome.
651.
▲
by
emidln
11y ago
If you use codemirror for the editing portion, you can use https://github.com/achengs/subpar to provide a subset of paredit in the browser.
652.
▲
by
emidln
11y ago
There's a clojure/clojurescript library for interactive drawing (layered over Processing and ProcessingJS)[1] and at least one commercial product[2] that I'm aware of. Picking unique names across languages/platforms/
653.
▲
by
emidln
11y ago
I suspect you might have encountered the SPEC if you opened the README of the ring project or visited its github page (which displays the README by default). It's mentioned and linked in that README: From https://github.com&
654.
▲
by
emidln
11y ago
The author seems to have missed the Ring Spec [1]. It provides a complete breakdown of what is in a ring response and a ring request for the core spec. The middleware (at least those that ship with ring) are all documented in docstrings exp
655.
▲
by
emidln
11y ago
Hiccup is different than HTML templates. Hiccup is trivially composable because it's a library based around native data structures. If you want something your designers don't have to think about, Enlive (uses HTML as templates and
656.
▲
by
emidln
11y ago
Code completion, refactoring aids, linting, and whole program analysis also exist in dynamic languages. Take a look at emacs with anaconda-mode for python or cider for clojure. IntelliJ in the forms of Cursive and PyCharm (or the Python IDE
657.
▲
by
emidln
11y ago
kinda. The dispatch is on a single value and isa? isn't mapped over that single value if it happens to be a collection. This means you can dispatch on multiple concrete values in a collection or the isa? hierarchies of a single thing,
658.
▲
by
emidln
11y ago
multi-methods at least are isa?-based. This implies that they obey ad-hoc hierarchies created via derive as well as traditional java inheritance hierarchies. protocols are little more than open-ended interfaces (i.e. I can extend them at ru
659.
▲
by
emidln
11y ago
The TrustedBSD features are used by appliance vendors who base their product on FreeBSD. Applicances have very narrow profiles of acceptable use and thus it's actually sane to develop policies for them.
660.
▲
by
emidln
11y ago
Curiosity | Chicago, USA | ONSITE, FULL-TIME | https://curiosity.com | Frontend Developer We build web and native apps that millions of people all over the world use every day to get smarter. We’re looking for a driven front-end
More ›