Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chlorion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
241.
▲
by
chlorion
4y ago
This is really interesting! I wrote a mini Lisp interpreter in Rust while following along with the book! I ended up using a generational arena to store objects too, but I used a "slotmap", which I wrote myself but is similar to th
242.
▲
by
chlorion
4y ago
I think you should at least understand the basic concepts like loops, variables, pointers and whatnot before trying to follow the book, otherwise it may be a little rough. You definitely don't need any expert knowledge though! Also fol
243.
▲
by
chlorion
4y ago
I think a tmpfs on Linux on some fast DDR5 RAM may get you close, it may even be faster but I'm not totally sure! Of course, getting 256GB of DDR5 or even DDR4 RAM is going to cost quite a lot, and most motherboards probably won't
244.
▲
by
chlorion
4y ago
Wolfram alpha can solve mathematical expressions like this as well, for what it's worth, and it's been around for a decent amount of time.
245.
▲
by
chlorion
4y ago
Common Lisp is also a dynamic language. In CL, classes can be redefined at runtime and the changes effect already instantiated instances! This is just an example, not the only dynamic feature of course. Common Lisp has SBCL which generates
246.
▲
by
chlorion
4y ago
IMO the thing that makes lisp so powerful is the ability to extend the syntax, and this is only possible because the syntax is represented as a list. When your syntax can be manipulated like data (in this case lists), macros become regular
247.
▲
by
chlorion
4y ago
Python supports generator comprehensions too!
248.
▲
by
chlorion
4y ago
> We could have unsigned integers but we're choosing not to because on the whole their disadvantages outweigh their advantages. On the other hand, once we have user-defined value types, you'll be able to define unsigned integer
249.
▲
by
chlorion
4y ago
Whoops! The Gentoo use flag on swayidle says elogind : Enable support for rootless session via elogind I think this is just a generic description shared between all packages with this flag though! Maybe I can suggest that this be f
250.
▲
by
chlorion
4y ago
>Want to list all the toplevel windows that are on a particular workspace so you can write a pager or taskbar widget? I can do this with a trivial "jq" script in Sway with this command: swaymsg -t get_tree Not sure wh
251.
▲
by
chlorion
4y ago
None of Waylands internal functions between a client and compositor are blocking or synchronous to my knowledge. Generally you fire off a message and will later receive an event back from the compositor, which is happening in an event loop.
252.
▲
by
chlorion
4y ago
Yes I can confirm that Wayland runs fine without systemd! I am on Gentoo and using openrc and sway runs fine. The only thing that might kind of rely on systemd is sway-idle which wants logind (or to run as root iirc). I know you know this,
253.
▲
by
chlorion
4y ago
Panicking when writing out of bounds is not a bad thing though, this is the behavior you want , assuming you can't statically guarantee that indexes are always in bounds. It is true though that the underlying unsafe rust in std, or cr
254.
▲
by
chlorion
4y ago
There is a lot of code that can't run in a WASM sandbox, like drivers for example. I do think more things running in WASM or WASM-like VM's could help a lot, but I'm not sure what the GPU part is supposed to mean.
255.
▲
by
chlorion
4y ago
You can zip a zipper to combine them, but you end up with an item like (a, (b, (c, d))), not a huge deal since it gets destructured automatically. The itertools crate has a multizip function/macro that allows zipping as many iterators
256.
▲
by
chlorion
4y ago
Well to be fair, I think this is less of an issue of maps being inaccurate and more people blindly following it without considering whether or not their truck can fit down the roads. Maps does not have a "truck mode" that refuses
257.
▲
by
chlorion
4y ago
I used to drive a box truck at work and I can definitely confirm that google maps is used heavily. I used Google maps during almost every trip! Finding random addresses in places you aren't familiar with can be difficult and waste a lo
258.
▲
by
chlorion
4y ago
Do you have more info about this limit? I have never saw that mentioned anywhere and am curious about what the limit is. I use this service to show the current temp and weather with waybar right now and have it set to update on a random int
259.
▲
by
chlorion
4y ago
Yeah these are all very valid issues! I imagine it would depend on the specific use case and how much computing power you need. Also the energy going into the production of the phone should be considered as well. Being able to remove the ba
260.
▲
by
chlorion
4y ago
I think encrypting your boot partition and kernel is not very useful. The "better" (IMO), would be to sign the kernel and use secureboot, but otherwise leave it unencrypted. This way the kernel and whatnot can't be tampered w
261.
▲
by
chlorion
4y ago
The person you responded to didn't mention anything about wanting people to stop talking about it. >Prove it? Or just desperate to convince yourself? I don't even know how to respond to this. The people who developed the thing
262.
▲
by
chlorion
4y ago
I did not realize you were a Gentoo contributor when I first responded! This is an interesting problem for sure. I don't know enough about portage internals to know whether it could be fixed easily, but it would be very nice to have. S
263.
▲
by
chlorion
4y ago
You can build binaries on Gentoo and update from the binaries you've built rather than compiling as you go! You can build binaries for all of the packages that need to be updated by running the normal update command and adding "--
264.
▲
by
chlorion
4y ago
This is pure misinformation at best. A masked package is generally caused by something not being stabilized yet, which can be fixed by adding the package to the package.accept_keywords file. Sometimes a package with known issues, such as se
265.
▲
by
chlorion
4y ago
My ~$200 Moto G has 8 arm cores, 4G ram and 64G EMMC storage. That is actually significantly more powerful than the VPS I pay monthly for, and could easily host git repos, a website, irc bouncer, and much more, and the hardware is already
266.
▲
by
chlorion
4y ago
>Firstly SHA is not a secure hash. This is incorrect, but even if it were true, you could use whatever your hash of choice is instead. Gentoo for example can use whatever hash you like, such as blake2, and the default Gentoo repo capture
267.
▲
by
chlorion
4y ago
I am not sure how you could not rely on GitHub when packaging code that is hosted on GitHub. My personal Gentoo ebuilds for example contain a URI variable that points to the GitHub auto-generated archives for projects that use GitHub for ho
268.
▲
by
chlorion
4y ago
I am not sure that something like a crate distro would actually cause a decrease in stability overall, at the end of the day people are still going to be using the same crates and those crates will be as stable as before, but it will be eas
269.
▲
by
chlorion
4y ago
There are people who spend time trying to solve this issue! https://bootstrappable.org/ https://www.gnu.org/software/mes/ The idea here, is that if you can get a very basic C compiler, you can sta
270.
▲
by
chlorion
4y ago
These aren't even close to comparable, and I am very tired of hearing people complain about this! My current Gentoo system seems to have existed since 03/29/21, so roughly two years now. In the time period, the time spent com
More ›