1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions
Software design and implementation should be a joyous art, a kind of high-level play. If this attitude seems preposterous or vaguely embarrassing to you, stop and think; ask yourself what you've forgotten. Why do you design software instead of doing something else to make money or pass the time? You must have thought software was worthy of your passion once...
To do the Unix philosophy right, you need to recover that attitude. You need to care. You need to play. You need to be willing to explore.
comment 4y ago · link · parent
When I first heard the term incremental compilation, I thought of a process like going through the ast couple of times and evaluating expressions. This wasn't what it meant. Now it makes sense. You include the lisp compiler in each binary. For parts you cannot evaluate at compile time, you compile at runtime, just like a JIT.
comment 4y ago · link · parent
I found my exact question on stackoverflow: https://stackoverflow.com/questions/7072980/how-do-you-compi...
The answers on SO are still not clear to me, some people say the macros can be evaluated at compile time, some say that the runtime needs to include some kind of interpreted to run macros. Some say incremental compilation is key to understand how macros get evaluated at compile time.
I will run experiments on this.
comment 4y ago · link · parent
Another main difference from true compiled code is that your entire program consists of subroutine calls. There are no inline instructions and a main function.
I've got a lot of reading to do on this. "Indirect jsr", I'll experiment with this.
Okay I'm convinced, forth is not interpreted when it's compiled to threaded code :). There is no main loop that reads instructions and dispatches them dynamically, the program flow is linear with subroutine calls stacked under each other.
comment 4y ago · link · parent
comment 4y ago · link · parent
"The logic inside that helps dispatch based on the dynamic types at runtime" is the interpreter part IMHO. Plus you need logic to add the metaprogramming elements that require you to change the code after it has been written.
We need to generate an example of something we can't do in C, something which requires evaluation at runtime.
comment 4y ago · link · parent
I think it is easier to say forth is closer to compiled. I can kind of imagine each user defined word being translated into assembly. With lisp I am speechles.
comment 4y ago · link · parent
My opinion was that the compiled lisps precompile as much as possible (calculations etc.) into assembly and leave bits they can't compile intact, that's what make them fast.
comment 4y ago · link · parent
Your quote looks like its about bootstrapping the Forth ecosystem. After writing fetch and store operations in native assembly, you can bootstrap the forth system that is logical. This is the way Chuck Moore first used Forth anyways. He had no interpreter/compiler back than, he wrote some functions to aid him circumvent assembly and make his code portable. It is genius, but I think it's still interpreted.
You can compile python to bytecode and run it in python's vm, does this mean your python code is compiled. IMHO no, it is compiled for the python vm and python vm interprets it. Same thing applies to Forth.
Forth is interpreted, even if you compile and package it in a standalone executable binary.
comment 4y ago · link · parent
What if you need to remove an item for example, do you need to shift all remaining items to keep order or mark the removed section with Xs so that the cursor jumps to the next data item.
You need to be able to randomly access bits and pieces to form a network.
comment 4y ago · link · parent
To achieve the same-level of expressiveness in C you need to craft an interpreter, dynamic memory allocation doesn't cut it.
I once wrote a simple linked list library in C to achieve lisp like functions, things got complex very quickly. I still dream of writing a garbage collector for it and evolve it to a lisp like state.
Like Greenspun said, I believe any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
They don't give any thought to public investors such as you and me.
comment 4y ago · link · parent
Medtronic shouldn't be able to get away with just saying, turn off remote bolusing to be secure. I hope they get a class-action suit.
Background: Medtronic is a money-hungry company. I've been using their insulin pumps for 15 years. Over the years the quality of their infusion sets dropped, they no longer provide a cap (the thing you put on to close the catheter before you shower) with each infusion set, rather than they put only one cap in a 10x bag. The infusion sets started to fail after 2 days (the default timespan is 3 days), whereas it used to last 4-5 days before.
comment 4y ago · link · parent
Hiring a recent college grad and working him 12+ hours a day with no rest is IMHO exploitation.
This is why we have labour laws in the first place. Employers have too much power and influence. Offer a college grad the chance to work on games and above average pay, you get him on the hook. What you are not saying to him is that you'll overwork him breaching labour laws. I gave him a job, he wanted it, if he doesn't like it, he can leave is not sufficient to make it ethical nor legal.
Please read this insider story on how brutal the working conditions are: https://ea-spouse.livejournal.com/274.html
I cannot comment on the comparison with Bundesliga footballers, because I have no experience in working a physical job. I am a knowledge worker.
comment 4y ago · link · parent
Game development companies are making millions in profits, what stops them from hiring 2x the workforce so that each can work 8 hours a day 5 days a week instead of 12 hours x 6? The demand in the field is obvious.
I personally would prefer ethically coded games if such a category existed. I get no fun from playing a game from a company that I know exploits people. Maybe that is the reason why indie games are so popular.
comment 4y ago · link · parent
Imagine being a SWE working 12+ hours a day 6 days a week getting no rest. I might have accidentally coded something like this so that I could go home a couple of hours earlier.
comment 4y ago · link · parent
I come from a law background so I am not familiar with the science. I've heard biological goods such as stem cells, eggs, spermia etc. are becoming very valuable and they are not very protected. I suppose underground groups could easily get they're hands on whatever they need. Securing illegal goods from a physician doing IVF on humans could be all they need.
comment 4y ago · link · parent
If he were the tech lead I do not think he would steal work, he'd just delegate it. I think OP and the 10x programmer are peers and they are in an unhealthy competition.
comment 4y ago · link · parent
Thank you very much. You're right I should find a way to flourish as an adult. But it's hard. I thought after getting married I'd split the chores I wouldn't feel lonely but it could be even harder that's true.
I live in Turkey, it's in the middle of eastern/western cultures. High earning people want to move out quickly as westeners do, middle/low class people usually don't move out until they get married. My parents live in a family apartment. My grandparents, aunts etc. live in separate flats but in the same apartment. I'd very much like a similar arrangement :).
Turkey is also experiencing a super high inflation right now around 80% p.a. per the official numbers. Housing prices have risen more than 140% during the last year and more than 100% the year before that. So I also have financial worries about the future.
Maybe it would be better if I can get the cheaper family flat. I would feel more secure knowing that no one would evict me or raise my rent. I will also be able to save more.
Thank you again for your comments. I gained some clarity, I will continue to try adapting to living alone.