Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
soegaard
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
271.
▲
by
soegaard
4y ago
The video shows a demo of how close to Doom a home-built CPU and graphics card can get to Doom. Don't stop at the start joke!
272.
▲
by
soegaard
4y ago
You skipped the foot notes? > The emulator implemented here only supports POKE for accessing screen memory. To keep things simpler, it starts at offset 0 rather than at offset 1024 as in the real Commodore 64. When you access an invalid
273.
▲
by
soegaard
4y ago
In this interview with Magnus Carlsen Carlsen mentions that being alterted in critical situation would be enough to get an advantage. https://www.youtube.com/watch?v=VcbHmHHwlUQ In the second half they discuss ways of cheat
274.
▲
by
soegaard
4y ago
There is more than one way to make a hash table in Racket. This one is more reasonable: (hash 'a 1 'b 2)
275.
▲
by
soegaard
4y ago
It's not about pattern matching: you can use pattern matching to destructure the input of a syntax transformer (macro) in Common Lisp too. Using pattern matching makes the macros easier to read though [but that is of course a matter
276.
▲
by
soegaard
4y ago
Here is a version that follows the Common Lisp solution. Since `reduce` is the standard library of Common Lisp, I implemented the case I needed. #lang racket #;(defmacro nest (&rest r) (reduce (lambda (o i) `(,@o
277.
▲
by
soegaard
4y ago
The 15 minute delay was introduced after the Magnus game.
278.
▲
by
soegaard
4y ago
The final `syntax-case` version: (define-syntax (nest stx) (syntax-case stx () ((nest outer ... inner) (foldr (lambda (o i) (with-syntax (((outer ...) o) (inner
279.
▲
by
soegaard
4y ago
You are hanging out in the wrong forums :-) The `defmacro` model is "simpler", true - but it is fragile and breaks down when you want to do complicated things. Check this blog post written by someone, who knows hos Common Lisp. EV
280.
▲
by
soegaard
4y ago
No need to worry about lack of impact due to low light, when you have treasures like the Craft project: https://www.youtube.com/watch?v=sNCqrylNY-0 A single microcontroller (ATMega88) produces both graphics and sound in thi
281.
▲
by
soegaard
4y ago
> Sometimes I'll play someone with a similar ranking to myself and beat them and > will earn 3 or 4 points. Then we'll have a re-match which I lose and they'll > gain 12 or 15 points. It's probably a sign that
282.
▲
by
soegaard
4y ago
> ... but Racket is dedicated to coding in a console and not to write in a text editor. I am a bit surprised about this comment. Have you tried `racket-mode` in Emacs? https://racket-mode.com/
283.
▲
by
soegaard
4y ago
Pike says the code is in assembler - which means it is written by hand. In assembler `name[0]=='.'` is simple to write. Fetch what name points to and compare it to a literal `'.'`. A function call on the other hand requ
284.
▲
by
soegaard
4y ago
Hi Paul. Thanks for taking the time to write about your game. Since gravity plays such an important role in the game, it would be great to see a gif/video of how it works. It's a bit difficult to grasp from the screenshots.
285.
▲
by
soegaard
4y ago
> Lichess is a platform though, not an accessory. I think a better comparison would be, would Nike be happy if Ronaldo played in a tournament on a field owned by Adidas, in a world in which Adidas is a nonprofit company giving shoes to a
286.
▲
by
soegaard
4y ago
>> It works the other way too: Wen did you last see Magnus play on Chess.com? > Actually, I don't get your point here. Ideally players would be free to make their own decisions on an ongoing basis, which is what we assume Magn
287.
▲
by
soegaard
4y ago
There is plenty of room for all of Chess.com, Chess24 and Lichess to exist. Lichess has the best platform to play on and is free to use. Chess.com is a business. As such they want to earn money. However, without a large, online chess commun
288.
▲
by
soegaard
4y ago
https://htdp.org/2003-09-26/Book/curriculum-Z-H-1.html#node_...
289.
▲
by
soegaard
4y ago
Nevertheless it is not about "a ban on all Google products". The real problem is that US data protection is non-existant.
290.
▲
by
soegaard
4y ago
Please fix the head line. The blog linked to is not a reputable news media. From the article: > In the statement by Datatilsynet DK, the sanctions only apply to municipalities. > “Both yes and no, this statement is regarding chrome bo
291.
▲
by
soegaard
4y ago
"Cucumber time" is the season, where news paper doesn't have anything to report on than cucumbers. http://www.worldwidewords.org/weirdwords/ww-cuc2.htm https://da.wikipedia.org/wiki/
292.
▲
by
soegaard
4y ago
Principles of functional programs also apply when computing with objects. "Object-Oriented Programming in languages that don’t require tail-call optimizations makes no sense." - Matthias Felleisen Why? See part 3 of this presentat
293.
▲
by
soegaard
4y ago
Would something like `flomat` have helped? https://docs.racket-lang.org/manual-flomat/index.html
294.
▲
by
soegaard
4y ago
> After writing Clojure for a few years, there were several times where I ended up with a complex function with unbalanced parens, and the only way I could fix it was to basically re-write the function piece by piece. That's the pun
295.
▲
by
soegaard
4y ago
Here is an explanation: > Scheme was originally called "Schemer", > in the tradition of other Lisp-derived languages > such as Planner or Conniver. > The current name resulted from the authors' use of the ITS op
296.
▲
by
soegaard
4y ago
FWIW here is an overview: https://racket.discourse.group/t/urlang-is-javascript-with-a... The Github repo is here: https://github.com/soegaard/urlang
297.
▲
by
soegaard
4y ago
I like it. It looks very much like the notation I used in Urlang to produce React components. I really need to put some more examples online... This is an all-in-one-file example: https://gist.github.com/soegaard/1a12a9
298.
▲
by
soegaard
5y ago
These notes is indeed used in "CS 101". The note is meant to fill a need not covered by the main materials. In this case the concept of transition systems is used throughout the course for proofs. In a different note graph algori
299.
▲
by
soegaard
5y ago
In that case the file is first compiled then run. You can compile it first with: racket make filename.rkt And then run it: racket filename.rkt
300.
▲
by
soegaard
5y ago
If you benchmark the solution, remember to do it in the terminal using the command line version `racket`. With default settings DrRacket will add extra debug code to the program, which will slow it down.
More ›