Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dualogy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
dualogy
9y ago
> I discovered Waitgroups during the project Don't know about your exact map use-case you had at hand, but generally speaking the Mutexes suffice for Lock()ing/Unlock()ing a resource that is accessed concurrently, whereas t
212.
▲
by
dualogy
9y ago
> I did not know about sync/map at the time Apparently also not about sync.Mutex =) > if you want to use an interface you just have to implement all it's properties You surely mean "methods" --- don't int
213.
▲
by
dualogy
9y ago
> I generally consider anything using interface{} crap code someone who doesn't know the language wrote, probably coming from a loosely typed language. Disagree. There's ample usage of interface{} that you need to type-switch
214.
▲
by
dualogy
9y ago
> I think that is so because Go hates circular imports. Well it could be but I don't think so --- "duck typing" when it comes to interface{}s has been a goal from early on, quite simply. The very idea of interfaces as
215.
▲
by
dualogy
9y ago
Yeah not a prob for me either, I love having all that subscribed "generally interested, but never pressing-need-to-know-right-now" simply pile up offline in my reader. Then once in a while I'm stuck somewhere offline with no
216.
▲
by
dualogy
9y ago
A little boilerplate hasn't killed anyone. If you're talking about "100s of different Enterprise Business Objects (TM) structs", something is probably off in the overall program design and/or code-gen should probabl
217.
▲
by
dualogy
9y ago
On the whole I agree that I prefer Go's explicit error returns over other languages implicit "alt-return paradigm" aka exceptions. But you're really well advised here to run a couple of linters occasionally that inform a
218.
▲
by
dualogy
9y ago
> If Go had ADTs In the process of hacking on my PureScript2Golang "transcompiler", I've realized that under the hood ADTs, also known as "tagged unions", will likely more often than not be represented exactly
219.
▲
by
dualogy
9y ago
From what I can tell VCL was simply the "pioneer" of what afterwards became "the bog standard approach" from VB to WinForms, Qt, Gtk etcpp. Essentially an OOP class hierarchy with everything inheriting a root "Compo
220.
▲
by
dualogy
9y ago
> "Since these rules govern composition at very abstract level, category theory is great at uncovering new ways of composing things." I understood this much already prior. What I'd like next now are at least a handful (h
221.
▲
by
dualogy
9y ago
For developers, information breadth and quality was excellent when I first onlined in '98, and has improved by leaps and bounds year by year. For other stuff, I agree with that OP article, that was a uniquely rich caleidoscope that got
222.
▲
by
dualogy
9y ago
I get that (although probably locale-dependent: biz people in my corner of the world rarely perceive each others as "borgs" and frankly also have little reason to =) but my musing here was more towards the inevitable pendulum swin
223.
▲
by
dualogy
9y ago
> Or, in other words, "|" in the shell is "." in Haskell (with operands reversed). Well for real power you also throw partial application and arbitrary sub-lambdas / case-switches / let-binders into this
224.
▲
by
dualogy
9y ago
> FWIW, I am an end user not a developer Well now I'm really curious about your actual software use-cases here. Because regardless of whatever "end user not dev" use-case I can think of, out of the many multiple dozens
225.
▲
by
dualogy
9y ago
And the "Team" page couldn't be more cliche-laden either.. lots of dogs and of course, "You should also know that we like dogs, office mini-golf, and breakfast burritos." WTH it's hilarious that the once-harmle
226.
▲
by
dualogy
9y ago
Agree, I always enjoyed hacking on shaders. And checking out other's shaders (and further tweaking them) is also inspiring educational and most gratifying. ShaderToy is a great site for that, but there's many more "shader com
227.
▲
by
dualogy
9y ago
"Naming things", one of the 2 hard problems in computing. In other words, not worth scratching your head over, ever. "Historical accidents" in terminology just such as this one abound all over the tech world. What you sa
228.
▲
by
dualogy
9y ago
> There's an experimental C++ back-end to PureScript now [0]. I wonder if that will ever be a viable production target? Obligatory reminder to anyone enjoying PureScript so much they want to compile it to executable binaries for t
229.
▲
by
dualogy
9y ago
Customized `hosts` file is the sanest approach to avoid extra tools for both blocking Ads and social media (incl those you don't have an account with but that still track you because they have their button/icon on nearly every ran
230.
▲
by
dualogy
9y ago
> On the other hand I've read reports that sufficiently large codebases begin to hit machine memory limits for the compiler because they have to scan and construct every possible union type in the codebase I'd be interested w
231.
▲
by
dualogy
9y ago
> looked like a combination of random punctuation. Same goes for a lot of Haskell code "A lot", not "all": yeah indeed at least you can tweak the punctuation towards more ergonomic (aka more productive) aesthetics
232.
▲
by
dualogy
9y ago
"Officially" isn't really a thing here, I feel. I mean the `purs` (formerly `psc`) compiler just gets given a list of .purs files from your build setup (pulp, custom make files, a little custom program, whatever) and recompi
233.
▲
by
dualogy
9y ago
Some truth to this possibly. This sort of concern would be addressed by the library ecosystem rather than "the language", which might not be for everyone. I mean PS arrays/records map to JS arrays/objects as far as passi
234.
▲
by
dualogy
9y ago
Just gets so visually noisy when reading code though. Maybe depends subjectively on how a given individual tries to re-conceptualize high-level ideas from low-level instructions. I actually have my Sublime/VScode color schemes set up s
235.
▲
by
dualogy
9y ago
IMHO "functional scripters" with a penchant for fewer parens, braces etc and a tendency towards ML-style should seriously embrace PureScript, it's such a terrific project, just gets way too little hype. That's not to r
236.
▲
by
dualogy
9y ago
You can http://shadertoy.com/browse by New, Popular, Hot and Love
237.
▲
by
dualogy
9y ago
That's the whole point of ShaderToy AFAIK: no geometry, all pixel magic. Whatever you see on there is entirely frag-shaders. If it looks like geometry, it's still just funky fancy formulas in image space
238.
▲
by
dualogy
9y ago
> And how do the bacteria get there? Pre-seeded during breast feeding, as happens across all mammals. How many billions of years do you want to go back on this question? > And are the bacteria killed off by the antibiotics they
239.
▲
by
dualogy
9y ago
True enough, doesn't explain his "there's another reason than the oil for the fighting" suggestion. Germany is also "a high-tech powerhouse and has over 80 million people".. =) Now readers are bound to come up
240.
▲
by
dualogy
9y ago
> There's a reason why there's so much fighting in this area. And it's not just oil. Well, do share that non-oil reason you had in mind there !
More ›