Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
strager
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
strager
5y ago
A shell has three parts: * the command editor * the command interpreter/parser * the fork()/exec() calls I think you're talking about the fork()/exec() calls. I'm primarily talking about the command editor.
92.
▲
by
strager
5y ago
> You have the browser for such things. I think the use case of a browser and a shell is quite different. I don't know what a browser would look like if it had an easily-scrollable log like a terminal does. I think you have a good p
93.
▲
by
strager
5y ago
> I wouldn't want [oh-my-zsh's] massive code base and attack surface to be forwarded to sensitive or critical servers. I think we agree here. I said "The shell should [not be] a program running on the remote system."
94.
▲
by
strager
5y ago
This tool demonstrates that POSIX shells are at the wrong layer of the stack. The shell should be part of the user interface (e.g. the terminal emulator or console), not a program running on the remote system.
95.
▲
by
strager
5y ago
I agree. Just because T* has problems in some contexts doesn't mean optional<T&> should be used in all context.
96.
▲
by
strager
5y ago
> I wish the standard had gone with a design that forces the developer to write an explicit check when unwrapping the optional... If this is how std::optional worked, hardly anyone would use it.
97.
▲
by
strager
5y ago
I tried Roam's linter. I hit bugs with the CLI and the LSP server. I fixed and reported a few of the bugs, but eventually I gave up trying.
98.
▲
by
strager
11y ago
A two-byte fixed-point number is likely to be less expensive to deal with than a two-byte floating-point number. (Promotion and demotion cost is pretty high for small floating-point types (bit masking, shifting, oring, etc.) compared to fix
99.
▲
by
strager
12y ago
Turtle shell.
100.
▲
by
strager
12y ago
I'd love to know what license this will be released under.
101.
▲
by
strager
12y ago
http://facebook.github.io/react/docs/examples.html
102.
▲
by
strager
12y ago
The train makes many more stops.
103.
▲
by
strager
12y ago
It's a wiki. You are free to add this information. =]
104.
▲
by
strager
13y ago
So every time I add an import or #include, I need to update the dep graph manually? That may work for larger teams, but that would seriously hurt productivity for smaller projects. I think the main issue with approaches like yours is that
105.
▲
by
strager
13y ago
I don't see how this relates to the problems posted in the article. How does the lack of Proxy make the behaviour less confusing? Where does the author mention asynchronous behaviour and JavaScript's run loop?
106.
▲
by
strager
13y ago
In Haskell, I often suffix lists with 's' or 'es': f (x:xs) = ... g args = ... I also often prefix 'Maybe' types with 'm': mValue <- gets (Map.lookup key)
107.
▲
by
strager
13y ago
Apply reverse, tail, etc. on the result of 'map' and you get something of the same type. Types don't tell all.
108.
▲
by
strager
13y ago
Internet Explorer, Chrome, Firefox, or Safari.
109.
▲
by
strager
13y ago
Of course, there's Data.HashMap.HashMap[1], which is just a Data.IntMap.{Lazy,Strict}.IntMap[2], whose "implementation is based on big-endian patricia trees". > Many operations have a worst-case complexity of O(min(n,W)).
110.
▲
by
strager
13y ago
Have you tried precompiling with -O2? IIRC runhaskell runs code like GHCi: interpreted bytecode by default (for source .hs files).
111.
▲
by
strager
13y ago
GHC (a Haskell compiler) can defer type errors until runtime: http://ghc.haskell.org/trac/ghc/wiki/DeferErrorsToRuntime http://www.haskell.org/ghc/docs/7.6.1/html/users_gui
112.
▲
by
strager
13y ago
Why so much code? A closure is shorter and simpler. https://gist.github.com/strager/6107955
113.
▲
by
strager
13y ago
Error objects have stack traces in modern engines, which is very helpful for debugging. Strings do not.
114.
▲
by
strager
13y ago
Magento and HipHop/HPHP/HHVM, at least.
115.
▲
by
strager
13y ago
I work at Facebook. We use Facebook groups heavily for company announcements, discussions, funny posts, help and support, feedback and feedback requests, etc. We use Phabricator for code reviews and other software engineering tasks. Of co
116.
▲
by
strager
13y ago
What's wrong with: void Foo<T>(Func<Int, String, T> makeT) where T : IIface { T myT = makeT(10, "hi"); // ... } Foo((x, y) => new MyClass(x, y)); In patternese, this
117.
▲
by
strager
13y ago
Some lexing languages (e.g. Alex[1]) use regexp for matching tokens. [1] http://www.haskell.org/alex/doc/html/regexps.html
118.
▲
by
strager
13y ago
> You're simply never going to replicate that inside your browser. Why not?
119.
▲
by
strager
14y ago
[SPOILERS] I got tripped up by question #5 of one of the expert quizzes [1] due to a difference between ActionScript 3 and JavaScript [2]. In AS3, `(a).b` is equivalent to JS's `(null, a).b`. That is, the `this` binding is lost in AS3 (but
120.
▲
by
strager
14y ago
I prefer links away from 'apps' like this site to open in a new window or tab. I'd like the app to preserve its state, not replace itself.
More ›