Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dannymi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
dannymi
3y ago
That depends on what you want to containerize (which I assume you are after? If you don't containerize it works just like any other distro--it will be transparent to the IDE (because the IDE doesn't care that suddendly your gcc in
62.
▲
by
dannymi
3y ago
It works on top of any Linux distribution. So you can for example use WSL2 on Windows with a small Linux distribution and then extract the guix binaries from the website guix.gnu.org onto there, start guix-daemon in there and use guix like
63.
▲
by
dannymi
3y ago
Thank you! I also tried {$R+} type R1 = 1..3; R2 = 1..4; var a: R1; b: R2; begin b := 4; a := b; Writeln(a) end. ... and that only gives me a runtime error. So maybe those t
64.
▲
by
dannymi
3y ago
Yes, but this example of matrix multiplication does weird stuff: {$MODE DELPHI} {$modeswitch advancedrecords} type TMatrix<T, R, C> = record fCoordinates: array[R, C] of Double; end; function mul&
65.
▲
by
dannymi
3y ago
`const` in Rust is for compile-time constants. In this case, the fn `std::net::SocketAddr::new` was made a const fn recently--but was a regular fn before. >that's because it never tries to modify the value That's something dif
66.
▲
by
dannymi
4y ago
Drag force depends on the density of the air , the air's viscosity and compressibility, the velocity of the apple, the size and shape of the apple and the angle between the apple and the air flow. Funny enough, since Newton's law
67.
▲
by
dannymi
4y ago
Actually, what will happen according to the C++ standard depends on the size of int . C++ is doing implicit integer promotion of integer variables with types smaller than int , and that promotion converts those values (of the operands of
68.
▲
by
dannymi
4y ago
It's C++. Its goal is speed over all else. So it tries to carve out space for where the optimizer can assume lots of things are true. Since they don't use anything like Hoare logic they have to get their assertions from somewhere
69.
▲
by
dannymi
4y ago
You mean having one ' ? It's the same syntax in Lisp, Haskell, Ocaml, Ada and VHDL.
70.
▲
by
dannymi
4y ago
>doing the conversion between bytes and string implicitly There was no conversion. `bytes` and `str` were the same type. http://docs.python.org/whatsnew/2.6.html#pep-3112-byte-liter... says: > Python 2.6 adds byt
71.
▲
by
dannymi
4y ago
FWIW, in Linux, this problem does not exist. Everything is UTF-8 and Python 2 would work just fine (and always did). In order to support Windows better, Python 3 introduced support for UCS-4 (or worse, UTF-16) strings (depending on a compil
72.
▲
by
dannymi
4y ago
eval comes from Lisp, and there, it's not textual input. You give it a quoted form (i.e. an AST) and an environment and it evaluates the form in that environment. > (eval '(display (+ 5 6)) (interaction-environment))
73.
▲
by
dannymi
4y ago
espeak (festival)
74.
▲
by
dannymi
4y ago
The frequency is the imaginary part of the Laplace parameter s (and the attenuation is the real part of the Laplace parameter s). Laplace transforms work on systems with attenuation—that’s the main advantage. Because the kind of transform w
75.
▲
by
dannymi
4y ago
The article is very good. However, presenting this stuff in those languages makes it so obtuse. There's a reason this is usually explained in Haskell or in regular mathematics. There's SO much noise otherwise. 3.4.1 is basically t
76.
▲
by
dannymi
4y ago
I fixed some stuff in the Allwinner A20 (an ARM CPU) audio driver. Added a lot of mixer controls :)
77.
▲
by
dannymi
4y ago
There are automated (integration) test rigs that run your changes that watch Linux kernel branches. If you send a patch to a Linux kernel maintainer then it will make it into their branch and then you (the author of the patch) will get emai
78.
▲
by
dannymi
4y ago
It would just be slow for the caller to have to push and pop (say 30) registers in general that the specific callee (and transitive callees) may not even use. Most ABI specify some registers caller-saved, some registers callee-saved (retain
79.
▲
by
dannymi
4y ago
A Rust panic can be caught, too. It's just bad form to do so in Rust because it's bad for maintainability to design programs like that. Rust is opinionated and very much NOT an anything goes language. There is a culture and the cu
80.
▲
by
dannymi
4y ago
Ideally, what Guix would want is similar to what https://github.com/thepowersgang/mrustc/ does for Rust (a compiler, not written in Rust, for Rust). So for Dylan, we'd like to have a compiler for Open Dylan,
81.
▲
by
dannymi
4y ago
>Why can't we wait and let that be the first value that's actually meaningful instead of wasting time writing 0's? Rust lets you do that. let m: u32; // note: no mut m = 5; Even this is totally fine:
82.
▲
by
dannymi
4y ago
You want to evaluate p in: p = m n If that is gonna overflow, p > SIZE_MAX. Then it would be that (by substitution) m n > SIZE_MAX so m > SIZE_MAX/n except if n = 0. In the latter case, m can be as big as
83.
▲
by
dannymi
4y ago
As a Guix developer (there's a lot of Scheme and Common Lisp in Guix :) ), every few years I check on Open Dylan but so far each time there was something missing that made me unable to package it for Guix (building it entirely from sou
84.
▲
by
dannymi
4y ago
>Don’t you normally need an undergrad to start a PhD in the US as well? Yes, but not a graduate degree. For comparison, at least in Austria, you need to have finished both a Bachelor of Science (3 years) and a Master of Science (2 years)
85.
▲
by
dannymi
4y ago
Lisp has arbitrary-precision integers by default.
86.
▲
by
dannymi
4y ago
Then an exception is generated. Errors do not pass silently in Python.
87.
▲
by
dannymi
4y ago
(Column|Row) Vectors and matrices are abstractions, and having abstractions that are always the same API in all of programming (not just OpenGL) would be nice. Of course making them again and again different and dumb is easier. So we got a
88.
▲
by
dannymi
4y ago
>Some languages have fancy syntax that omits the need for braces. But for those that don't, this is clearly an array of 3 arrays of 3 ints. >It's only intuitive to think of this as an array of rows given how it's laid o
89.
▲
by
dannymi
4y ago
It depends on what you have been doing the past two years, especially around the lockdowns. I've used the time to set up an extremely nice home office in our big now-renovated apartment. It is nice here. Any regular office would be a d
90.
▲
by
dannymi
4y ago
>I wonder why, doing Windows programming with OWL in 1993 was quite delightful, For me, it's because memories are not trustworthy (rose-colored glasses). Also, I had less experience back then. And we as an industry didn't know
More ›